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

template <> constexpr inline auto Cache::qt_create_metaobjectdata<qt_meta_tag_ZN5CacheE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Cache",
        "newReadReceipts",
        "",
        "room_id",
        "std::vector<QString>",
        "event_ids",
        "roomReadStatus",
        "std::map<QString,bool>",
        "status",
        "userKeysUpdate",
        "std::string",
        "sync_token",
        "mtx::responses::QueryKeys",
        "keyQuery",
        "userKeysUpdateFinalize",
        "user_id",
        "verificationStatusChanged",
        "userid",
        "selfVerificationStatusChanged",
        "secretChanged",
        "name",
        "databaseReady"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'newReadReceipts'
        QtMocHelpers::SignalData<void(const QString &, const std::vector<QString> &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 }, { 0x80000000 | 4, 5 },
        }}),
        // Signal 'roomReadStatus'
        QtMocHelpers::SignalData<void(const std::map<QString,bool> &)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 7, 8 },
        }}),
        // Signal 'userKeysUpdate'
        QtMocHelpers::SignalData<void(const std::string &, const mtx::responses::QueryKeys &)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 11 }, { 0x80000000 | 12, 13 },
        }}),
        // Signal 'userKeysUpdateFinalize'
        QtMocHelpers::SignalData<void(const std::string &)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 15 },
        }}),
        // Signal 'verificationStatusChanged'
        QtMocHelpers::SignalData<void(const std::string &)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 17 },
        }}),
        // Signal 'selfVerificationStatusChanged'
        QtMocHelpers::SignalData<void()>(18, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'secretChanged'
        QtMocHelpers::SignalData<void(const std::string)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 20 },
        }}),
        // Signal 'databaseReady'
        QtMocHelpers::SignalData<void()>(21, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<Cache, qt_meta_tag_ZN5CacheE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Cache::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5CacheE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5CacheE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN5CacheE_t>.metaTypes,
    nullptr
} };

void Cache::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Cache *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->newReadReceipts((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<std::vector<QString>>>(_a[2]))); break;
        case 1: _t->roomReadStatus((*reinterpret_cast<std::add_pointer_t<std::map<QString,bool>>>(_a[1]))); break;
        case 2: _t->userKeysUpdate((*reinterpret_cast<std::add_pointer_t<std::string>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<mtx::responses::QueryKeys>>(_a[2]))); break;
        case 3: _t->userKeysUpdateFinalize((*reinterpret_cast<std::add_pointer_t<std::string>>(_a[1]))); break;
        case 4: _t->verificationStatusChanged((*reinterpret_cast<std::add_pointer_t<std::string>>(_a[1]))); break;
        case 5: _t->selfVerificationStatusChanged(); break;
        case 6: _t->secretChanged((*reinterpret_cast<std::add_pointer_t<std::string>>(_a[1]))); break;
        case 7: _t->databaseReady(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Cache::*)(const QString & , const std::vector<QString> & )>(_a, &Cache::newReadReceipts, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Cache::*)(const std::map<QString,bool> & )>(_a, &Cache::roomReadStatus, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Cache::*)(const std::string & , const mtx::responses::QueryKeys & )>(_a, &Cache::userKeysUpdate, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (Cache::*)(const std::string & )>(_a, &Cache::userKeysUpdateFinalize, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (Cache::*)(const std::string & )>(_a, &Cache::verificationStatusChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (Cache::*)()>(_a, &Cache::selfVerificationStatusChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (Cache::*)(const std::string )>(_a, &Cache::secretChanged, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (Cache::*)()>(_a, &Cache::databaseReady, 7))
            return;
    }
}

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

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

int Cache::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 < 8)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 8)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 8;
    }
    return _id;
}

// SIGNAL 0
void Cache::newReadReceipts(const QString & _t1, const std::vector<QString> & _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2);
}

// SIGNAL 1
void Cache::roomReadStatus(const std::map<QString,bool> & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Cache::userKeysUpdate(const std::string & _t1, const mtx::responses::QueryKeys & _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1, _t2);
}

// SIGNAL 3
void Cache::userKeysUpdateFinalize(const std::string & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void Cache::verificationStatusChanged(const std::string & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

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

// SIGNAL 6
void Cache::secretChanged(const std::string _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1);
}

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