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

template <> constexpr inline auto SelfVerificationStatus::qt_create_metaobjectdata<qt_meta_tag_ZN22SelfVerificationStatusE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "SelfVerificationStatus",
        "QML.Element",
        "auto",
        "QML.Singleton",
        "true",
        "statusChanged",
        "",
        "hasSSSSChanged",
        "setupCompleted",
        "showRecoveryKey",
        "key",
        "setupFailed",
        "message",
        "invalidate",
        "setupCrosssigning",
        "useSSSS",
        "password",
        "useOnlineKeyBackup",
        "verifyMasterKey",
        "verifyMasterKeyWithPassphrase",
        "verifyUnverifiedDevices",
        "status",
        "Status",
        "hasSSSS",
        "AllVerified",
        "NoMasterKey",
        "UnverifiedMasterKey",
        "UnverifiedDevices"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'statusChanged'
        QtMocHelpers::SignalData<void()>(5, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'hasSSSSChanged'
        QtMocHelpers::SignalData<void()>(7, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'setupCompleted'
        QtMocHelpers::SignalData<void()>(8, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'showRecoveryKey'
        QtMocHelpers::SignalData<void(QString)>(9, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 10 },
        }}),
        // Signal 'setupFailed'
        QtMocHelpers::SignalData<void(QString)>(11, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 12 },
        }}),
        // Slot 'invalidate'
        QtMocHelpers::SlotData<void()>(13, 6, QMC::AccessPublic, QMetaType::Void),
        // Method 'setupCrosssigning'
        QtMocHelpers::MethodData<void(bool, const QString &, bool)>(14, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 15 }, { QMetaType::QString, 16 }, { QMetaType::Bool, 17 },
        }}),
        // Method 'verifyMasterKey'
        QtMocHelpers::MethodData<void()>(18, 6, QMC::AccessPublic, QMetaType::Void),
        // Method 'verifyMasterKeyWithPassphrase'
        QtMocHelpers::MethodData<void()>(19, 6, QMC::AccessPublic, QMetaType::Void),
        // Method 'verifyUnverifiedDevices'
        QtMocHelpers::MethodData<void()>(20, 6, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'status'
        QtMocHelpers::PropertyData<enum Status>(21, 0x80000000 | 22, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 0),
        // property 'hasSSSS'
        QtMocHelpers::PropertyData<bool>(23, QMetaType::Bool, QMC::DefaultPropertyFlags, 1),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'Status'
        QtMocHelpers::EnumData<enum Status>(22, 22, QMC::EnumFlags{}).add({
            {   24, Status::AllVerified },
            {   25, Status::NoMasterKey },
            {   26, Status::UnverifiedMasterKey },
            {   27, Status::UnverifiedDevices },
        }),
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
    });
    return QtMocHelpers::metaObjectData<SelfVerificationStatus, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject SelfVerificationStatus::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN22SelfVerificationStatusE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN22SelfVerificationStatusE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN22SelfVerificationStatusE_t>.metaTypes,
    nullptr
} };

void SelfVerificationStatus::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<SelfVerificationStatus *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->statusChanged(); break;
        case 1: _t->hasSSSSChanged(); break;
        case 2: _t->setupCompleted(); break;
        case 3: _t->showRecoveryKey((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 4: _t->setupFailed((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 5: _t->invalidate(); break;
        case 6: _t->setupCrosssigning((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[3]))); break;
        case 7: _t->verifyMasterKey(); break;
        case 8: _t->verifyMasterKeyWithPassphrase(); break;
        case 9: _t->verifyUnverifiedDevices(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (SelfVerificationStatus::*)()>(_a, &SelfVerificationStatus::statusChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (SelfVerificationStatus::*)()>(_a, &SelfVerificationStatus::hasSSSSChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (SelfVerificationStatus::*)()>(_a, &SelfVerificationStatus::setupCompleted, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (SelfVerificationStatus::*)(QString )>(_a, &SelfVerificationStatus::showRecoveryKey, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (SelfVerificationStatus::*)(QString )>(_a, &SelfVerificationStatus::setupFailed, 4))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<enum Status*>(_v) = _t->status(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->hasSSSS(); break;
        default: break;
        }
    }
}

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

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

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

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

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

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

// SIGNAL 3
void SelfVerificationStatus::showRecoveryKey(QString _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void SelfVerificationStatus::setupFailed(QString _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}
QT_WARNING_POP
