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

template <> constexpr inline auto DeviceVerificationFlow::qt_create_metaobjectdata<qt_meta_tag_ZN22DeviceVerificationFlowE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "DeviceVerificationFlow",
        "QML.Element",
        "auto",
        "QML.Creatable",
        "false",
        "QML.UncreatableReason",
        "",
        "refreshProfile",
        "stateChanged",
        "errorChanged",
        "unverify",
        "next",
        "cancel",
        "state",
        "error",
        "Error",
        "userId",
        "deviceId",
        "sender",
        "sasList",
        "std::vector<int>",
        "isDeviceVerification",
        "isSelfVerification",
        "isMultiDeviceVerification",
        "State",
        "PromptStartVerification",
        "WaitingForOtherToAccept",
        "WaitingForKeys",
        "CompareEmoji",
        "CompareNumber",
        "WaitingForMac",
        "Success",
        "Failed",
        "UnknownMethod",
        "MismatchedCommitment",
        "MismatchedSAS",
        "KeyMismatch",
        "Timeout",
        "User",
        "AcceptedOnOtherDevice",
        "OutOfOrder"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'refreshProfile'
        QtMocHelpers::SignalData<void()>(7, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'stateChanged'
        QtMocHelpers::SignalData<void()>(8, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'errorChanged'
        QtMocHelpers::SignalData<void()>(9, 6, QMC::AccessPublic, QMetaType::Void),
        // Slot 'unverify'
        QtMocHelpers::SlotData<void()>(10, 6, QMC::AccessPublic, QMetaType::Void),
        // Slot 'next'
        QtMocHelpers::SlotData<void()>(11, 6, QMC::AccessPublic, QMetaType::Void),
        // Slot 'cancel'
        QtMocHelpers::SlotData<void()>(12, 6, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'state'
        QtMocHelpers::PropertyData<QString>(13, QMetaType::QString, QMC::DefaultPropertyFlags, 1),
        // property 'error'
        QtMocHelpers::PropertyData<enum Error>(14, 0x80000000 | 15, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 2),
        // property 'userId'
        QtMocHelpers::PropertyData<QString>(16, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'deviceId'
        QtMocHelpers::PropertyData<QString>(17, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'sender'
        QtMocHelpers::PropertyData<bool>(18, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'sasList'
        QtMocHelpers::PropertyData<std::vector<int>>(19, 0x80000000 | 20, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'isDeviceVerification'
        QtMocHelpers::PropertyData<bool>(21, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'isSelfVerification'
        QtMocHelpers::PropertyData<bool>(22, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'isMultiDeviceVerification'
        QtMocHelpers::PropertyData<bool>(23, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'State'
        QtMocHelpers::EnumData<enum State>(24, 24, QMC::EnumFlags{}).add({
            {   25, State::PromptStartVerification },
            {   26, State::WaitingForOtherToAccept },
            {   27, State::WaitingForKeys },
            {   28, State::CompareEmoji },
            {   29, State::CompareNumber },
            {   30, State::WaitingForMac },
            {   31, State::Success },
            {   32, State::Failed },
        }),
        // enum 'Error'
        QtMocHelpers::EnumData<enum Error>(15, 15, QMC::EnumFlags{}).add({
            {   33, Error::UnknownMethod },
            {   34, Error::MismatchedCommitment },
            {   35, Error::MismatchedSAS },
            {   36, Error::KeyMismatch },
            {   37, Error::Timeout },
            {   38, Error::User },
            {   39, Error::AcceptedOnOtherDevice },
            {   40, Error::OutOfOrder },
        }),
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
            {    5,    6 },
    });
    return QtMocHelpers::metaObjectData<DeviceVerificationFlow, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject DeviceVerificationFlow::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN22DeviceVerificationFlowE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN22DeviceVerificationFlowE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN22DeviceVerificationFlowE_t>.metaTypes,
    nullptr
} };

void DeviceVerificationFlow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<DeviceVerificationFlow *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->refreshProfile(); break;
        case 1: _t->stateChanged(); break;
        case 2: _t->errorChanged(); break;
        case 3: _t->unverify(); break;
        case 4: _t->next(); break;
        case 5: _t->cancel(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (DeviceVerificationFlow::*)()>(_a, &DeviceVerificationFlow::refreshProfile, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (DeviceVerificationFlow::*)()>(_a, &DeviceVerificationFlow::stateChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (DeviceVerificationFlow::*)()>(_a, &DeviceVerificationFlow::errorChanged, 2))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QString*>(_v) = _t->state(); break;
        case 1: *reinterpret_cast<enum Error*>(_v) = _t->error(); break;
        case 2: *reinterpret_cast<QString*>(_v) = _t->getUserId(); break;
        case 3: *reinterpret_cast<QString*>(_v) = _t->getDeviceId(); break;
        case 4: *reinterpret_cast<bool*>(_v) = _t->getSender(); break;
        case 5: *reinterpret_cast<std::vector<int>*>(_v) = _t->getSasList(); break;
        case 6: *reinterpret_cast<bool*>(_v) = _t->isDeviceVerification(); break;
        case 7: *reinterpret_cast<bool*>(_v) = _t->isSelfVerification(); break;
        case 8: *reinterpret_cast<bool*>(_v) = _t->isMultiDeviceVerification(); break;
        default: break;
        }
    }
}

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

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

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

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

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

// SIGNAL 2
void DeviceVerificationFlow::errorChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}
QT_WARNING_POP
