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

#include "../../model/entrymodel.h"
#include <QtCore/qmetatype.h>
#include <QtCore/QList>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'entrymodel.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.1. 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_ZN5QtGui10EntryModelE_t {};
} // unnamed namespace

template <> constexpr inline auto QtGui::EntryModel::qt_create_metaobjectdata<qt_meta_tag_ZN5QtGui10EntryModelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "QtGui::EntryModel",
        "reset",
        "",
        "entry",
        "Io::Entry*",
        "QModelIndex",
        "index",
        "takeEntries",
        "QList<Io::Entry*>",
        "row",
        "count",
        "parent",
        "insertEntries",
        "entries",
        "isNode",
        "rowCount",
        "columnCount",
        "insertRows",
        "removeRows",
        "moveRows",
        "sourceParent",
        "sourceRow",
        "destinationParent",
        "destinationChild",
        "setInsertTypeToNode",
        "setInsertTypeToAccount",
        "rootEntry",
        "Io::NodeEntry*",
        "insertType",
        "Io::EntryType"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'reset'
        QtMocHelpers::SlotData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'entry'
        QtMocHelpers::MethodData<Io::Entry *(const QModelIndex &)>(3, 2, QMC::AccessPublic, 0x80000000 | 4, {{
            { 0x80000000 | 5, 6 },
        }}),
        // Method 'takeEntries'
        QtMocHelpers::MethodData<QList<Io::Entry*>(int, int, const QModelIndex &)>(7, 2, QMC::AccessPublic, 0x80000000 | 8, {{
            { QMetaType::Int, 9 }, { QMetaType::Int, 10 }, { 0x80000000 | 5, 11 },
        }}),
        // Method 'insertEntries'
        QtMocHelpers::MethodData<bool(int, const QModelIndex &, const QList<Io::Entry*> &)>(12, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::Int, 9 }, { 0x80000000 | 5, 11 }, { 0x80000000 | 8, 13 },
        }}),
        // Method 'isNode'
        QtMocHelpers::MethodData<bool(const QModelIndex &) const>(14, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 5, 11 },
        }}),
        // Method 'rowCount'
        QtMocHelpers::MethodData<int(const QModelIndex &) const>(15, 2, QMC::AccessPublic, QMetaType::Int, {{
            { 0x80000000 | 5, 11 },
        }}),
        // Method 'rowCount'
        QtMocHelpers::MethodData<int() const>(15, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Int),
        // Method 'columnCount'
        QtMocHelpers::MethodData<int(const QModelIndex &) const>(16, 2, QMC::AccessPublic, QMetaType::Int, {{
            { 0x80000000 | 5, 11 },
        }}),
        // Method 'columnCount'
        QtMocHelpers::MethodData<int() const>(16, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Int),
        // Method 'insertRows'
        QtMocHelpers::MethodData<bool(int, int, const QModelIndex &)>(17, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::Int, 9 }, { QMetaType::Int, 10 }, { 0x80000000 | 5, 11 },
        }}),
        // Method 'insertRows'
        QtMocHelpers::MethodData<bool(int, int)>(17, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Bool, {{
            { QMetaType::Int, 9 }, { QMetaType::Int, 10 },
        }}),
        // Method 'removeRows'
        QtMocHelpers::MethodData<bool(int, int, const QModelIndex &)>(18, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::Int, 9 }, { QMetaType::Int, 10 }, { 0x80000000 | 5, 11 },
        }}),
        // Method 'removeRows'
        QtMocHelpers::MethodData<bool(int, int)>(18, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Bool, {{
            { QMetaType::Int, 9 }, { QMetaType::Int, 10 },
        }}),
        // Method 'moveRows'
        QtMocHelpers::MethodData<bool(const QModelIndex &, int, int, const QModelIndex &, int)>(19, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 5, 20 }, { QMetaType::Int, 21 }, { QMetaType::Int, 10 }, { 0x80000000 | 5, 22 },
            { QMetaType::Int, 23 },
        }}),
        // Method 'setInsertTypeToNode'
        QtMocHelpers::MethodData<void()>(24, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'setInsertTypeToAccount'
        QtMocHelpers::MethodData<void()>(25, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'rootEntry'
        QtMocHelpers::PropertyData<Io::NodeEntry*>(26, 0x80000000 | 27, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'insertType'
        QtMocHelpers::PropertyData<Io::EntryType>(28, 0x80000000 | 29, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<EntryModel, qt_meta_tag_ZN5QtGui10EntryModelE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject QtGui::EntryModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractItemModel::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5QtGui10EntryModelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5QtGui10EntryModelE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN5QtGui10EntryModelE_t>.metaTypes,
    nullptr
} };

void QtGui::EntryModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<EntryModel *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->reset(); break;
        case 1: { Io::Entry* _r = _t->entry((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1])));
            if (_a[0]) *reinterpret_cast<Io::Entry**>(_a[0]) = std::move(_r); }  break;
        case 2: { QList<Io::Entry*> _r = _t->takeEntries((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[3])));
            if (_a[0]) *reinterpret_cast<QList<Io::Entry*>*>(_a[0]) = std::move(_r); }  break;
        case 3: { bool _r = _t->insertEntries((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QList<Io::Entry*>>>(_a[3])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 4: { bool _r = _t->isNode((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 5: { int _r = _t->rowCount((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 6: { int _r = _t->rowCount();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 7: { int _r = _t->columnCount((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 8: { int _r = _t->columnCount();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 9: { bool _r = _t->insertRows((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[3])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 10: { bool _r = _t->insertRows((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 11: { bool _r = _t->removeRows((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[3])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 12: { bool _r = _t->removeRows((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 13: { bool _r = _t->moveRows((*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])),(*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[4])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[5])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 14: _t->setInsertTypeToNode(); break;
        case 15: _t->setInsertTypeToAccount(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<Io::NodeEntry**>(_v) = _t->rootEntry(); break;
        case 1: *reinterpret_cast<Io::EntryType*>(_v) = _t->insertType(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setRootEntry(*reinterpret_cast<Io::NodeEntry**>(_v)); break;
        case 1: _t->setInsertType(*reinterpret_cast<Io::EntryType*>(_v)); break;
        default: break;
        }
    }
}

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

void *QtGui::EntryModel::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5QtGui10EntryModelE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "StackSupport"))
        return static_cast< StackSupport*>(this);
    return QAbstractItemModel::qt_metacast(_clname);
}

int QtGui::EntryModel::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 < 16)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 16;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 16)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 16;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 2;
    }
    return _id;
}
QT_WARNING_POP
