/****************************************************************************
** Meta object code from reading C++ file 'btbookshelftreemodel.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 "../../../bibletime/src/backend/bookshelfmodel/btbookshelftreemodel.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 'btbookshelftreemodel.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_ZN20BtBookshelfTreeModelE_t {};
} // unnamed namespace

template <> constexpr inline auto BtBookshelfTreeModel::qt_create_metaobjectdata<qt_meta_tag_ZN20BtBookshelfTreeModelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "BtBookshelfTreeModel",
        "groupingOrderChanged",
        "",
        "BtBookshelfTreeModel::Grouping",
        "newGrouping",
        "moduleChecked",
        "CSwordModuleInfo*",
        "module",
        "checked",
        "setSourceModel",
        "std::shared_ptr<QAbstractItemModel>",
        "sourceModel",
        "setGroupingOrder",
        "groupingOrder",
        "emitSignal",
        "setCheckable",
        "checkable",
        "setDefaultChecked",
        "CheckedBehavior",
        "b",
        "setCheckedModules",
        "BtConstModuleSet",
        "modules",
        "moduleDataChanged",
        "QModelIndex",
        "topLeft",
        "bottomRight",
        "moduleInserted",
        "parent",
        "start",
        "end",
        "moduleRemoved",
        "Group",
        "GROUP_CATEGORY",
        "GROUP_LANGUAGE",
        "GROUP_INDEXING"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'groupingOrderChanged'
        QtMocHelpers::SignalData<void(BtBookshelfTreeModel::Grouping)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'moduleChecked'
        QtMocHelpers::SignalData<void(CSwordModuleInfo *, bool)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 6, 7 }, { QMetaType::Bool, 8 },
        }}),
        // Slot 'setSourceModel'
        QtMocHelpers::SlotData<void(std::shared_ptr<QAbstractItemModel>)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 11 },
        }}),
        // Slot 'setGroupingOrder'
        QtMocHelpers::SlotData<void(BtBookshelfTreeModel::Grouping const &, bool)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 13 }, { QMetaType::Bool, 14 },
        }}),
        // Slot 'setGroupingOrder'
        QtMocHelpers::SlotData<void(BtBookshelfTreeModel::Grouping const &)>(12, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { 0x80000000 | 3, 13 },
        }}),
        // Slot 'setCheckable'
        QtMocHelpers::SlotData<void(bool)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 16 },
        }}),
        // Slot 'setDefaultChecked'
        QtMocHelpers::SlotData<void(CheckedBehavior const)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 18, 19 },
        }}),
        // Slot 'setCheckedModules'
        QtMocHelpers::SlotData<void(BtConstModuleSet const &)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 21, 22 },
        }}),
        // Slot 'moduleDataChanged'
        QtMocHelpers::SlotData<void(QModelIndex const &, QModelIndex const &)>(23, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 24, 25 }, { 0x80000000 | 24, 26 },
        }}),
        // Slot 'moduleInserted'
        QtMocHelpers::SlotData<void(QModelIndex const &, int, int)>(27, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 24, 28 }, { QMetaType::Int, 29 }, { QMetaType::Int, 30 },
        }}),
        // Slot 'moduleRemoved'
        QtMocHelpers::SlotData<void(QModelIndex const &, int, int)>(31, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 24, 28 }, { QMetaType::Int, 29 }, { QMetaType::Int, 30 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'Group'
        QtMocHelpers::EnumData<enum Group>(32, 32, QMC::EnumFlags{}).add({
            {   33, Group::GROUP_CATEGORY },
            {   34, Group::GROUP_LANGUAGE },
            {   35, Group::GROUP_INDEXING },
        }),
    };
    return QtMocHelpers::metaObjectData<BtBookshelfTreeModel, qt_meta_tag_ZN20BtBookshelfTreeModelE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject BtBookshelfTreeModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractItemModel::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN20BtBookshelfTreeModelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN20BtBookshelfTreeModelE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN20BtBookshelfTreeModelE_t>.metaTypes,
    nullptr
} };

void BtBookshelfTreeModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<BtBookshelfTreeModel *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->groupingOrderChanged((*reinterpret_cast<std::add_pointer_t<BtBookshelfTreeModel::Grouping>>(_a[1]))); break;
        case 1: _t->moduleChecked((*reinterpret_cast<std::add_pointer_t<CSwordModuleInfo*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 2: _t->setSourceModel((*reinterpret_cast<std::add_pointer_t<std::shared_ptr<QAbstractItemModel>>>(_a[1]))); break;
        case 3: _t->setGroupingOrder((*reinterpret_cast<std::add_pointer_t<BtBookshelfTreeModel::Grouping>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 4: _t->setGroupingOrder((*reinterpret_cast<std::add_pointer_t<BtBookshelfTreeModel::Grouping>>(_a[1]))); break;
        case 5: _t->setCheckable((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 6: _t->setDefaultChecked((*reinterpret_cast<std::add_pointer_t<enum CheckedBehavior>>(_a[1]))); break;
        case 7: _t->setCheckedModules((*reinterpret_cast<std::add_pointer_t<BtConstModuleSet>>(_a[1]))); break;
        case 8: _t->moduleDataChanged((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[2]))); break;
        case 9: _t->moduleInserted((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3]))); break;
        case 10: _t->moduleRemoved((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3]))); 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 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< BtBookshelfTreeModel::Grouping >(); break;
            }
            break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< BtBookshelfTreeModel::Grouping >(); break;
            }
            break;
        case 4:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< BtBookshelfTreeModel::Grouping >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (BtBookshelfTreeModel::*)(BtBookshelfTreeModel::Grouping )>(_a, &BtBookshelfTreeModel::groupingOrderChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (BtBookshelfTreeModel::*)(CSwordModuleInfo * , bool )>(_a, &BtBookshelfTreeModel::moduleChecked, 1))
            return;
    }
}

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

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

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

// SIGNAL 0
void BtBookshelfTreeModel::groupingOrderChanged(BtBookshelfTreeModel::Grouping _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void BtBookshelfTreeModel::moduleChecked(CSwordModuleInfo * _t1, bool _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2);
}
QT_WARNING_POP
