/****************************************************************************
** Meta object code from reading C++ file 'mauilist.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 "../../../../mauikit-4.0.2/src/utils/model_template/mauilist.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 'mauilist.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_ZN8MauiListE_t {};
} // unnamed namespace

template <> constexpr inline auto MauiList::qt_create_metaobjectdata<qt_meta_tag_ZN8MauiListE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "MauiList",
        "QML.Element",
        "anonymous",
        "preItemAppended",
        "",
        "preItemsAppended",
        "count",
        "postItemAppended",
        "preItemAppendedAt",
        "index",
        "preItemRemoved",
        "postItemRemoved",
        "updateModel",
        "QList<int>",
        "roles",
        "preListChanged",
        "postListChanged",
        "itemMoved",
        "to",
        "countChanged",
        "get",
        "QVariantMap"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'preItemAppended'
        QtMocHelpers::SignalData<void()>(3, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'preItemsAppended'
        QtMocHelpers::SignalData<void(uint)>(5, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 6 },
        }}),
        // Signal 'postItemAppended'
        QtMocHelpers::SignalData<void()>(7, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'preItemAppendedAt'
        QtMocHelpers::SignalData<void(int)>(8, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 9 },
        }}),
        // Signal 'preItemRemoved'
        QtMocHelpers::SignalData<void(int)>(10, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 9 },
        }}),
        // Signal 'postItemRemoved'
        QtMocHelpers::SignalData<void()>(11, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'updateModel'
        QtMocHelpers::SignalData<void(int, QVector<int>)>(12, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 9 }, { 0x80000000 | 13, 14 },
        }}),
        // Signal 'preListChanged'
        QtMocHelpers::SignalData<void()>(15, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'postListChanged'
        QtMocHelpers::SignalData<void()>(16, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'itemMoved'
        QtMocHelpers::SignalData<void(int, int)>(17, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 9 }, { QMetaType::Int, 18 },
        }}),
        // Signal 'countChanged'
        QtMocHelpers::SignalData<void()>(19, 4, QMC::AccessPublic, QMetaType::Void),
        // Slot 'get'
        QtMocHelpers::SlotData<QVariantMap(const int &) const>(20, 4, QMC::AccessPublic, 0x80000000 | 21, {{
            { QMetaType::Int, 9 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'count'
        QtMocHelpers::PropertyData<int>(6, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Final, 10),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<MauiList, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject MauiList::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8MauiListE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8MauiListE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8MauiListE_t>.metaTypes,
    nullptr
} };

void MauiList::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<MauiList *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->preItemAppended(); break;
        case 1: _t->preItemsAppended((*reinterpret_cast<std::add_pointer_t<uint>>(_a[1]))); break;
        case 2: _t->postItemAppended(); break;
        case 3: _t->preItemAppendedAt((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 4: _t->preItemRemoved((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 5: _t->postItemRemoved(); break;
        case 6: _t->updateModel((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QList<int>>>(_a[2]))); break;
        case 7: _t->preListChanged(); break;
        case 8: _t->postListChanged(); break;
        case 9: _t->itemMoved((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 10: _t->countChanged(); break;
        case 11: { QVariantMap _r = _t->get((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QVariantMap*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 6:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QList<int> >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (MauiList::*)()>(_a, &MauiList::preItemAppended, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (MauiList::*)(uint )>(_a, &MauiList::preItemsAppended, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (MauiList::*)()>(_a, &MauiList::postItemAppended, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (MauiList::*)(int )>(_a, &MauiList::preItemAppendedAt, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (MauiList::*)(int )>(_a, &MauiList::preItemRemoved, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (MauiList::*)()>(_a, &MauiList::postItemRemoved, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (MauiList::*)(int , QVector<int> )>(_a, &MauiList::updateModel, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (MauiList::*)()>(_a, &MauiList::preListChanged, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (MauiList::*)()>(_a, &MauiList::postListChanged, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (MauiList::*)(int , int )>(_a, &MauiList::itemMoved, 9))
            return;
        if (QtMocHelpers::indexOfMethod<void (MauiList::*)()>(_a, &MauiList::countChanged, 10))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<int*>(_v) = _t->getCount(); break;
        default: break;
        }
    }
}

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

void *MauiList::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8MauiListE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "QQmlParserStatus"))
        return static_cast< QQmlParserStatus*>(this);
    if (!strcmp(_clname, "org.qt-project.Qt.QQmlParserStatus"))
        return static_cast< QQmlParserStatus*>(this);
    return QObject::qt_metacast(_clname);
}

int MauiList::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 1;
    }
    return _id;
}

// SIGNAL 0
void MauiList::preItemAppended()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void MauiList::preItemsAppended(uint _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

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

// SIGNAL 3
void MauiList::preItemAppendedAt(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void MauiList::preItemRemoved(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void MauiList::postItemRemoved()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void MauiList::updateModel(int _t1, QVector<int> _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1, _t2);
}

// SIGNAL 7
void MauiList::preListChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
}

// SIGNAL 8
void MauiList::postListChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 8, nullptr);
}

// SIGNAL 9
void MauiList::itemMoved(int _t1, int _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 9, nullptr, _t1, _t2);
}

// SIGNAL 10
void MauiList::countChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 10, nullptr);
}
QT_WARNING_POP
