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

#include "../../../jami-client-qt/src/app/wizardviewstepmodel.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 'wizardviewstepmodel.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.2. 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_ZN19DeviceAuthStateEnumE_t {};
} // unnamed namespace

template <> constexpr inline auto DeviceAuthStateEnum::qt_create_metaobjectdata<qt_meta_tag_ZN19DeviceAuthStateEnumE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "DeviceAuthStateEnum",
        "State",
        "INIT",
        "TOKEN_AVAILABLE",
        "CONNECTING",
        "AUTHENTICATING",
        "IN_PROGRESS",
        "DONE"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'State'
        QtMocHelpers::EnumData<enum State>(1, 1, QMC::EnumFlags{}).add({
            {    2, State::INIT },
            {    3, State::TOKEN_AVAILABLE },
            {    4, State::CONNECTING },
            {    5, State::AUTHENTICATING },
            {    6, State::IN_PROGRESS },
            {    7, State::DONE },
        }),
    };
    return QtMocHelpers::metaObjectData<DeviceAuthStateEnum, qt_meta_tag_ZN19DeviceAuthStateEnumE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject DeviceAuthStateEnum::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN19DeviceAuthStateEnumE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN19DeviceAuthStateEnumE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN19DeviceAuthStateEnumE_t>.metaTypes,
    nullptr
} };

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

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

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

int DeviceAuthStateEnum::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    return _id;
}
namespace {
struct qt_meta_tag_ZN19WizardViewStepModelE_t {};
} // unnamed namespace

template <> constexpr inline auto WizardViewStepModel::qt_create_metaobjectdata<qt_meta_tag_ZN19WizardViewStepModelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "WizardViewStepModel",
        "QML.Singleton",
        "true",
        "RegisterEnumClassesUnscoped",
        "false",
        "mainStepChanged",
        "",
        "accountCreationOptionChanged",
        "accountCreationInfoChanged",
        "deviceAuthStateChanged",
        "deviceLinkDetailsChanged",
        "accountIsReady",
        "accountId",
        "closeWizardView",
        "createAccountRequested",
        "AccountCreationOption",
        "startAccountCreationFlow",
        "accountCreationOption",
        "nextStep",
        "previousStep",
        "mainStep",
        "MainSteps",
        "accountCreationInfo",
        "QVariantMap",
        "deviceAuthState",
        "lrc::api::account::DeviceAuthState",
        "deviceLinkDetails",
        "Initial",
        "AccountCreation",
        "NameRegistration",
        "DeviceAuthorization",
        "ProfileCustomization",
        "None",
        "CreateJamiAccount",
        "CreateRendezVous",
        "ImportFromDevice",
        "ImportFromBackup",
        "ConnectToAccountManager",
        "CreateSipAccount"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'mainStepChanged'
        QtMocHelpers::SignalData<void()>(5, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'accountCreationOptionChanged'
        QtMocHelpers::SignalData<void()>(7, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'accountCreationInfoChanged'
        QtMocHelpers::SignalData<void()>(8, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'deviceAuthStateChanged'
        QtMocHelpers::SignalData<void()>(9, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'deviceLinkDetailsChanged'
        QtMocHelpers::SignalData<void()>(10, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'accountIsReady'
        QtMocHelpers::SignalData<void(QString)>(11, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 12 },
        }}),
        // Signal 'closeWizardView'
        QtMocHelpers::SignalData<void()>(13, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'createAccountRequested'
        QtMocHelpers::SignalData<void(enum AccountCreationOption)>(14, 6, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 15, 6 },
        }}),
        // Method 'startAccountCreationFlow'
        QtMocHelpers::MethodData<void(enum AccountCreationOption)>(16, 6, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 15, 17 },
        }}),
        // Method 'nextStep'
        QtMocHelpers::MethodData<void()>(18, 6, QMC::AccessPublic, QMetaType::Void),
        // Method 'previousStep'
        QtMocHelpers::MethodData<void()>(19, 6, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'mainStep'
        QtMocHelpers::PropertyData<enum MainSteps>(20, 0x80000000 | 21, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag, 0),
        // property 'accountCreationOption'
        QtMocHelpers::PropertyData<enum AccountCreationOption>(17, 0x80000000 | 15, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag, 1),
        // property 'accountCreationInfo'
        QtMocHelpers::PropertyData<QVariantMap>(22, 0x80000000 | 23, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag, 2),
        // property 'deviceAuthState'
        QtMocHelpers::PropertyData<lrc::api::account::DeviceAuthState>(24, 0x80000000 | 25, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag, 3),
        // property 'deviceLinkDetails'
        QtMocHelpers::PropertyData<QVariantMap>(26, 0x80000000 | 23, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag, 4),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'MainSteps'
        QtMocHelpers::EnumData<enum MainSteps>(21, 21, QMC::EnumIsScoped).add({
            {   27, MainSteps::Initial },
            {   28, MainSteps::AccountCreation },
            {   29, MainSteps::NameRegistration },
            {   30, MainSteps::DeviceAuthorization },
            {   31, MainSteps::ProfileCustomization },
        }),
        // enum 'AccountCreationOption'
        QtMocHelpers::EnumData<enum AccountCreationOption>(15, 15, QMC::EnumIsScoped).add({
            {   32, AccountCreationOption::None },
            {   33, AccountCreationOption::CreateJamiAccount },
            {   34, AccountCreationOption::CreateRendezVous },
            {   35, AccountCreationOption::ImportFromDevice },
            {   36, AccountCreationOption::ImportFromBackup },
            {   37, AccountCreationOption::ConnectToAccountManager },
            {   38, AccountCreationOption::CreateSipAccount },
        }),
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
    });
    return QtMocHelpers::metaObjectData<WizardViewStepModel, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT static const QMetaObject::SuperData qt_meta_extradata_ZN19WizardViewStepModelE[] = {
    QMetaObject::SuperData::link<lrc::api::account::staticMetaObject>(),
    nullptr
};

Q_CONSTINIT const QMetaObject WizardViewStepModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN19WizardViewStepModelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN19WizardViewStepModelE_t>.data,
    qt_static_metacall,
    qt_meta_extradata_ZN19WizardViewStepModelE,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN19WizardViewStepModelE_t>.metaTypes,
    nullptr
} };

void WizardViewStepModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<WizardViewStepModel *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->mainStepChanged(); break;
        case 1: _t->accountCreationOptionChanged(); break;
        case 2: _t->accountCreationInfoChanged(); break;
        case 3: _t->deviceAuthStateChanged(); break;
        case 4: _t->deviceLinkDetailsChanged(); break;
        case 5: _t->accountIsReady((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 6: _t->closeWizardView(); break;
        case 7: _t->createAccountRequested((*reinterpret_cast<std::add_pointer_t<enum AccountCreationOption>>(_a[1]))); break;
        case 8: _t->startAccountCreationFlow((*reinterpret_cast<std::add_pointer_t<enum AccountCreationOption>>(_a[1]))); break;
        case 9: _t->nextStep(); break;
        case 10: _t->previousStep(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (WizardViewStepModel::*)()>(_a, &WizardViewStepModel::mainStepChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (WizardViewStepModel::*)()>(_a, &WizardViewStepModel::accountCreationOptionChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (WizardViewStepModel::*)()>(_a, &WizardViewStepModel::accountCreationInfoChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (WizardViewStepModel::*)()>(_a, &WizardViewStepModel::deviceAuthStateChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (WizardViewStepModel::*)()>(_a, &WizardViewStepModel::deviceLinkDetailsChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (WizardViewStepModel::*)(QString )>(_a, &WizardViewStepModel::accountIsReady, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (WizardViewStepModel::*)()>(_a, &WizardViewStepModel::closeWizardView, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (WizardViewStepModel::*)(AccountCreationOption )>(_a, &WizardViewStepModel::createAccountRequested, 7))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<enum MainSteps*>(_v) = _t->mainStep_; break;
        case 1: *reinterpret_cast<enum AccountCreationOption*>(_v) = _t->accountCreationOption_; break;
        case 2: *reinterpret_cast<QVariantMap*>(_v) = _t->accountCreationInfo_; break;
        case 3: *reinterpret_cast<lrc::api::account::DeviceAuthState*>(_v) = _t->deviceAuthState_; break;
        case 4: *reinterpret_cast<QVariantMap*>(_v) = _t->deviceLinkDetails_; break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0:
            if (QtMocHelpers::setProperty(_t->mainStep_, *reinterpret_cast<enum MainSteps*>(_v)))
                Q_EMIT _t->mainStepChanged();
            break;
        case 1:
            if (QtMocHelpers::setProperty(_t->accountCreationOption_, *reinterpret_cast<enum AccountCreationOption*>(_v)))
                Q_EMIT _t->accountCreationOptionChanged();
            break;
        case 2:
            if (QtMocHelpers::setProperty(_t->accountCreationInfo_, *reinterpret_cast<QVariantMap*>(_v)))
                Q_EMIT _t->accountCreationInfoChanged();
            break;
        case 3:
            if (QtMocHelpers::setProperty(_t->deviceAuthState_, *reinterpret_cast<lrc::api::account::DeviceAuthState*>(_v)))
                Q_EMIT _t->deviceAuthStateChanged();
            break;
        case 4:
            if (QtMocHelpers::setProperty(_t->deviceLinkDetails_, *reinterpret_cast<QVariantMap*>(_v)))
                Q_EMIT _t->deviceLinkDetailsChanged();
            break;
        default: break;
        }
    }
}

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

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

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

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

// SIGNAL 1
void WizardViewStepModel::accountCreationOptionChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

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

// SIGNAL 3
void WizardViewStepModel::deviceAuthStateChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void WizardViewStepModel::deviceLinkDetailsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

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

// SIGNAL 6
void WizardViewStepModel::closeWizardView()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}

// SIGNAL 7
void WizardViewStepModel::createAccountRequested(AccountCreationOption _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1);
}
QT_WARNING_POP
