/****************************************************************************
** Meta object code from reading C++ file 'TabManager.h'
**
** Created by: The Qt Meta Object Compiler version 69 (Qt 6.10.2)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../../../src/Tabs/TabManager.h"
#include <QtGui/qtextcursor.h>
#include <QtCore/qmetatype.h>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'TabManager.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.10.2. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

#ifndef Q_CONSTINIT
#define Q_CONSTINIT
#endif

QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
QT_WARNING_DISABLE_GCC("-Wuseless-cast")
namespace {
struct qt_meta_tag_ZN10TabManagerE_t {};
} // unnamed namespace

template <> constexpr inline auto TabManager::qt_create_metaobjectdata<qt_meta_tag_ZN10TabManagerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "TabManager",
        "TabChanged",
        "",
        "ContentTab*",
        "old_tab",
        "new_tab",
        "UpdatePreviewAfterExistingTabSwitch",
        "TabCountChanged",
        "OpenUrlRequest",
        "QUrl",
        "url",
        "OldTabRequest",
        "content",
        "HTMLResource*",
        "originating_resource",
        "ShowStatusMessageRequest",
        "message",
        "duration",
        "SaveTabData",
        "OpenResource",
        "Resource*",
        "resource",
        "line_to_scroll_to",
        "position_to_scroll_to",
        "caret_location_to_scroll_to",
        "fragment",
        "precede_current_tab",
        "NextTab",
        "PreviousTab",
        "CloseTab",
        "RemoveTab",
        "CloseOtherTabs",
        "index",
        "MakeCentralTab",
        "tab",
        "LinkClicked",
        "EmitTabChanged",
        "new_index",
        "DeleteTab",
        "tab_to_delete",
        "tab_index",
        "force",
        "UpdateTabName",
        "renamed_tab",
        "SetFocusInTab"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'TabChanged'
        QtMocHelpers::SignalData<void(ContentTab *, ContentTab *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 }, { 0x80000000 | 3, 5 },
        }}),
        // Signal 'UpdatePreviewAfterExistingTabSwitch'
        QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'TabCountChanged'
        QtMocHelpers::SignalData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'OpenUrlRequest'
        QtMocHelpers::SignalData<void(const QUrl &)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 10 },
        }}),
        // Signal 'OldTabRequest'
        QtMocHelpers::SignalData<void(QString, HTMLResource *)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 12 }, { 0x80000000 | 13, 14 },
        }}),
        // Signal 'ShowStatusMessageRequest'
        QtMocHelpers::SignalData<void(const QString &, int)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 16 }, { QMetaType::Int, 17 },
        }}),
        // Signal 'ShowStatusMessageRequest'
        QtMocHelpers::SignalData<void(const QString &)>(15, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { QMetaType::QString, 16 },
        }}),
        // Slot 'SaveTabData'
        QtMocHelpers::SlotData<void()>(18, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'OpenResource'
        QtMocHelpers::SlotData<void(Resource *, int, int, const QString &, const QUrl &, bool)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 20, 21 }, { QMetaType::Int, 22 }, { QMetaType::Int, 23 }, { QMetaType::QString, 24 },
            { 0x80000000 | 9, 25 }, { QMetaType::Bool, 26 },
        }}),
        // Slot 'OpenResource'
        QtMocHelpers::SlotData<void(Resource *, int, int, const QString &, const QUrl &)>(19, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { 0x80000000 | 20, 21 }, { QMetaType::Int, 22 }, { QMetaType::Int, 23 }, { QMetaType::QString, 24 },
            { 0x80000000 | 9, 25 },
        }}),
        // Slot 'OpenResource'
        QtMocHelpers::SlotData<void(Resource *, int, int, const QString &)>(19, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { 0x80000000 | 20, 21 }, { QMetaType::Int, 22 }, { QMetaType::Int, 23 }, { QMetaType::QString, 24 },
        }}),
        // Slot 'OpenResource'
        QtMocHelpers::SlotData<void(Resource *, int, int)>(19, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { 0x80000000 | 20, 21 }, { QMetaType::Int, 22 }, { QMetaType::Int, 23 },
        }}),
        // Slot 'OpenResource'
        QtMocHelpers::SlotData<void(Resource *, int)>(19, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { 0x80000000 | 20, 21 }, { QMetaType::Int, 22 },
        }}),
        // Slot 'OpenResource'
        QtMocHelpers::SlotData<void(Resource *)>(19, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { 0x80000000 | 20, 21 },
        }}),
        // Slot 'NextTab'
        QtMocHelpers::SlotData<void()>(27, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'PreviousTab'
        QtMocHelpers::SlotData<void()>(28, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'CloseTab'
        QtMocHelpers::SlotData<void()>(29, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'RemoveTab'
        QtMocHelpers::SlotData<void()>(30, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'CloseOtherTabs'
        QtMocHelpers::SlotData<void()>(31, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'CloseOtherTabs'
        QtMocHelpers::SlotData<void(int)>(31, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 32 },
        }}),
        // Slot 'MakeCentralTab'
        QtMocHelpers::SlotData<void(ContentTab *)>(33, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 34 },
        }}),
        // Slot 'LinkClicked'
        QtMocHelpers::SlotData<void(const QUrl &)>(35, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 10 },
        }}),
        // Slot 'EmitTabChanged'
        QtMocHelpers::SlotData<void(int)>(36, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 37 },
        }}),
        // Slot 'DeleteTab'
        QtMocHelpers::SlotData<void(ContentTab *)>(38, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 3, 39 },
        }}),
        // Slot 'CloseTab'
        QtMocHelpers::SlotData<void(int, bool)>(29, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 40 }, { QMetaType::Bool, 41 },
        }}),
        // Slot 'CloseTab'
        QtMocHelpers::SlotData<void(int)>(29, 2, QMC::AccessPrivate | QMC::MethodCloned, QMetaType::Void, {{
            { QMetaType::Int, 40 },
        }}),
        // Slot 'UpdateTabName'
        QtMocHelpers::SlotData<void(ContentTab *)>(42, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 3, 43 },
        }}),
        // Slot 'SetFocusInTab'
        QtMocHelpers::SlotData<void()>(44, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<TabManager, qt_meta_tag_ZN10TabManagerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject TabManager::staticMetaObject = { {
    QMetaObject::SuperData::link<QTabWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10TabManagerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10TabManagerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10TabManagerE_t>.metaTypes,
    nullptr
} };

void TabManager::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<TabManager *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->TabChanged((*reinterpret_cast<std::add_pointer_t<ContentTab*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<ContentTab*>>(_a[2]))); break;
        case 1: _t->UpdatePreviewAfterExistingTabSwitch(); break;
        case 2: _t->TabCountChanged(); break;
        case 3: _t->OpenUrlRequest((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1]))); break;
        case 4: _t->OldTabRequest((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<HTMLResource*>>(_a[2]))); break;
        case 5: _t->ShowStatusMessageRequest((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 6: _t->ShowStatusMessageRequest((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 7: _t->SaveTabData(); break;
        case 8: _t->OpenResource((*reinterpret_cast<std::add_pointer_t<Resource*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[4])),(*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[5])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[6]))); break;
        case 9: _t->OpenResource((*reinterpret_cast<std::add_pointer_t<Resource*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[4])),(*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[5]))); break;
        case 10: _t->OpenResource((*reinterpret_cast<std::add_pointer_t<Resource*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[4]))); break;
        case 11: _t->OpenResource((*reinterpret_cast<std::add_pointer_t<Resource*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3]))); break;
        case 12: _t->OpenResource((*reinterpret_cast<std::add_pointer_t<Resource*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 13: _t->OpenResource((*reinterpret_cast<std::add_pointer_t<Resource*>>(_a[1]))); break;
        case 14: _t->NextTab(); break;
        case 15: _t->PreviousTab(); break;
        case 16: _t->CloseTab(); break;
        case 17: _t->RemoveTab(); break;
        case 18: _t->CloseOtherTabs(); break;
        case 19: _t->CloseOtherTabs((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 20: _t->MakeCentralTab((*reinterpret_cast<std::add_pointer_t<ContentTab*>>(_a[1]))); break;
        case 21: _t->LinkClicked((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1]))); break;
        case 22: _t->EmitTabChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 23: _t->DeleteTab((*reinterpret_cast<std::add_pointer_t<ContentTab*>>(_a[1]))); break;
        case 24: _t->CloseTab((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 25: _t->CloseTab((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 26: _t->UpdateTabName((*reinterpret_cast<std::add_pointer_t<ContentTab*>>(_a[1]))); break;
        case 27: _t->SetFocusInTab(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< ContentTab* >(); break;
            }
            break;
        case 4:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< HTMLResource* >(); break;
            }
            break;
        case 8:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Resource* >(); break;
            }
            break;
        case 9:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Resource* >(); break;
            }
            break;
        case 10:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Resource* >(); break;
            }
            break;
        case 11:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Resource* >(); break;
            }
            break;
        case 12:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Resource* >(); break;
            }
            break;
        case 13:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Resource* >(); break;
            }
            break;
        case 20:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< ContentTab* >(); break;
            }
            break;
        case 23:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< ContentTab* >(); break;
            }
            break;
        case 26:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< ContentTab* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (TabManager::*)(ContentTab * , ContentTab * )>(_a, &TabManager::TabChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (TabManager::*)()>(_a, &TabManager::UpdatePreviewAfterExistingTabSwitch, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (TabManager::*)()>(_a, &TabManager::TabCountChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (TabManager::*)(const QUrl & )>(_a, &TabManager::OpenUrlRequest, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (TabManager::*)(QString , HTMLResource * )>(_a, &TabManager::OldTabRequest, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (TabManager::*)(const QString & , int )>(_a, &TabManager::ShowStatusMessageRequest, 5))
            return;
    }
}

const QMetaObject *TabManager::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *TabManager::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10TabManagerE_t>.strings))
        return static_cast<void*>(this);
    return QTabWidget::qt_metacast(_clname);
}

int TabManager::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QTabWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 28)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 28;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 28)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 28;
    }
    return _id;
}

// SIGNAL 0
void TabManager::TabChanged(ContentTab * _t1, ContentTab * _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2);
}

// SIGNAL 1
void TabManager::UpdatePreviewAfterExistingTabSwitch()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void TabManager::TabCountChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void TabManager::OpenUrlRequest(const QUrl & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void TabManager::OldTabRequest(QString _t1, HTMLResource * _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1, _t2);
}

// SIGNAL 5
void TabManager::ShowStatusMessageRequest(const QString & _t1, int _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1, _t2);
}
QT_WARNING_POP
