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

template <> constexpr inline auto Quotient::UriDispatcher::qt_create_metaobjectdata<qt_meta_tag_ZN8Quotient13UriDispatcherE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Quotient::UriDispatcher",
        "userAction",
        "",
        "Quotient::User*",
        "user",
        "action",
        "roomAction",
        "Quotient::Room*",
        "room",
        "eventId",
        "joinAction",
        "Quotient::Connection*",
        "account",
        "roomAliasOrId",
        "viaServers",
        "nonMatrixAction",
        "QUrl",
        "url",
        "resolveResource",
        "UriResolveResult",
        "Connection*",
        "Uri",
        "uri"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'userAction'
        QtMocHelpers::SignalData<void(Quotient::User *, QString)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 }, { QMetaType::QString, 5 },
        }}),
        // Signal 'roomAction'
        QtMocHelpers::SignalData<void(Quotient::Room *, QString)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 7, 8 }, { QMetaType::QString, 9 },
        }}),
        // Signal 'joinAction'
        QtMocHelpers::SignalData<void(Quotient::Connection *, QString, QStringList)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 11, 12 }, { QMetaType::QString, 13 }, { QMetaType::QStringList, 14 },
        }}),
        // Signal 'nonMatrixAction'
        QtMocHelpers::SignalData<void(QUrl)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 16, 17 },
        }}),
        // Method 'resolveResource'
        QtMocHelpers::MethodData<UriResolveResult(Connection *, const Uri &)>(18, 2, QMC::AccessPublic, 0x80000000 | 19, {{
            { 0x80000000 | 20, 12 }, { 0x80000000 | 21, 22 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<UriDispatcher, qt_meta_tag_ZN8Quotient13UriDispatcherE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Quotient::UriDispatcher::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Quotient13UriDispatcherE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Quotient13UriDispatcherE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8Quotient13UriDispatcherE_t>.metaTypes,
    nullptr
} };

void Quotient::UriDispatcher::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<UriDispatcher *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->userAction((*reinterpret_cast<std::add_pointer_t<Quotient::User*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 1: _t->roomAction((*reinterpret_cast<std::add_pointer_t<Quotient::Room*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 2: _t->joinAction((*reinterpret_cast<std::add_pointer_t<Quotient::Connection*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QStringList>>(_a[3]))); break;
        case 3: _t->nonMatrixAction((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1]))); break;
        case 4: { UriResolveResult _r = _t->resolveResource((*reinterpret_cast<std::add_pointer_t<Connection*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Uri>>(_a[2])));
            if (_a[0]) *reinterpret_cast<UriResolveResult*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (UriDispatcher::*)(Quotient::User * , QString )>(_a, &UriDispatcher::userAction, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (UriDispatcher::*)(Quotient::Room * , QString )>(_a, &UriDispatcher::roomAction, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (UriDispatcher::*)(Quotient::Connection * , QString , QStringList )>(_a, &UriDispatcher::joinAction, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (UriDispatcher::*)(QUrl )>(_a, &UriDispatcher::nonMatrixAction, 3))
            return;
    }
}

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

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

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

// SIGNAL 0
void Quotient::UriDispatcher::userAction(Quotient::User * _t1, QString _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2);
}

// SIGNAL 1
void Quotient::UriDispatcher::roomAction(Quotient::Room * _t1, QString _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2);
}

// SIGNAL 2
void Quotient::UriDispatcher::joinAction(Quotient::Connection * _t1, QString _t2, QStringList _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1, _t2, _t3);
}

// SIGNAL 3
void Quotient::UriDispatcher::nonMatrixAction(QUrl _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}
QT_WARNING_POP
