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

template <> constexpr inline auto ThreePIdBindHelper::qt_create_metaobjectdata<qt_meta_tag_ZN18ThreePIdBindHelperE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "ThreePIdBindHelper",
        "QML.Element",
        "auto",
        "connectionChanged",
        "",
        "mediumChanged",
        "newIdChanged",
        "newCountryCodeChanged",
        "newEmailSessionStartedChanged",
        "bindStatusChanged",
        "threePIdBound",
        "threePIdUnbound",
        "initiateNewIdBind",
        "finalizeNewIdBind",
        "unbind3PId",
        "threePId",
        "type",
        "cancel",
        "connection",
        "NeoChatConnection*",
        "medium",
        "newId",
        "newCountryCode",
        "bindStatus",
        "ThreePIdStatus",
        "bindStatusString",
        "Ready",
        "Verification",
        "Authentication",
        "Success",
        "Invalid",
        "AuthFailure",
        "VerificationFailure",
        "Other"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'connectionChanged'
        QtMocHelpers::SignalData<void()>(3, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'mediumChanged'
        QtMocHelpers::SignalData<void()>(5, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'newIdChanged'
        QtMocHelpers::SignalData<void()>(6, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'newCountryCodeChanged'
        QtMocHelpers::SignalData<void()>(7, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'newEmailSessionStartedChanged'
        QtMocHelpers::SignalData<void()>(8, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'bindStatusChanged'
        QtMocHelpers::SignalData<void()>(9, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'threePIdBound'
        QtMocHelpers::SignalData<void()>(10, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'threePIdUnbound'
        QtMocHelpers::SignalData<void()>(11, 4, QMC::AccessPublic, QMetaType::Void),
        // Method 'initiateNewIdBind'
        QtMocHelpers::MethodData<void()>(12, 4, QMC::AccessPublic, QMetaType::Void),
        // Method 'finalizeNewIdBind'
        QtMocHelpers::MethodData<void()>(13, 4, QMC::AccessPublic, QMetaType::Void),
        // Method 'unbind3PId'
        QtMocHelpers::MethodData<void(const QString &, const QString &)>(14, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 15 }, { QMetaType::QString, 16 },
        }}),
        // Method 'cancel'
        QtMocHelpers::MethodData<void()>(17, 4, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'connection'
        QtMocHelpers::PropertyData<NeoChatConnection*>(18, 0x80000000 | 19, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
        // property 'medium'
        QtMocHelpers::PropertyData<QString>(20, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
        // property 'newId'
        QtMocHelpers::PropertyData<QString>(21, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
        // property 'newCountryCode'
        QtMocHelpers::PropertyData<QString>(22, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 3),
        // property 'bindStatus'
        QtMocHelpers::PropertyData<enum ThreePIdStatus>(23, 0x80000000 | 24, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 5),
        // property 'bindStatusString'
        QtMocHelpers::PropertyData<QString>(25, QMetaType::QString, QMC::DefaultPropertyFlags, 5),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'ThreePIdStatus'
        QtMocHelpers::EnumData<enum ThreePIdStatus>(24, 24, QMC::EnumFlags{}).add({
            {   26, ThreePIdStatus::Ready },
            {   27, ThreePIdStatus::Verification },
            {   28, ThreePIdStatus::Authentication },
            {   29, ThreePIdStatus::Success },
            {   30, ThreePIdStatus::Invalid },
            {   31, ThreePIdStatus::AuthFailure },
            {   32, ThreePIdStatus::VerificationFailure },
            {   33, ThreePIdStatus::Other },
        }),
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<ThreePIdBindHelper, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject ThreePIdBindHelper::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN18ThreePIdBindHelperE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN18ThreePIdBindHelperE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN18ThreePIdBindHelperE_t>.metaTypes,
    nullptr
} };

void ThreePIdBindHelper::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ThreePIdBindHelper *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->connectionChanged(); break;
        case 1: _t->mediumChanged(); break;
        case 2: _t->newIdChanged(); break;
        case 3: _t->newCountryCodeChanged(); break;
        case 4: _t->newEmailSessionStartedChanged(); break;
        case 5: _t->bindStatusChanged(); break;
        case 6: _t->threePIdBound(); break;
        case 7: _t->threePIdUnbound(); break;
        case 8: _t->initiateNewIdBind(); break;
        case 9: _t->finalizeNewIdBind(); break;
        case 10: _t->unbind3PId((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 11: _t->cancel(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ThreePIdBindHelper::*)()>(_a, &ThreePIdBindHelper::connectionChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (ThreePIdBindHelper::*)()>(_a, &ThreePIdBindHelper::mediumChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (ThreePIdBindHelper::*)()>(_a, &ThreePIdBindHelper::newIdChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (ThreePIdBindHelper::*)()>(_a, &ThreePIdBindHelper::newCountryCodeChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (ThreePIdBindHelper::*)()>(_a, &ThreePIdBindHelper::newEmailSessionStartedChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (ThreePIdBindHelper::*)()>(_a, &ThreePIdBindHelper::bindStatusChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (ThreePIdBindHelper::*)()>(_a, &ThreePIdBindHelper::threePIdBound, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (ThreePIdBindHelper::*)()>(_a, &ThreePIdBindHelper::threePIdUnbound, 7))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<NeoChatConnection**>(_v) = _t->connection(); break;
        case 1: *reinterpret_cast<QString*>(_v) = _t->medium(); break;
        case 2: *reinterpret_cast<QString*>(_v) = _t->newId(); break;
        case 3: *reinterpret_cast<QString*>(_v) = _t->newCountryCode(); break;
        case 4: *reinterpret_cast<enum ThreePIdStatus*>(_v) = _t->bindStatus(); break;
        case 5: *reinterpret_cast<QString*>(_v) = _t->bindStatusString(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setConnection(*reinterpret_cast<NeoChatConnection**>(_v)); break;
        case 1: _t->setMedium(*reinterpret_cast<QString*>(_v)); break;
        case 2: _t->setNewId(*reinterpret_cast<QString*>(_v)); break;
        case 3: _t->setNewCountryCode(*reinterpret_cast<QString*>(_v)); break;
        default: break;
        }
    }
}

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

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

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

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

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

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

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

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

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

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

// SIGNAL 7
void ThreePIdBindHelper::threePIdUnbound()
{
    QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
}
QT_WARNING_POP
