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

#include "../../../libQuotient/Quotient/keyverificationsession.h"
#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 'keyverificationsession.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.1. 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_ZN8Quotient10EmojiEntryE_t {};
} // unnamed namespace

template <> constexpr inline auto Quotient::EmojiEntry::qt_create_metaobjectdata<qt_meta_tag_ZN8Quotient10EmojiEntryE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Quotient::EmojiEntry",
        "emoji",
        "description"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
        // property 'emoji'
        QtMocHelpers::PropertyData<QString>(1, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'description'
        QtMocHelpers::PropertyData<QString>(2, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<EmojiEntry, qt_meta_tag_ZN8Quotient10EmojiEntryE_t>(QMC::PropertyAccessInStaticMetaCall, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Quotient::EmojiEntry::staticMetaObject = { {
    nullptr,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Quotient10EmojiEntryE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Quotient10EmojiEntryE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8Quotient10EmojiEntryE_t>.metaTypes,
    nullptr
} };

void Quotient::EmojiEntry::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = reinterpret_cast<EmojiEntry *>(_o);
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QString*>(_v) = _t->emoji; break;
        case 1: *reinterpret_cast<QString*>(_v) = _t->description; break;
        default: break;
        }
    }
}
namespace {
struct qt_meta_tag_ZN8Quotient22KeyVerificationSessionE_t {};
} // unnamed namespace

template <> constexpr inline auto Quotient::KeyVerificationSession::qt_create_metaobjectdata<qt_meta_tag_ZN8Quotient22KeyVerificationSessionE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Quotient::KeyVerificationSession",
        "keyReceived",
        "",
        "sasEmojisChanged",
        "stateChanged",
        "errorChanged",
        "finished",
        "sendRequest",
        "sendReady",
        "sendMac",
        "sendStartSas",
        "sendKey",
        "sendDone",
        "cancelVerification",
        "Error",
        "error",
        "remoteDeviceId",
        "remoteUserId",
        "sasEmojis",
        "QList<EmojiEntry>",
        "state",
        "State",
        "userVerification",
        "INCOMING",
        "WAITINGFORREADY",
        "READY",
        "WAITINGFORACCEPT",
        "ACCEPTED",
        "WAITINGFORKEY",
        "WAITINGFORVERIFICATION",
        "WAITINGFORMAC",
        "CANCELED",
        "DONE",
        "NONE",
        "TIMEOUT",
        "REMOTE_TIMEOUT",
        "USER",
        "REMOTE_USER",
        "UNEXPECTED_MESSAGE",
        "REMOTE_UNEXPECTED_MESSAGE",
        "UNKNOWN_TRANSACTION",
        "REMOTE_UNKNOWN_TRANSACTION",
        "UNKNOWN_METHOD",
        "REMOTE_UNKNOWN_METHOD",
        "KEY_MISMATCH",
        "REMOTE_KEY_MISMATCH",
        "USER_MISMATCH",
        "REMOTE_USER_MISMATCH",
        "INVALID_MESSAGE",
        "REMOTE_INVALID_MESSAGE",
        "SESSION_ACCEPTED",
        "REMOTE_SESSION_ACCEPTED",
        "MISMATCHED_COMMITMENT",
        "REMOTE_MISMATCHED_COMMITMENT",
        "MISMATCHED_SAS",
        "REMOTE_MISMATCHED_SAS"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'keyReceived'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'sasEmojisChanged'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'stateChanged'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'errorChanged'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'finished'
        QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'sendRequest'
        QtMocHelpers::SlotData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'sendReady'
        QtMocHelpers::SlotData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'sendMac'
        QtMocHelpers::SlotData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'sendStartSas'
        QtMocHelpers::SlotData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'sendKey'
        QtMocHelpers::SlotData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'sendDone'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'cancelVerification'
        QtMocHelpers::SlotData<void(enum Error)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 14, 15 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'remoteDeviceId'
        QtMocHelpers::PropertyData<QString>(16, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'remoteUserId'
        QtMocHelpers::PropertyData<QString>(17, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'sasEmojis'
        QtMocHelpers::PropertyData<QList<EmojiEntry>>(18, 0x80000000 | 19, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 1),
        // property 'state'
        QtMocHelpers::PropertyData<enum State>(20, 0x80000000 | 21, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 2),
        // property 'error'
        QtMocHelpers::PropertyData<enum Error>(15, 0x80000000 | 14, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 3),
        // property 'userVerification'
        QtMocHelpers::PropertyData<bool>(22, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'State'
        QtMocHelpers::EnumData<enum State>(21, 21, QMC::EnumFlags{}).add({
            {   23, State::INCOMING },
            {   24, State::WAITINGFORREADY },
            {   25, State::READY },
            {   26, State::WAITINGFORACCEPT },
            {   27, State::ACCEPTED },
            {   28, State::WAITINGFORKEY },
            {   29, State::WAITINGFORVERIFICATION },
            {   30, State::WAITINGFORMAC },
            {   31, State::CANCELED },
            {   32, State::DONE },
        }),
        // enum 'Error'
        QtMocHelpers::EnumData<enum Error>(14, 14, QMC::EnumFlags{}).add({
            {   33, Error::NONE },
            {   34, Error::TIMEOUT },
            {   35, Error::REMOTE_TIMEOUT },
            {   36, Error::USER },
            {   37, Error::REMOTE_USER },
            {   38, Error::UNEXPECTED_MESSAGE },
            {   39, Error::REMOTE_UNEXPECTED_MESSAGE },
            {   40, Error::UNKNOWN_TRANSACTION },
            {   41, Error::REMOTE_UNKNOWN_TRANSACTION },
            {   42, Error::UNKNOWN_METHOD },
            {   43, Error::REMOTE_UNKNOWN_METHOD },
            {   44, Error::KEY_MISMATCH },
            {   45, Error::REMOTE_KEY_MISMATCH },
            {   46, Error::USER_MISMATCH },
            {   47, Error::REMOTE_USER_MISMATCH },
            {   48, Error::INVALID_MESSAGE },
            {   49, Error::REMOTE_INVALID_MESSAGE },
            {   50, Error::SESSION_ACCEPTED },
            {   51, Error::REMOTE_SESSION_ACCEPTED },
            {   52, Error::MISMATCHED_COMMITMENT },
            {   53, Error::REMOTE_MISMATCHED_COMMITMENT },
            {   54, Error::MISMATCHED_SAS },
            {   55, Error::REMOTE_MISMATCHED_SAS },
        }),
    };
    return QtMocHelpers::metaObjectData<KeyVerificationSession, qt_meta_tag_ZN8Quotient22KeyVerificationSessionE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Quotient::KeyVerificationSession::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Quotient22KeyVerificationSessionE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Quotient22KeyVerificationSessionE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8Quotient22KeyVerificationSessionE_t>.metaTypes,
    nullptr
} };

void Quotient::KeyVerificationSession::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<KeyVerificationSession *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->keyReceived(); break;
        case 1: _t->sasEmojisChanged(); break;
        case 2: _t->stateChanged(); break;
        case 3: _t->errorChanged(); break;
        case 4: _t->finished(); break;
        case 5: _t->sendRequest(); break;
        case 6: _t->sendReady(); break;
        case 7: _t->sendMac(); break;
        case 8: _t->sendStartSas(); break;
        case 9: _t->sendKey(); break;
        case 10: _t->sendDone(); break;
        case 11: _t->cancelVerification((*reinterpret_cast<std::add_pointer_t<enum Error>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (KeyVerificationSession::*)()>(_a, &KeyVerificationSession::keyReceived, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (KeyVerificationSession::*)()>(_a, &KeyVerificationSession::sasEmojisChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (KeyVerificationSession::*)()>(_a, &KeyVerificationSession::stateChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (KeyVerificationSession::*)()>(_a, &KeyVerificationSession::errorChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (KeyVerificationSession::*)()>(_a, &KeyVerificationSession::finished, 4))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QString*>(_v) = _t->m_remoteDeviceId; break;
        case 1: *reinterpret_cast<QString*>(_v) = _t->m_remoteUserId; break;
        case 2: *reinterpret_cast<QList<EmojiEntry>*>(_v) = _t->sasEmojis(); break;
        case 3: *reinterpret_cast<enum State*>(_v) = _t->state(); break;
        case 4: *reinterpret_cast<enum Error*>(_v) = _t->error(); break;
        case 5: *reinterpret_cast<bool*>(_v) = _t->userVerification(); break;
        default: break;
        }
    }
}

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

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

int Quotient::KeyVerificationSession::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 Quotient::KeyVerificationSession::keyReceived()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void Quotient::KeyVerificationSession::sasEmojisChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void Quotient::KeyVerificationSession::stateChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void Quotient::KeyVerificationSession::errorChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void Quotient::KeyVerificationSession::finished()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}
QT_WARNING_POP
