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

#include <memory>
#include "../../model/entrymodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#include <QtCore/QList>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'entrymodel.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.18. 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_QtGui__EntryModel_t {
    QByteArrayData data[30];
    char stringdata0[339];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_QtGui__EntryModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_QtGui__EntryModel_t qt_meta_stringdata_QtGui__EntryModel = {
    {
QT_MOC_LITERAL(0, 0, 17), // "QtGui::EntryModel"
QT_MOC_LITERAL(1, 18, 5), // "reset"
QT_MOC_LITERAL(2, 24, 0), // ""
QT_MOC_LITERAL(3, 25, 5), // "entry"
QT_MOC_LITERAL(4, 31, 10), // "Io::Entry*"
QT_MOC_LITERAL(5, 42, 11), // "QModelIndex"
QT_MOC_LITERAL(6, 54, 5), // "index"
QT_MOC_LITERAL(7, 60, 11), // "takeEntries"
QT_MOC_LITERAL(8, 72, 17), // "QList<Io::Entry*>"
QT_MOC_LITERAL(9, 90, 3), // "row"
QT_MOC_LITERAL(10, 94, 5), // "count"
QT_MOC_LITERAL(11, 100, 6), // "parent"
QT_MOC_LITERAL(12, 107, 13), // "insertEntries"
QT_MOC_LITERAL(13, 121, 7), // "entries"
QT_MOC_LITERAL(14, 129, 6), // "isNode"
QT_MOC_LITERAL(15, 136, 8), // "rowCount"
QT_MOC_LITERAL(16, 145, 11), // "columnCount"
QT_MOC_LITERAL(17, 157, 10), // "insertRows"
QT_MOC_LITERAL(18, 168, 10), // "removeRows"
QT_MOC_LITERAL(19, 179, 8), // "moveRows"
QT_MOC_LITERAL(20, 188, 12), // "sourceParent"
QT_MOC_LITERAL(21, 201, 9), // "sourceRow"
QT_MOC_LITERAL(22, 211, 17), // "destinationParent"
QT_MOC_LITERAL(23, 229, 16), // "destinationChild"
QT_MOC_LITERAL(24, 246, 19), // "setInsertTypeToNode"
QT_MOC_LITERAL(25, 266, 22), // "setInsertTypeToAccount"
QT_MOC_LITERAL(26, 289, 9), // "rootEntry"
QT_MOC_LITERAL(27, 299, 14), // "Io::NodeEntry*"
QT_MOC_LITERAL(28, 314, 10), // "insertType"
QT_MOC_LITERAL(29, 325, 13) // "Io::EntryType"

    },
    "QtGui::EntryModel\0reset\0\0entry\0"
    "Io::Entry*\0QModelIndex\0index\0takeEntries\0"
    "QList<Io::Entry*>\0row\0count\0parent\0"
    "insertEntries\0entries\0isNode\0rowCount\0"
    "columnCount\0insertRows\0removeRows\0"
    "moveRows\0sourceParent\0sourceRow\0"
    "destinationParent\0destinationChild\0"
    "setInsertTypeToNode\0setInsertTypeToAccount\0"
    "rootEntry\0Io::NodeEntry*\0insertType\0"
    "Io::EntryType"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_QtGui__EntryModel[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      16,   14, // methods
       2,  160, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       0,       // signalCount

 // slots: name, argc, parameters, tag, flags
       1,    0,   94,    2, 0x0a /* Public */,

 // methods: name, argc, parameters, tag, flags
       3,    1,   95,    2, 0x02 /* Public */,
       7,    3,   98,    2, 0x02 /* Public */,
      12,    3,  105,    2, 0x02 /* Public */,
      14,    1,  112,    2, 0x02 /* Public */,
      15,    1,  115,    2, 0x02 /* Public */,
      15,    0,  118,    2, 0x22 /* Public | MethodCloned */,
      16,    1,  119,    2, 0x02 /* Public */,
      16,    0,  122,    2, 0x22 /* Public | MethodCloned */,
      17,    3,  123,    2, 0x02 /* Public */,
      17,    2,  130,    2, 0x22 /* Public | MethodCloned */,
      18,    3,  135,    2, 0x02 /* Public */,
      18,    2,  142,    2, 0x22 /* Public | MethodCloned */,
      19,    5,  147,    2, 0x02 /* Public */,
      24,    0,  158,    2, 0x02 /* Public */,
      25,    0,  159,    2, 0x02 /* Public */,

 // slots: parameters
    QMetaType::Void,

 // methods: parameters
    0x80000000 | 4, 0x80000000 | 5,    6,
    0x80000000 | 8, QMetaType::Int, QMetaType::Int, 0x80000000 | 5,    9,   10,   11,
    QMetaType::Bool, QMetaType::Int, 0x80000000 | 5, 0x80000000 | 8,    9,   11,   13,
    QMetaType::Bool, 0x80000000 | 5,   11,
    QMetaType::Int, 0x80000000 | 5,   11,
    QMetaType::Int,
    QMetaType::Int, 0x80000000 | 5,   11,
    QMetaType::Int,
    QMetaType::Bool, QMetaType::Int, QMetaType::Int, 0x80000000 | 5,    9,   10,   11,
    QMetaType::Bool, QMetaType::Int, QMetaType::Int,    9,   10,
    QMetaType::Bool, QMetaType::Int, QMetaType::Int, 0x80000000 | 5,    9,   10,   11,
    QMetaType::Bool, QMetaType::Int, QMetaType::Int,    9,   10,
    QMetaType::Bool, 0x80000000 | 5, QMetaType::Int, QMetaType::Int, 0x80000000 | 5, QMetaType::Int,   20,   21,   10,   22,   23,
    QMetaType::Void,
    QMetaType::Void,

 // properties: name, type, flags
      26, 0x80000000 | 27, 0x0009510b,
      28, 0x80000000 | 29, 0x0009510b,

       0        // eod
};

void QtGui::EntryModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<EntryModel *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->reset(); break;
        case 1: { Io::Entry* _r = _t->entry((*reinterpret_cast< const 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< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< const 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< int(*)>(_a[1])),(*reinterpret_cast< const QModelIndex(*)>(_a[2])),(*reinterpret_cast< const 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< const QModelIndex(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 5: { int _r = _t->rowCount((*reinterpret_cast< const 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< const 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< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< const QModelIndex(*)>(_a[3])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 10: { bool _r = _t->insertRows((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 11: { bool _r = _t->removeRows((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< const QModelIndex(*)>(_a[3])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 12: { bool _r = _t->removeRows((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 13: { bool _r = _t->moveRows((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])),(*reinterpret_cast< const QModelIndex(*)>(_a[4])),(*reinterpret_cast< 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: ;
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<EntryModel *>(_o);
        (void)_t;
        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;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<EntryModel *>(_o);
        (void)_t;
        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;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject QtGui::EntryModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractItemModel::staticMetaObject>(),
    qt_meta_stringdata_QtGui__EntryModel.data,
    qt_meta_data_QtGui__EntryModel,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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_meta_stringdata_QtGui__EntryModel.stringdata0))
        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;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 16)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 16;
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 2;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
