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

#include <memory>
#include "../../../../bibletime-2.11.2/src/backend/bookshelfmodel/btbookshelftreemodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'btbookshelftreemodel.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.2. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_BtBookshelfTreeModel_t {
    QByteArrayData data[36];
    char stringdata0[471];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_BtBookshelfTreeModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_BtBookshelfTreeModel_t qt_meta_stringdata_BtBookshelfTreeModel = {
    {
QT_MOC_LITERAL(0, 0, 20), // "BtBookshelfTreeModel"
QT_MOC_LITERAL(1, 21, 20), // "groupingOrderChanged"
QT_MOC_LITERAL(2, 42, 0), // ""
QT_MOC_LITERAL(3, 43, 30), // "BtBookshelfTreeModel::Grouping"
QT_MOC_LITERAL(4, 74, 11), // "newGrouping"
QT_MOC_LITERAL(5, 86, 13), // "moduleChecked"
QT_MOC_LITERAL(6, 100, 17), // "CSwordModuleInfo*"
QT_MOC_LITERAL(7, 118, 6), // "module"
QT_MOC_LITERAL(8, 125, 7), // "checked"
QT_MOC_LITERAL(9, 133, 14), // "setSourceModel"
QT_MOC_LITERAL(10, 148, 19), // "QAbstractItemModel*"
QT_MOC_LITERAL(11, 168, 11), // "sourceModel"
QT_MOC_LITERAL(12, 180, 16), // "setGroupingOrder"
QT_MOC_LITERAL(13, 197, 13), // "groupingOrder"
QT_MOC_LITERAL(14, 211, 10), // "emitSignal"
QT_MOC_LITERAL(15, 222, 12), // "setCheckable"
QT_MOC_LITERAL(16, 235, 9), // "checkable"
QT_MOC_LITERAL(17, 245, 17), // "setDefaultChecked"
QT_MOC_LITERAL(18, 263, 15), // "CheckedBehavior"
QT_MOC_LITERAL(19, 279, 1), // "b"
QT_MOC_LITERAL(20, 281, 17), // "setCheckedModules"
QT_MOC_LITERAL(21, 299, 16), // "BtConstModuleSet"
QT_MOC_LITERAL(22, 316, 7), // "modules"
QT_MOC_LITERAL(23, 324, 17), // "moduleDataChanged"
QT_MOC_LITERAL(24, 342, 11), // "QModelIndex"
QT_MOC_LITERAL(25, 354, 7), // "topLeft"
QT_MOC_LITERAL(26, 362, 11), // "bottomRight"
QT_MOC_LITERAL(27, 374, 14), // "moduleInserted"
QT_MOC_LITERAL(28, 389, 6), // "parent"
QT_MOC_LITERAL(29, 396, 5), // "start"
QT_MOC_LITERAL(30, 402, 3), // "end"
QT_MOC_LITERAL(31, 406, 13), // "moduleRemoved"
QT_MOC_LITERAL(32, 420, 5), // "Group"
QT_MOC_LITERAL(33, 426, 14), // "GROUP_CATEGORY"
QT_MOC_LITERAL(34, 441, 14), // "GROUP_LANGUAGE"
QT_MOC_LITERAL(35, 456, 14) // "GROUP_INDEXING"

    },
    "BtBookshelfTreeModel\0groupingOrderChanged\0"
    "\0BtBookshelfTreeModel::Grouping\0"
    "newGrouping\0moduleChecked\0CSwordModuleInfo*\0"
    "module\0checked\0setSourceModel\0"
    "QAbstractItemModel*\0sourceModel\0"
    "setGroupingOrder\0groupingOrder\0"
    "emitSignal\0setCheckable\0checkable\0"
    "setDefaultChecked\0CheckedBehavior\0b\0"
    "setCheckedModules\0BtConstModuleSet\0"
    "modules\0moduleDataChanged\0QModelIndex\0"
    "topLeft\0bottomRight\0moduleInserted\0"
    "parent\0start\0end\0moduleRemoved\0Group\0"
    "GROUP_CATEGORY\0GROUP_LANGUAGE\0"
    "GROUP_INDEXING"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_BtBookshelfTreeModel[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      11,   14, // methods
       0,    0, // properties
       1,  116, // enums/sets
       0,    0, // constructors
       0,       // flags
       2,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    1,   69,    2, 0x06 /* Public */,
       5,    2,   72,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       9,    1,   77,    2, 0x0a /* Public */,
      12,    2,   80,    2, 0x0a /* Public */,
      12,    1,   85,    2, 0x2a /* Public | MethodCloned */,
      15,    1,   88,    2, 0x0a /* Public */,
      17,    1,   91,    2, 0x0a /* Public */,
      20,    1,   94,    2, 0x0a /* Public */,
      23,    2,   97,    2, 0x09 /* Protected */,
      27,    3,  102,    2, 0x09 /* Protected */,
      31,    3,  109,    2, 0x09 /* Protected */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, 0x80000000 | 6, QMetaType::Bool,    7,    8,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 10,   11,
    QMetaType::Void, 0x80000000 | 3, QMetaType::Bool,   13,   14,
    QMetaType::Void, 0x80000000 | 3,   13,
    QMetaType::Void, QMetaType::Bool,   16,
    QMetaType::Void, 0x80000000 | 18,   19,
    QMetaType::Void, 0x80000000 | 21,   22,
    QMetaType::Void, 0x80000000 | 24, 0x80000000 | 24,   25,   26,
    QMetaType::Void, 0x80000000 | 24, QMetaType::Int, QMetaType::Int,   28,   29,   30,
    QMetaType::Void, 0x80000000 | 24, QMetaType::Int, QMetaType::Int,   28,   29,   30,

 // enums: name, alias, flags, count, data
      32,   32, 0x0,    3,  121,

 // enum data: key, value
      33, uint(BtBookshelfTreeModel::GROUP_CATEGORY),
      34, uint(BtBookshelfTreeModel::GROUP_LANGUAGE),
      35, uint(BtBookshelfTreeModel::GROUP_INDEXING),

       0        // eod
};

void BtBookshelfTreeModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<BtBookshelfTreeModel *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->groupingOrderChanged((*reinterpret_cast< BtBookshelfTreeModel::Grouping(*)>(_a[1]))); break;
        case 1: _t->moduleChecked((*reinterpret_cast< CSwordModuleInfo*(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 2: _t->setSourceModel((*reinterpret_cast< QAbstractItemModel*(*)>(_a[1]))); break;
        case 3: _t->setGroupingOrder((*reinterpret_cast< const BtBookshelfTreeModel::Grouping(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 4: _t->setGroupingOrder((*reinterpret_cast< const BtBookshelfTreeModel::Grouping(*)>(_a[1]))); break;
        case 5: _t->setCheckable((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 6: _t->setDefaultChecked((*reinterpret_cast< CheckedBehavior(*)>(_a[1]))); break;
        case 7: _t->setCheckedModules((*reinterpret_cast< const BtConstModuleSet(*)>(_a[1]))); break;
        case 8: _t->moduleDataChanged((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< const QModelIndex(*)>(_a[2]))); break;
        case 9: _t->moduleInserted((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 10: _t->moduleRemoved((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< BtBookshelfTreeModel::Grouping >(); break;
            }
            break;
        case 1:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< CSwordModuleInfo* >(); break;
            }
            break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< BtBookshelfTreeModel::Grouping >(); break;
            }
            break;
        case 4:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< BtBookshelfTreeModel::Grouping >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (BtBookshelfTreeModel::*)(BtBookshelfTreeModel::Grouping );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&BtBookshelfTreeModel::groupingOrderChanged)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (BtBookshelfTreeModel::*)(CSwordModuleInfo * , bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&BtBookshelfTreeModel::moduleChecked)) {
                *result = 1;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject BtBookshelfTreeModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractItemModel::staticMetaObject>(),
    qt_meta_stringdata_BtBookshelfTreeModel.data,
    qt_meta_data_BtBookshelfTreeModel,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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_meta_stringdata_BtBookshelfTreeModel.stringdata0))
        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;
    } else 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)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void BtBookshelfTreeModel::moduleChecked(CSwordModuleInfo * _t1, bool _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
