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

#include "../../../../mauikit-accounts-4.0.2/src/code/mauiaccounts.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 'mauiaccounts.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.9.0. 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_ZN12MauiAccountsE_t {};
} // unnamed namespace

template <> constexpr inline auto MauiAccounts::qt_create_metaobjectdata<qt_meta_tag_ZN12MauiAccountsE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "MauiAccounts",
        "accountAdded",
        "",
        "QVariantMap",
        "account",
        "accountRemoved",
        "currentAccountChanged",
        "currentAccountIndexChanged",
        "index",
        "getCloudAccountsList",
        "QVariantList",
        "getCloudAccounts",
        "FMH::MODEL_LIST",
        "registerAccount",
        "removeAccount",
        "removeAccountAndFiles",
        "refresh",
        "currentAccountIndex",
        "currentAccount"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'accountAdded'
        QtMocHelpers::SignalData<void(QVariantMap)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'accountRemoved'
        QtMocHelpers::SignalData<void(QVariantMap)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'currentAccountChanged'
        QtMocHelpers::SignalData<void(QVariantMap)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'currentAccountIndexChanged'
        QtMocHelpers::SignalData<void(int)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 8 },
        }}),
        // Slot 'getCloudAccountsList'
        QtMocHelpers::SlotData<QVariantList()>(9, 2, QMC::AccessPublic, 0x80000000 | 10),
        // Slot 'getCloudAccounts'
        QtMocHelpers::SlotData<FMH::MODEL_LIST()>(11, 2, QMC::AccessPublic, 0x80000000 | 12),
        // Slot 'registerAccount'
        QtMocHelpers::SlotData<void(const QVariantMap &)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Slot 'removeAccount'
        QtMocHelpers::SlotData<void(const int &)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 8 },
        }}),
        // Slot 'removeAccountAndFiles'
        QtMocHelpers::SlotData<void(const int &)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 8 },
        }}),
        // Slot 'refresh'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'currentAccountIndex'
        QtMocHelpers::PropertyData<int>(17, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 3),
        // property 'currentAccount'
        QtMocHelpers::PropertyData<QVariantMap>(18, 0x80000000 | 3, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 2),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<MauiAccounts, qt_meta_tag_ZN12MauiAccountsE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject MauiAccounts::staticMetaObject = { {
    QMetaObject::SuperData::link<MauiList::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12MauiAccountsE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12MauiAccountsE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12MauiAccountsE_t>.metaTypes,
    nullptr
} };

void MauiAccounts::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<MauiAccounts *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->accountAdded((*reinterpret_cast< std::add_pointer_t<QVariantMap>>(_a[1]))); break;
        case 1: _t->accountRemoved((*reinterpret_cast< std::add_pointer_t<QVariantMap>>(_a[1]))); break;
        case 2: _t->currentAccountChanged((*reinterpret_cast< std::add_pointer_t<QVariantMap>>(_a[1]))); break;
        case 3: _t->currentAccountIndexChanged((*reinterpret_cast< std::add_pointer_t<int>>(_a[1]))); break;
        case 4: { QVariantList _r = _t->getCloudAccountsList();
            if (_a[0]) *reinterpret_cast< QVariantList*>(_a[0]) = std::move(_r); }  break;
        case 5: { FMH::MODEL_LIST _r = _t->getCloudAccounts();
            if (_a[0]) *reinterpret_cast< FMH::MODEL_LIST*>(_a[0]) = std::move(_r); }  break;
        case 6: _t->registerAccount((*reinterpret_cast< std::add_pointer_t<QVariantMap>>(_a[1]))); break;
        case 7: _t->removeAccount((*reinterpret_cast< std::add_pointer_t<int>>(_a[1]))); break;
        case 8: _t->removeAccountAndFiles((*reinterpret_cast< std::add_pointer_t<int>>(_a[1]))); break;
        case 9: _t->refresh(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (MauiAccounts::*)(QVariantMap )>(_a, &MauiAccounts::accountAdded, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (MauiAccounts::*)(QVariantMap )>(_a, &MauiAccounts::accountRemoved, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (MauiAccounts::*)(QVariantMap )>(_a, &MauiAccounts::currentAccountChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (MauiAccounts::*)(int )>(_a, &MauiAccounts::currentAccountIndexChanged, 3))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<int*>(_v) = _t->getCurrentAccountIndex(); break;
        case 1: *reinterpret_cast<QVariantMap*>(_v) = _t->getCurrentAccount(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setCurrentAccountIndex(*reinterpret_cast<int*>(_v)); break;
        default: break;
        }
    }
}

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

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

int MauiAccounts::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = MauiList::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 10)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 10)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 10;
    }
    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;
}

// SIGNAL 0
void MauiAccounts::accountAdded(QVariantMap _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void MauiAccounts::accountRemoved(QVariantMap _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void MauiAccounts::currentAccountChanged(QVariantMap _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

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