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

template <> constexpr inline auto Nheko::qt_create_metaobjectdata<qt_meta_tag_ZN5NhekoE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Nheko",
        "QML.Element",
        "auto",
        "QML.Singleton",
        "true",
        "colorsChanged",
        "",
        "profileChanged",
        "openLogoutDialog",
        "openJoinRoomDialog",
        "joinRoom",
        "roomId",
        "reason",
        "showRoomJoinPrompt",
        "RoomSummary*",
        "summary",
        "updateUserProfile",
        "monospaceFont",
        "QFont",
        "openLink",
        "link",
        "punyLink",
        "setStatusMessage",
        "msg",
        "showUserSettingsPage",
        "logout",
        "createRoom",
        "space",
        "name",
        "topic",
        "aliasLocalpart",
        "isEncrypted",
        "preset",
        "editPowerlevels",
        "PowerlevelEditingModels*",
        "room_id_",
        "editAliases",
        "AliasEditingModel*",
        "setTransientParent",
        "QWindow*",
        "window",
        "parentWindow",
        "setWindowRole",
        "win",
        "newRole",
        "colors",
        "QPalette",
        "inactiveColors",
        "theme",
        "Theme",
        "avatarSize",
        "paddingSmall",
        "paddingMedium",
        "paddingLarge",
        "tooltipDelay",
        "currentUser",
        "UserProfile*"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'colorsChanged'
        QtMocHelpers::SignalData<void()>(5, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'profileChanged'
        QtMocHelpers::SignalData<void()>(7, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'openLogoutDialog'
        QtMocHelpers::SignalData<void()>(8, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'openJoinRoomDialog'
        QtMocHelpers::SignalData<void()>(9, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'joinRoom'
        QtMocHelpers::SignalData<void(QString, QString)>(10, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 11 }, { QMetaType::QString, 12 },
        }}),
        // Signal 'joinRoom'
        QtMocHelpers::SignalData<void(QString)>(10, 6, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { QMetaType::QString, 11 },
        }}),
        // Signal 'showRoomJoinPrompt'
        QtMocHelpers::SignalData<void(RoomSummary *)>(13, 6, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 14, 15 },
        }}),
        // Slot 'updateUserProfile'
        QtMocHelpers::SlotData<void()>(16, 6, QMC::AccessPublic, QMetaType::Void),
        // Method 'monospaceFont'
        QtMocHelpers::MethodData<QFont() const>(17, 6, QMC::AccessPublic, 0x80000000 | 18),
        // Method 'openLink'
        QtMocHelpers::MethodData<void(QString) const>(19, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 20 },
        }}),
        // Method 'punyLink'
        QtMocHelpers::MethodData<QString(QString) const>(21, 6, QMC::AccessPublic, QMetaType::QString, {{
            { QMetaType::QString, 20 },
        }}),
        // Method 'setStatusMessage'
        QtMocHelpers::MethodData<void(QString) const>(22, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 23 },
        }}),
        // Method 'showUserSettingsPage'
        QtMocHelpers::MethodData<void() const>(24, 6, QMC::AccessPublic, QMetaType::Void),
        // Method 'logout'
        QtMocHelpers::MethodData<void() const>(25, 6, QMC::AccessPublic, QMetaType::Void),
        // Method 'createRoom'
        QtMocHelpers::MethodData<void(bool, const QString &, const QString &, const QString &, bool, int)>(26, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 27 }, { QMetaType::QString, 28 }, { QMetaType::QString, 29 }, { QMetaType::QString, 30 },
            { QMetaType::Bool, 31 }, { QMetaType::Int, 32 },
        }}),
        // Method 'editPowerlevels'
        QtMocHelpers::MethodData<PowerlevelEditingModels *(QString) const>(33, 6, QMC::AccessPublic, 0x80000000 | 34, {{
            { QMetaType::QString, 35 },
        }}),
        // Method 'editAliases'
        QtMocHelpers::MethodData<AliasEditingModel *(QString) const>(36, 6, QMC::AccessPublic, 0x80000000 | 37, {{
            { QMetaType::QString, 35 },
        }}),
        // Method 'setTransientParent'
        QtMocHelpers::MethodData<void(QWindow *, QWindow *) const>(38, 6, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 39, 40 }, { 0x80000000 | 39, 41 },
        }}),
        // Method 'setWindowRole'
        QtMocHelpers::MethodData<void(QWindow *, QString) const>(42, 6, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 39, 43 }, { QMetaType::QString, 44 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'colors'
        QtMocHelpers::PropertyData<QPalette>(45, 0x80000000 | 46, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 0),
        // property 'inactiveColors'
        QtMocHelpers::PropertyData<QPalette>(47, 0x80000000 | 46, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 0),
        // property 'theme'
        QtMocHelpers::PropertyData<Theme>(48, 0x80000000 | 49, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 0),
        // property 'avatarSize'
        QtMocHelpers::PropertyData<int>(50, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'paddingSmall'
        QtMocHelpers::PropertyData<int>(51, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'paddingMedium'
        QtMocHelpers::PropertyData<int>(52, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'paddingLarge'
        QtMocHelpers::PropertyData<int>(53, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'tooltipDelay'
        QtMocHelpers::PropertyData<int>(54, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'currentUser'
        QtMocHelpers::PropertyData<UserProfile*>(55, 0x80000000 | 56, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 1),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
    });
    return QtMocHelpers::metaObjectData<Nheko, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject Nheko::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5NhekoE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5NhekoE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN5NhekoE_t>.metaTypes,
    nullptr
} };

void Nheko::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Nheko *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->colorsChanged(); break;
        case 1: _t->profileChanged(); break;
        case 2: _t->openLogoutDialog(); break;
        case 3: _t->openJoinRoomDialog(); break;
        case 4: _t->joinRoom((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 5: _t->joinRoom((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 6: _t->showRoomJoinPrompt((*reinterpret_cast<std::add_pointer_t<RoomSummary*>>(_a[1]))); break;
        case 7: _t->updateUserProfile(); break;
        case 8: { QFont _r = _t->monospaceFont();
            if (_a[0]) *reinterpret_cast<QFont*>(_a[0]) = std::move(_r); }  break;
        case 9: _t->openLink((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 10: { QString _r = _t->punyLink((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 11: _t->setStatusMessage((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 12: _t->showUserSettingsPage(); break;
        case 13: _t->logout(); break;
        case 14: _t->createRoom((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[4])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[5])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[6]))); break;
        case 15: { PowerlevelEditingModels* _r = _t->editPowerlevels((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<PowerlevelEditingModels**>(_a[0]) = std::move(_r); }  break;
        case 16: { AliasEditingModel* _r = _t->editAliases((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<AliasEditingModel**>(_a[0]) = std::move(_r); }  break;
        case 17: _t->setTransientParent((*reinterpret_cast<std::add_pointer_t<QWindow*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QWindow*>>(_a[2]))); break;
        case 18: _t->setWindowRole((*reinterpret_cast<std::add_pointer_t<QWindow*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 6:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< RoomSummary* >(); break;
            }
            break;
        case 17:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QWindow* >(); break;
            }
            break;
        case 18:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QWindow* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Nheko::*)()>(_a, &Nheko::colorsChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Nheko::*)()>(_a, &Nheko::profileChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Nheko::*)()>(_a, &Nheko::openLogoutDialog, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (Nheko::*)()>(_a, &Nheko::openJoinRoomDialog, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (Nheko::*)(QString , QString )>(_a, &Nheko::joinRoom, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (Nheko::*)(RoomSummary * )>(_a, &Nheko::showRoomJoinPrompt, 6))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 8:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< UserProfile* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QPalette*>(_v) = _t->colors(); break;
        case 1: *reinterpret_cast<QPalette*>(_v) = _t->inactiveColors(); break;
        case 2: *reinterpret_cast<Theme*>(_v) = _t->theme(); break;
        case 3: *reinterpret_cast<int*>(_v) = _t->avatarSize(); break;
        case 4: *reinterpret_cast<int*>(_v) = _t->paddingSmall(); break;
        case 5: *reinterpret_cast<int*>(_v) = _t->paddingMedium(); break;
        case 6: *reinterpret_cast<int*>(_v) = _t->paddingLarge(); break;
        case 7: *reinterpret_cast<int*>(_v) = _t->tooltipDelay(); break;
        case 8: *reinterpret_cast<UserProfile**>(_v) = _t->currentUser(); break;
        default: break;
        }
    }
}

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

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

int Nheko::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)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 19;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    }
    return _id;
}

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

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

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

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

// SIGNAL 4
void Nheko::joinRoom(QString _t1, QString _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1, _t2);
}

// SIGNAL 6
void Nheko::showRoomJoinPrompt(RoomSummary * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1);
}
QT_WARNING_POP
