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

#include "../../../../../neochat-26.07.90/src/login/registration.h"
#include <QtNetwork/QSslError>
#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 'registration.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.12.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_ZN12RegistrationE_t {};
} // unnamed namespace

template <> constexpr inline auto Registration::qt_create_metaobjectdata<qt_meta_tag_ZN12RegistrationE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Registration",
        "QML.Element",
        "auto",
        "QML.Singleton",
        "true",
        "recaptchaSiteKeyChanged",
        "",
        "recaptchaResponseChanged",
        "homeserverChanged",
        "homeserverAvailableChanged",
        "testingChanged",
        "registrationTokenChanged",
        "usernameChanged",
        "usernameAvailableChanged",
        "testingUsernameChanged",
        "flowsChanged",
        "termsChanged",
        "passwordChanged",
        "emailChanged",
        "nextStepChanged",
        "statusChanged",
        "loaded",
        "oidcUrlChanged",
        "connected",
        "NeoChatConnection*",
        "connection",
        "registerAccount",
        "registerEmail",
        "homeserver",
        "registrationToken",
        "username",
        "recaptchaSiteKey",
        "recaptchaResponse",
        "password",
        "email",
        "nextStep",
        "terms",
        "QList<QVariantMap>",
        "status",
        "Status",
        "statusString",
        "oidcUrl",
        "QUrl",
        "NoServer",
        "TestingHomeserver",
        "InvalidServer",
        "ServerNoRegistration",
        "RegistrationTokenRequired",
        "TestingRegistrationToken",
        "NoRegistrationTokenPrevalidation",
        "InvalidRegistrationToken",
        "NoUsername",
        "TestingUsername",
        "UsernameTaken",
        "Ready",
        "Working",
        "Oidc"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'recaptchaSiteKeyChanged'
        QtMocHelpers::SignalData<void()>(5, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'recaptchaResponseChanged'
        QtMocHelpers::SignalData<void()>(7, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'homeserverChanged'
        QtMocHelpers::SignalData<void()>(8, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'homeserverAvailableChanged'
        QtMocHelpers::SignalData<void()>(9, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'testingChanged'
        QtMocHelpers::SignalData<void()>(10, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'registrationTokenChanged'
        QtMocHelpers::SignalData<void()>(11, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'usernameChanged'
        QtMocHelpers::SignalData<void()>(12, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'usernameAvailableChanged'
        QtMocHelpers::SignalData<void()>(13, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'testingUsernameChanged'
        QtMocHelpers::SignalData<void()>(14, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'flowsChanged'
        QtMocHelpers::SignalData<void()>(15, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'termsChanged'
        QtMocHelpers::SignalData<void()>(16, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'passwordChanged'
        QtMocHelpers::SignalData<void()>(17, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'emailChanged'
        QtMocHelpers::SignalData<void()>(18, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'nextStepChanged'
        QtMocHelpers::SignalData<void()>(19, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'statusChanged'
        QtMocHelpers::SignalData<void()>(20, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'loaded'
        QtMocHelpers::SignalData<void()>(21, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'oidcUrlChanged'
        QtMocHelpers::SignalData<void()>(22, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'connected'
        QtMocHelpers::SignalData<void(NeoChatConnection *)>(23, 6, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 24, 25 },
        }}),
        // Method 'registerAccount'
        QtMocHelpers::MethodData<void()>(26, 6, QMC::AccessPublic, QMetaType::Void),
        // Method 'registerEmail'
        QtMocHelpers::MethodData<void()>(27, 6, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'homeserver'
        QtMocHelpers::PropertyData<QString>(28, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
        // property 'registrationToken'
        QtMocHelpers::PropertyData<QString>(29, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 5),
        // property 'username'
        QtMocHelpers::PropertyData<QString>(30, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 6),
        // property 'recaptchaSiteKey'
        QtMocHelpers::PropertyData<QString>(31, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 0),
        // property 'recaptchaResponse'
        QtMocHelpers::PropertyData<QString>(32, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
        // property 'password'
        QtMocHelpers::PropertyData<QString>(33, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 11),
        // property 'email'
        QtMocHelpers::PropertyData<QString>(34, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 12),
        // property 'nextStep'
        QtMocHelpers::PropertyData<QString>(35, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 13),
        // property 'terms'
        QtMocHelpers::PropertyData<QList<QVariantMap>>(36, 0x80000000 | 37, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 10),
        // property 'status'
        QtMocHelpers::PropertyData<enum Status>(38, 0x80000000 | 39, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 14),
        // property 'statusString'
        QtMocHelpers::PropertyData<QString>(40, QMetaType::QString, QMC::DefaultPropertyFlags, 14),
        // property 'oidcUrl'
        QtMocHelpers::PropertyData<QUrl>(41, 0x80000000 | 42, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag, 16),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'Status'
        QtMocHelpers::EnumData<enum Status>(39, 39, QMC::EnumFlags{}).add({
            {   43, Status::NoServer },
            {   44, Status::TestingHomeserver },
            {   45, Status::InvalidServer },
            {   46, Status::ServerNoRegistration },
            {   47, Status::RegistrationTokenRequired },
            {   48, Status::TestingRegistrationToken },
            {   49, Status::NoRegistrationTokenPrevalidation },
            {   50, Status::InvalidRegistrationToken },
            {   51, Status::NoUsername },
            {   52, Status::TestingUsername },
            {   53, Status::UsernameTaken },
            {   54, Status::Ready },
            {   55, Status::Working },
            {   56, Status::Oidc },
        }),
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
    });
    return QtMocHelpers::metaObjectData<Registration, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject Registration::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12RegistrationE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12RegistrationE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12RegistrationE_t>.metaTypes,
    nullptr
} };

void Registration::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Registration *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->recaptchaSiteKeyChanged(); break;
        case 1: _t->recaptchaResponseChanged(); break;
        case 2: _t->homeserverChanged(); break;
        case 3: _t->homeserverAvailableChanged(); break;
        case 4: _t->testingChanged(); break;
        case 5: _t->registrationTokenChanged(); break;
        case 6: _t->usernameChanged(); break;
        case 7: _t->usernameAvailableChanged(); break;
        case 8: _t->testingUsernameChanged(); break;
        case 9: _t->flowsChanged(); break;
        case 10: _t->termsChanged(); break;
        case 11: _t->passwordChanged(); break;
        case 12: _t->emailChanged(); break;
        case 13: _t->nextStepChanged(); break;
        case 14: _t->statusChanged(); break;
        case 15: _t->loaded(); break;
        case 16: _t->oidcUrlChanged(); break;
        case 17: _t->connected((*reinterpret_cast<std::add_pointer_t<NeoChatConnection*>>(_a[1]))); break;
        case 18: _t->registerAccount(); break;
        case 19: _t->registerEmail(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 17:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< NeoChatConnection* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Registration::*)()>(_a, &Registration::recaptchaSiteKeyChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Registration::*)()>(_a, &Registration::recaptchaResponseChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Registration::*)()>(_a, &Registration::homeserverChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (Registration::*)()>(_a, &Registration::homeserverAvailableChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (Registration::*)()>(_a, &Registration::testingChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (Registration::*)()>(_a, &Registration::registrationTokenChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (Registration::*)()>(_a, &Registration::usernameChanged, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (Registration::*)()>(_a, &Registration::usernameAvailableChanged, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (Registration::*)()>(_a, &Registration::testingUsernameChanged, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (Registration::*)()>(_a, &Registration::flowsChanged, 9))
            return;
        if (QtMocHelpers::indexOfMethod<void (Registration::*)()>(_a, &Registration::termsChanged, 10))
            return;
        if (QtMocHelpers::indexOfMethod<void (Registration::*)()>(_a, &Registration::passwordChanged, 11))
            return;
        if (QtMocHelpers::indexOfMethod<void (Registration::*)()>(_a, &Registration::emailChanged, 12))
            return;
        if (QtMocHelpers::indexOfMethod<void (Registration::*)()>(_a, &Registration::nextStepChanged, 13))
            return;
        if (QtMocHelpers::indexOfMethod<void (Registration::*)()>(_a, &Registration::statusChanged, 14))
            return;
        if (QtMocHelpers::indexOfMethod<void (Registration::*)()>(_a, &Registration::loaded, 15))
            return;
        if (QtMocHelpers::indexOfMethod<void (Registration::*)()>(_a, &Registration::oidcUrlChanged, 16))
            return;
        if (QtMocHelpers::indexOfMethod<void (Registration::*)(NeoChatConnection * )>(_a, &Registration::connected, 17))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QString*>(_v) = _t->homeserver(); break;
        case 1: *reinterpret_cast<QString*>(_v) = _t->registrationToken(); break;
        case 2: *reinterpret_cast<QString*>(_v) = _t->username(); break;
        case 3: *reinterpret_cast<QString*>(_v) = _t->recaptchaSiteKey(); break;
        case 4: *reinterpret_cast<QString*>(_v) = _t->recaptchaResponse(); break;
        case 5: *reinterpret_cast<QString*>(_v) = _t->password(); break;
        case 6: *reinterpret_cast<QString*>(_v) = _t->email(); break;
        case 7: *reinterpret_cast<QString*>(_v) = _t->nextStep(); break;
        case 8: *reinterpret_cast<QList<QVariantMap>*>(_v) = _t->terms(); break;
        case 9: *reinterpret_cast<enum Status*>(_v) = _t->status(); break;
        case 10: *reinterpret_cast<QString*>(_v) = _t->statusString(); break;
        case 11: *reinterpret_cast<QUrl*>(_v) = _t->m_oidcUrl; break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setHomeserver(*reinterpret_cast<QString*>(_v)); break;
        case 1: _t->setRegistrationToken(*reinterpret_cast<QString*>(_v)); break;
        case 2: _t->setUsername(*reinterpret_cast<QString*>(_v)); break;
        case 3: _t->setRecaptchaSiteKey(*reinterpret_cast<QString*>(_v)); break;
        case 4: _t->setRecaptchaResponse(*reinterpret_cast<QString*>(_v)); break;
        case 5: _t->setPassword(*reinterpret_cast<QString*>(_v)); break;
        case 6: _t->setEmail(*reinterpret_cast<QString*>(_v)); break;
        case 7: _t->setNextStep(*reinterpret_cast<QString*>(_v)); break;
        case 11:
            if (QtMocHelpers::setProperty(_t->m_oidcUrl, *reinterpret_cast<QUrl*>(_v)))
                Q_EMIT _t->oidcUrlChanged();
            break;
        default: break;
        }
    }
}

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

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

int Registration::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 < 20)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 20;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 20)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 20;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    }
    return _id;
}

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

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

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

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

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

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

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

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

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

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

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

// SIGNAL 11
void Registration::passwordChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 11, nullptr);
}

// SIGNAL 12
void Registration::emailChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 12, nullptr);
}

// SIGNAL 13
void Registration::nextStepChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 13, nullptr);
}

// SIGNAL 14
void Registration::statusChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 14, nullptr);
}

// SIGNAL 15
void Registration::loaded()
{
    QMetaObject::activate(this, &staticMetaObject, 15, nullptr);
}

// SIGNAL 16
void Registration::oidcUrlChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 16, nullptr);
}

// SIGNAL 17
void Registration::connected(NeoChatConnection * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 17, nullptr, _t1);
}
QT_WARNING_POP
