/****************************************************************************
** Meta object code from reading C++ file 'mauimodel.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/mauimodel.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 'mauimodel.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_ZN9MauiModelE_t {};
} // unnamed namespace

template <> constexpr inline auto MauiModel::qt_create_metaobjectdata<qt_meta_tag_ZN9MauiModelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "MauiModel",
        "QML.Element",
        "BaseModel",
        "listChanged",
        "",
        "filterChanged",
        "filtersChanged",
        "sortOrderChanged",
        "Qt::SortOrder",
        "sortChanged",
        "filterRoleNameChanged",
        "countChanged",
        "setFilter",
        "filter",
        "setFilters",
        "filters",
        "setSortOrder",
        "sortOrder",
        "setSort",
        "sort",
        "get",
        "QVariantMap",
        "index",
        "getAll",
        "QVariantList",
        "mappedFromSource",
        "mappedToSource",
        "setFilterRoleName",
        "move",
        "to",
        "clearFilters",
        "list",
        "MauiList*",
        "filterRole",
        "count"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'listChanged'
        QtMocHelpers::SignalData<void()>(3, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'filterChanged'
        QtMocHelpers::SignalData<void(QString)>(5, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 4 },
        }}),
        // Signal 'filtersChanged'
        QtMocHelpers::SignalData<void(QStringList)>(6, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QStringList, 4 },
        }}),
        // Signal 'sortOrderChanged'
        QtMocHelpers::SignalData<void(Qt::SortOrder)>(7, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 4 },
        }}),
        // Signal 'sortChanged'
        QtMocHelpers::SignalData<void(QString)>(9, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 4 },
        }}),
        // Signal 'filterRoleNameChanged'
        QtMocHelpers::SignalData<void(QString)>(10, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 4 },
        }}),
        // Signal 'countChanged'
        QtMocHelpers::SignalData<void()>(11, 4, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setFilter'
        QtMocHelpers::SlotData<void(const QString &)>(12, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 13 },
        }}),
        // Slot 'setFilters'
        QtMocHelpers::SlotData<void(const QStringList &)>(14, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QStringList, 15 },
        }}),
        // Slot 'setSortOrder'
        QtMocHelpers::SlotData<void(const Qt::SortOrder &)>(16, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 17 },
        }}),
        // Slot 'setSort'
        QtMocHelpers::SlotData<void(const QString &)>(18, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 19 },
        }}),
        // Slot 'get'
        QtMocHelpers::SlotData<QVariantMap(const int &) const>(20, 4, QMC::AccessPublic, 0x80000000 | 21, {{
            { QMetaType::Int, 22 },
        }}),
        // Slot 'getAll'
        QtMocHelpers::SlotData<QVariantList() const>(23, 4, QMC::AccessPublic, 0x80000000 | 24),
        // Slot 'mappedFromSource'
        QtMocHelpers::SlotData<int(const int &) const>(25, 4, QMC::AccessPublic, QMetaType::Int, {{
            { QMetaType::Int, 22 },
        }}),
        // Slot 'mappedToSource'
        QtMocHelpers::SlotData<int(const int &) const>(26, 4, QMC::AccessPublic, QMetaType::Int, {{
            { QMetaType::Int, 4 },
        }}),
        // Slot 'setFilterRoleName'
        QtMocHelpers::SlotData<void(QString)>(27, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 4 },
        }}),
        // Slot 'move'
        QtMocHelpers::SlotData<bool(const int &, const int &)>(28, 4, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::Int, 22 }, { QMetaType::Int, 29 },
        }}),
        // Slot 'clearFilters'
        QtMocHelpers::SlotData<void()>(30, 4, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'list'
        QtMocHelpers::PropertyData<MauiList*>(31, 0x80000000 | 32, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
        // property 'filter'
        QtMocHelpers::PropertyData<QString>(13, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
        // property 'filters'
        QtMocHelpers::PropertyData<QStringList>(15, QMetaType::QStringList, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
        // property 'filterRole'
        QtMocHelpers::PropertyData<QString>(33, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable, 5),
        // property 'sortOrder'
        QtMocHelpers::PropertyData<Qt::SortOrder>(17, 0x80000000 | 8, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 3),
        // property 'sort'
        QtMocHelpers::PropertyData<QString>(19, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 4),
        // property 'count'
        QtMocHelpers::PropertyData<int>(34, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Final, 6),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<MauiModel, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject MauiModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QSortFilterProxyModel::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9MauiModelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9MauiModelE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN9MauiModelE_t>.metaTypes,
    nullptr
} };

void MauiModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<MauiModel *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->listChanged(); break;
        case 1: _t->filterChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 2: _t->filtersChanged((*reinterpret_cast<std::add_pointer_t<QStringList>>(_a[1]))); break;
        case 3: _t->sortOrderChanged((*reinterpret_cast<std::add_pointer_t<Qt::SortOrder>>(_a[1]))); break;
        case 4: _t->sortChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 5: _t->filterRoleNameChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 6: _t->countChanged(); break;
        case 7: _t->setFilter((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 8: _t->setFilters((*reinterpret_cast<std::add_pointer_t<QStringList>>(_a[1]))); break;
        case 9: _t->setSortOrder((*reinterpret_cast<std::add_pointer_t<Qt::SortOrder>>(_a[1]))); break;
        case 10: _t->setSort((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); 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;
        case 12: { QVariantList _r = _t->getAll();
            if (_a[0]) *reinterpret_cast<QVariantList*>(_a[0]) = std::move(_r); }  break;
        case 13: { int _r = _t->mappedFromSource((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 14: { int _r = _t->mappedToSource((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 15: _t->setFilterRoleName((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 16: { bool _r = _t->move((*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 17: _t->clearFilters(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (MauiModel::*)()>(_a, &MauiModel::listChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (MauiModel::*)(QString )>(_a, &MauiModel::filterChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (MauiModel::*)(QStringList )>(_a, &MauiModel::filtersChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (MauiModel::*)(Qt::SortOrder )>(_a, &MauiModel::sortOrderChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (MauiModel::*)(QString )>(_a, &MauiModel::sortChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (MauiModel::*)(QString )>(_a, &MauiModel::filterRoleNameChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (MauiModel::*)()>(_a, &MauiModel::countChanged, 6))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<MauiList**>(_v) = _t->getList(); break;
        case 1: *reinterpret_cast<QString*>(_v) = _t->getFilter(); break;
        case 2: *reinterpret_cast<QStringList*>(_v) = _t->getFilters(); break;
        case 3: *reinterpret_cast<QString*>(_v) = _t->getFilterRoleName(); break;
        case 4: *reinterpret_cast<Qt::SortOrder*>(_v) = _t->getSortOrder(); break;
        case 5: *reinterpret_cast<QString*>(_v) = _t->getSort(); break;
        case 6: *reinterpret_cast<int*>(_v) = _t->count(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setList(*reinterpret_cast<MauiList**>(_v)); break;
        case 1: _t->setFilter(*reinterpret_cast<QString*>(_v)); break;
        case 2: _t->setFilters(*reinterpret_cast<QStringList*>(_v)); break;
        case 3: _t->setFilterRoleName(*reinterpret_cast<QString*>(_v)); break;
        case 4: _t->setSortOrder(*reinterpret_cast<Qt::SortOrder*>(_v)); break;
        case 5: _t->setSort(*reinterpret_cast<QString*>(_v)); break;
        default: break;
        }
    }
}

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

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

int MauiModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QSortFilterProxyModel::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 18)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 18;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 18)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 18;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 7;
    }
    return _id;
}

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

// SIGNAL 1
void MauiModel::filterChanged(QString _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void MauiModel::filtersChanged(QStringList _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void MauiModel::sortOrderChanged(Qt::SortOrder _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void MauiModel::sortChanged(QString _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void MauiModel::filterRoleNameChanged(QString _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}

// SIGNAL 6
void MauiModel::countChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}
namespace {
struct qt_meta_tag_ZN9MauiModel24PrivateAbstractListModelE_t {};
} // unnamed namespace

template <> constexpr inline auto MauiModel::PrivateAbstractListModel::qt_create_metaobjectdata<qt_meta_tag_ZN9MauiModel24PrivateAbstractListModelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "MauiModel::PrivateAbstractListModel"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<PrivateAbstractListModel, qt_meta_tag_ZN9MauiModel24PrivateAbstractListModelE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject MauiModel::PrivateAbstractListModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractListModel::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9MauiModel24PrivateAbstractListModelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9MauiModel24PrivateAbstractListModelE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN9MauiModel24PrivateAbstractListModelE_t>.metaTypes,
    nullptr
} };

void MauiModel::PrivateAbstractListModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<PrivateAbstractListModel *>(_o);
    (void)_t;
    (void)_c;
    (void)_id;
    (void)_a;
}

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

void *MauiModel::PrivateAbstractListModel::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9MauiModel24PrivateAbstractListModelE_t>.strings))
        return static_cast<void*>(this);
    return QAbstractListModel::qt_metacast(_clname);
}

int MauiModel::PrivateAbstractListModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QAbstractListModel::qt_metacall(_c, _id, _a);
    return _id;
}
QT_WARNING_POP
