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

template <> constexpr inline auto EventStore::qt_create_metaobjectdata<qt_meta_tag_ZN10EventStoreE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "EventStore",
        "beginInsertRows",
        "",
        "from",
        "to",
        "endInsertRows",
        "beginResetModel",
        "endResetModel",
        "dataChanged",
        "pinsChanged",
        "newEncryptedImage",
        "mtx::crypto::EncryptedFile",
        "encryptionInfo",
        "eventFetched",
        "std::string",
        "id",
        "relatedTo",
        "mtx::events::collections::TimelineEvents",
        "timeline",
        "oldMessagesRetrieved",
        "mtx::responses::Messages",
        "fetchedMore",
        "processPending",
        "messageSent",
        "txn_id",
        "event_id",
        "messageFailed",
        "startDMVerification",
        "mtx::events::RoomEvent<mtx::events::msg::KeyVerificationRequest>",
        "msg",
        "updateFlowEventId",
        "addPending",
        "event",
        "receivedSessionKey",
        "session_id",
        "clearTimeline",
        "enableKeyRequests",
        "suppressKeyRequests_"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'beginInsertRows'
        QtMocHelpers::SignalData<void(int, int)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 3 }, { QMetaType::Int, 4 },
        }}),
        // Signal 'endInsertRows'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'beginResetModel'
        QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'endResetModel'
        QtMocHelpers::SignalData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'dataChanged'
        QtMocHelpers::SignalData<void(int, int)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 3 }, { QMetaType::Int, 4 },
        }}),
        // Signal 'pinsChanged'
        QtMocHelpers::SignalData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'newEncryptedImage'
        QtMocHelpers::SignalData<void(mtx::crypto::EncryptedFile)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 11, 12 },
        }}),
        // Signal 'eventFetched'
        QtMocHelpers::SignalData<void(std::string, std::string, const mtx::events::collections::TimelineEvents &)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 14, 15 }, { 0x80000000 | 14, 16 }, { 0x80000000 | 17, 18 },
        }}),
        // Signal 'oldMessagesRetrieved'
        QtMocHelpers::SignalData<void(const mtx::responses::Messages &)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 20, 2 },
        }}),
        // Signal 'fetchedMore'
        QtMocHelpers::SignalData<void()>(21, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'processPending'
        QtMocHelpers::SignalData<void()>(22, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'messageSent'
        QtMocHelpers::SignalData<void(std::string, std::string)>(23, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 14, 24 }, { 0x80000000 | 14, 25 },
        }}),
        // Signal 'messageFailed'
        QtMocHelpers::SignalData<void(std::string)>(26, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 14, 24 },
        }}),
        // Signal 'startDMVerification'
        QtMocHelpers::SignalData<void(const mtx::events::RoomEvent<mtx::events::msg::KeyVerificationRequest> &)>(27, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 28, 29 },
        }}),
        // Signal 'updateFlowEventId'
        QtMocHelpers::SignalData<void(std::string)>(30, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 14, 25 },
        }}),
        // Slot 'addPending'
        QtMocHelpers::SlotData<void(const mtx::events::collections::TimelineEvents &)>(31, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 17, 32 },
        }}),
        // Slot 'receivedSessionKey'
        QtMocHelpers::SlotData<void(const std::string &)>(33, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 14, 34 },
        }}),
        // Slot 'clearTimeline'
        QtMocHelpers::SlotData<void()>(35, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'enableKeyRequests'
        QtMocHelpers::SlotData<void(bool)>(36, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 37 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<EventStore, qt_meta_tag_ZN10EventStoreE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject EventStore::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10EventStoreE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10EventStoreE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10EventStoreE_t>.metaTypes,
    nullptr
} };

void EventStore::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<EventStore *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->beginInsertRows((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 1: _t->endInsertRows(); break;
        case 2: _t->beginResetModel(); break;
        case 3: _t->endResetModel(); break;
        case 4: _t->dataChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 5: _t->pinsChanged(); break;
        case 6: _t->newEncryptedImage((*reinterpret_cast<std::add_pointer_t<mtx::crypto::EncryptedFile>>(_a[1]))); break;
        case 7: _t->eventFetched((*reinterpret_cast<std::add_pointer_t<std::string>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<std::string>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<mtx::events::collections::TimelineEvents>>(_a[3]))); break;
        case 8: _t->oldMessagesRetrieved((*reinterpret_cast<std::add_pointer_t<mtx::responses::Messages>>(_a[1]))); break;
        case 9: _t->fetchedMore(); break;
        case 10: _t->processPending(); break;
        case 11: _t->messageSent((*reinterpret_cast<std::add_pointer_t<std::string>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<std::string>>(_a[2]))); break;
        case 12: _t->messageFailed((*reinterpret_cast<std::add_pointer_t<std::string>>(_a[1]))); break;
        case 13: _t->startDMVerification((*reinterpret_cast<std::add_pointer_t<mtx::events::RoomEvent<mtx::events::msg::KeyVerificationRequest>>>(_a[1]))); break;
        case 14: _t->updateFlowEventId((*reinterpret_cast<std::add_pointer_t<std::string>>(_a[1]))); break;
        case 15: _t->addPending((*reinterpret_cast<std::add_pointer_t<mtx::events::collections::TimelineEvents>>(_a[1]))); break;
        case 16: _t->receivedSessionKey((*reinterpret_cast<std::add_pointer_t<std::string>>(_a[1]))); break;
        case 17: _t->clearTimeline(); break;
        case 18: _t->enableKeyRequests((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (EventStore::*)(int , int )>(_a, &EventStore::beginInsertRows, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (EventStore::*)()>(_a, &EventStore::endInsertRows, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (EventStore::*)()>(_a, &EventStore::beginResetModel, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (EventStore::*)()>(_a, &EventStore::endResetModel, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (EventStore::*)(int , int )>(_a, &EventStore::dataChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (EventStore::*)()>(_a, &EventStore::pinsChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (EventStore::*)(mtx::crypto::EncryptedFile )>(_a, &EventStore::newEncryptedImage, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (EventStore::*)(std::string , std::string , const mtx::events::collections::TimelineEvents & )>(_a, &EventStore::eventFetched, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (EventStore::*)(const mtx::responses::Messages & )>(_a, &EventStore::oldMessagesRetrieved, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (EventStore::*)()>(_a, &EventStore::fetchedMore, 9))
            return;
        if (QtMocHelpers::indexOfMethod<void (EventStore::*)()>(_a, &EventStore::processPending, 10))
            return;
        if (QtMocHelpers::indexOfMethod<void (EventStore::*)(std::string , std::string )>(_a, &EventStore::messageSent, 11))
            return;
        if (QtMocHelpers::indexOfMethod<void (EventStore::*)(std::string )>(_a, &EventStore::messageFailed, 12))
            return;
        if (QtMocHelpers::indexOfMethod<void (EventStore::*)(const mtx::events::RoomEvent<mtx::events::msg::KeyVerificationRequest> & )>(_a, &EventStore::startDMVerification, 13))
            return;
        if (QtMocHelpers::indexOfMethod<void (EventStore::*)(std::string )>(_a, &EventStore::updateFlowEventId, 14))
            return;
    }
}

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

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

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

// SIGNAL 0
void EventStore::beginInsertRows(int _t1, int _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2);
}

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

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

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

// SIGNAL 4
void EventStore::dataChanged(int _t1, int _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1, _t2);
}

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

// SIGNAL 6
void EventStore::newEncryptedImage(mtx::crypto::EncryptedFile _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1);
}

// SIGNAL 7
void EventStore::eventFetched(std::string _t1, std::string _t2, const mtx::events::collections::TimelineEvents & _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1, _t2, _t3);
}

// SIGNAL 8
void EventStore::oldMessagesRetrieved(const mtx::responses::Messages & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 8, nullptr, _t1);
}

// SIGNAL 9
void EventStore::fetchedMore()
{
    QMetaObject::activate(this, &staticMetaObject, 9, nullptr);
}

// SIGNAL 10
void EventStore::processPending()
{
    QMetaObject::activate(this, &staticMetaObject, 10, nullptr);
}

// SIGNAL 11
void EventStore::messageSent(std::string _t1, std::string _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 11, nullptr, _t1, _t2);
}

// SIGNAL 12
void EventStore::messageFailed(std::string _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 12, nullptr, _t1);
}

// SIGNAL 13
void EventStore::startDMVerification(const mtx::events::RoomEvent<mtx::events::msg::KeyVerificationRequest> & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 13, nullptr, _t1);
}

// SIGNAL 14
void EventStore::updateFlowEventId(std::string _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 14, nullptr, _t1);
}
QT_WARNING_POP
