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

#include "../../../nheko/src/LoginPage.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 'LoginPage.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.10.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_ZN11SSOProviderE_t {};
} // unnamed namespace

template <> constexpr inline auto SSOProvider::qt_create_metaobjectdata<qt_meta_tag_ZN11SSOProviderE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "SSOProvider",
        "avatarUrl",
        "name",
        "id"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
        // property 'avatarUrl'
        QtMocHelpers::PropertyData<QString>(1, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'name'
        QtMocHelpers::PropertyData<QString>(2, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'id'
        QtMocHelpers::PropertyData<QString>(3, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<SSOProvider, qt_meta_tag_ZN11SSOProviderE_t>(QMC::PropertyAccessInStaticMetaCall, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject SSOProvider::staticMetaObject = { {
    nullptr,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11SSOProviderE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11SSOProviderE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN11SSOProviderE_t>.metaTypes,
    nullptr
} };

void SSOProvider::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = reinterpret_cast<SSOProvider *>(_o);
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QString*>(_v) = _t->avatarUrl(); break;
        case 1: *reinterpret_cast<QString*>(_v) = _t->name(); break;
        case 2: *reinterpret_cast<QString*>(_v) = _t->id(); break;
        default: break;
        }
    }
}
namespace {
struct qt_meta_tag_ZN9LoginPageE_t {};
} // unnamed namespace

template <> constexpr inline auto LoginPage::qt_create_metaobjectdata<qt_meta_tag_ZN9LoginPageE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "LoginPage",
        "QML.Element",
        "Login",
        "loggingInChanged",
        "",
        "errorOccurred",
        "versionErrorCb",
        "err",
        "versionOkCb",
        "passwordSupported",
        "ssoSupported",
        "QVariantList",
        "identityProviders",
        "loginOk",
        "mtx::responses::Login",
        "res",
        "onServerAddressEntered",
        "matrixIdChanged",
        "homeserverChanged",
        "mxidErrorChanged",
        "lookingUpHsChanged",
        "versionLookedUp",
        "versionLookupFinished",
        "showError",
        "msg",
        "onLoginButtonClicked",
        "LoginMethod",
        "loginMethod",
        "userid",
        "password",
        "deviceName",
        "versionError",
        "error_message",
        "versionOk",
        "initialDeviceName",
        "mxid",
        "homeserver",
        "mxidError",
        "error",
        "lookingUpHs",
        "homeserverValid",
        "loggingIn",
        "homeserverNeeded",
        "Password",
        "SSO"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'loggingInChanged'
        QtMocHelpers::SignalData<void()>(3, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'errorOccurred'
        QtMocHelpers::SignalData<void()>(5, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'versionErrorCb'
        QtMocHelpers::SignalData<void(const QString &)>(6, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 7 },
        }}),
        // Signal 'versionOkCb'
        QtMocHelpers::SignalData<void(bool, bool, QVariantList)>(8, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 9 }, { QMetaType::Bool, 10 }, { 0x80000000 | 11, 12 },
        }}),
        // Signal 'loginOk'
        QtMocHelpers::SignalData<void(const mtx::responses::Login &)>(13, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 14, 15 },
        }}),
        // Signal 'onServerAddressEntered'
        QtMocHelpers::SignalData<void()>(16, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'matrixIdChanged'
        QtMocHelpers::SignalData<void()>(17, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'homeserverChanged'
        QtMocHelpers::SignalData<void()>(18, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'mxidErrorChanged'
        QtMocHelpers::SignalData<void()>(19, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'lookingUpHsChanged'
        QtMocHelpers::SignalData<void()>(20, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'versionLookedUp'
        QtMocHelpers::SignalData<void()>(21, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'versionLookupFinished'
        QtMocHelpers::SignalData<void()>(22, 4, QMC::AccessPublic, QMetaType::Void),
        // Slot 'showError'
        QtMocHelpers::SlotData<void(const QString &)>(23, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 24 },
        }}),
        // Slot 'onLoginButtonClicked'
        QtMocHelpers::SlotData<void(enum LoginMethod, const QString &, const QString &, const QString &)>(25, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 26, 27 }, { QMetaType::QString, 28 }, { QMetaType::QString, 29 }, { QMetaType::QString, 30 },
        }}),
        // Slot 'versionError'
        QtMocHelpers::SlotData<void(const QString &)>(31, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 32 },
        }}),
        // Slot 'versionOk'
        QtMocHelpers::SlotData<void(bool, bool, QVariantList)>(33, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 9 }, { QMetaType::Bool, 10 }, { 0x80000000 | 11, 12 },
        }}),
        // Method 'initialDeviceName'
        QtMocHelpers::MethodData<QString() const>(34, 4, QMC::AccessPublic, QMetaType::QString),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'mxid'
        QtMocHelpers::PropertyData<QString>(35, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 6),
        // property 'homeserver'
        QtMocHelpers::PropertyData<QString>(36, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 7),
        // property 'mxidError'
        QtMocHelpers::PropertyData<QString>(37, QMetaType::QString, QMC::DefaultPropertyFlags, 8),
        // property 'error'
        QtMocHelpers::PropertyData<QString>(38, QMetaType::QString, QMC::DefaultPropertyFlags, 1),
        // property 'lookingUpHs'
        QtMocHelpers::PropertyData<bool>(39, QMetaType::Bool, QMC::DefaultPropertyFlags, 9),
        // property 'homeserverValid'
        QtMocHelpers::PropertyData<bool>(40, QMetaType::Bool, QMC::DefaultPropertyFlags, 9),
        // property 'loggingIn'
        QtMocHelpers::PropertyData<bool>(41, QMetaType::Bool, QMC::DefaultPropertyFlags, 0),
        // property 'passwordSupported'
        QtMocHelpers::PropertyData<bool>(9, QMetaType::Bool, QMC::DefaultPropertyFlags, 10),
        // property 'ssoSupported'
        QtMocHelpers::PropertyData<bool>(10, QMetaType::Bool, QMC::DefaultPropertyFlags, 10),
        // property 'homeserverNeeded'
        QtMocHelpers::PropertyData<bool>(42, QMetaType::Bool, QMC::DefaultPropertyFlags, 10),
        // property 'identityProviders'
        QtMocHelpers::PropertyData<QVariantList>(12, 0x80000000 | 11, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 10),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'LoginMethod'
        QtMocHelpers::EnumData<enum LoginMethod>(26, 26, QMC::EnumIsScoped).add({
            {   43, LoginMethod::Password },
            {   44, LoginMethod::SSO },
        }),
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<LoginPage, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject LoginPage::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9LoginPageE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9LoginPageE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN9LoginPageE_t>.metaTypes,
    nullptr
} };

void LoginPage::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<LoginPage *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->loggingInChanged(); break;
        case 1: _t->errorOccurred(); break;
        case 2: _t->versionErrorCb((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 3: _t->versionOkCb((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QVariantList>>(_a[3]))); break;
        case 4: _t->loginOk((*reinterpret_cast<std::add_pointer_t<mtx::responses::Login>>(_a[1]))); break;
        case 5: _t->onServerAddressEntered(); break;
        case 6: _t->matrixIdChanged(); break;
        case 7: _t->homeserverChanged(); break;
        case 8: _t->mxidErrorChanged(); break;
        case 9: _t->lookingUpHsChanged(); break;
        case 10: _t->versionLookedUp(); break;
        case 11: _t->versionLookupFinished(); break;
        case 12: _t->showError((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 13: _t->onLoginButtonClicked((*reinterpret_cast<std::add_pointer_t<enum LoginMethod>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[4]))); break;
        case 14: _t->versionError((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 15: _t->versionOk((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QVariantList>>(_a[3]))); break;
        case 16: { QString _r = _t->initialDeviceName();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (LoginPage::*)()>(_a, &LoginPage::loggingInChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (LoginPage::*)()>(_a, &LoginPage::errorOccurred, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (LoginPage::*)(const QString & )>(_a, &LoginPage::versionErrorCb, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (LoginPage::*)(bool , bool , QVariantList )>(_a, &LoginPage::versionOkCb, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (LoginPage::*)(const mtx::responses::Login & )>(_a, &LoginPage::loginOk, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (LoginPage::*)()>(_a, &LoginPage::onServerAddressEntered, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (LoginPage::*)()>(_a, &LoginPage::matrixIdChanged, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (LoginPage::*)()>(_a, &LoginPage::homeserverChanged, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (LoginPage::*)()>(_a, &LoginPage::mxidErrorChanged, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (LoginPage::*)()>(_a, &LoginPage::lookingUpHsChanged, 9))
            return;
        if (QtMocHelpers::indexOfMethod<void (LoginPage::*)()>(_a, &LoginPage::versionLookedUp, 10))
            return;
        if (QtMocHelpers::indexOfMethod<void (LoginPage::*)()>(_a, &LoginPage::versionLookupFinished, 11))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QString*>(_v) = _t->mxid(); break;
        case 1: *reinterpret_cast<QString*>(_v) = _t->homeserver(); break;
        case 2: *reinterpret_cast<QString*>(_v) = _t->mxidError(); break;
        case 3: *reinterpret_cast<QString*>(_v) = _t->error(); break;
        case 4: *reinterpret_cast<bool*>(_v) = _t->lookingUpHs(); break;
        case 5: *reinterpret_cast<bool*>(_v) = _t->homeserverValid(); break;
        case 6: *reinterpret_cast<bool*>(_v) = _t->loggingIn(); break;
        case 7: *reinterpret_cast<bool*>(_v) = _t->passwordSupported(); break;
        case 8: *reinterpret_cast<bool*>(_v) = _t->ssoSupported(); break;
        case 9: *reinterpret_cast<bool*>(_v) = _t->homeserverNeeded(); break;
        case 10: *reinterpret_cast<QVariantList*>(_v) = _t->identityProviders(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setMxid(*reinterpret_cast<QString*>(_v)); break;
        case 1: _t->setHomeserver(*reinterpret_cast<QString*>(_v)); break;
        default: break;
        }
    }
}

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

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

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

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

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

// SIGNAL 2
void LoginPage::versionErrorCb(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void LoginPage::versionOkCb(bool _t1, bool _t2, QVariantList _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1, _t2, _t3);
}

// SIGNAL 4
void LoginPage::loginOk(const mtx::responses::Login & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

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

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

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

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

// SIGNAL 9
void LoginPage::lookingUpHsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 9, nullptr);
}

// SIGNAL 10
void LoginPage::versionLookedUp()
{
    QMetaObject::activate(this, &staticMetaObject, 10, nullptr);
}

// SIGNAL 11
void LoginPage::versionLookupFinished()
{
    QMetaObject::activate(this, &staticMetaObject, 11, nullptr);
}
QT_WARNING_POP
