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

template <> constexpr inline auto ThreadProxy::qt_create_metaobjectdata<qt_meta_tag_ZN11ThreadProxyE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "ThreadProxy",
        "error",
        "",
        "msg",
        "nameEventSent",
        "topicEventSent",
        "eventSent",
        "stopLoading"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'error'
        QtMocHelpers::SignalData<void(const QString &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 },
        }}),
        // Signal 'nameEventSent'
        QtMocHelpers::SignalData<void(const QString &)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 2 },
        }}),
        // Signal 'topicEventSent'
        QtMocHelpers::SignalData<void(const QString &)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 2 },
        }}),
        // Signal 'eventSent'
        QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'stopLoading'
        QtMocHelpers::SignalData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<ThreadProxy, qt_meta_tag_ZN11ThreadProxyE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject ThreadProxy::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11ThreadProxyE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11ThreadProxyE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN11ThreadProxyE_t>.metaTypes,
    nullptr
} };

void ThreadProxy::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ThreadProxy *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->error((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 1: _t->nameEventSent((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 2: _t->topicEventSent((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 3: _t->eventSent(); break;
        case 4: _t->stopLoading(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ThreadProxy::*)(const QString & )>(_a, &ThreadProxy::error, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (ThreadProxy::*)(const QString & )>(_a, &ThreadProxy::nameEventSent, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (ThreadProxy::*)(const QString & )>(_a, &ThreadProxy::topicEventSent, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (ThreadProxy::*)()>(_a, &ThreadProxy::eventSent, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (ThreadProxy::*)()>(_a, &ThreadProxy::stopLoading, 4))
            return;
    }
}

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

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

int ThreadProxy::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 ThreadProxy::error(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void ThreadProxy::nameEventSent(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void ThreadProxy::topicEventSent(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

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

// SIGNAL 4
void ThreadProxy::stopLoading()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}
namespace {
struct qt_meta_tag_ZN29RoomSettingsAllowedRoomsModelE_t {};
} // unnamed namespace

template <> constexpr inline auto RoomSettingsAllowedRoomsModel::qt_create_metaobjectdata<qt_meta_tag_ZN29RoomSettingsAllowedRoomsModelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "RoomSettingsAllowedRoomsModel",
        "addRoom",
        "",
        "room"
    };

    QtMocHelpers::UintData qt_methods {
        // Method 'addRoom'
        QtMocHelpers::MethodData<void(QString)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<RoomSettingsAllowedRoomsModel, qt_meta_tag_ZN29RoomSettingsAllowedRoomsModelE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject RoomSettingsAllowedRoomsModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractListModel::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN29RoomSettingsAllowedRoomsModelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN29RoomSettingsAllowedRoomsModelE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN29RoomSettingsAllowedRoomsModelE_t>.metaTypes,
    nullptr
} };

void RoomSettingsAllowedRoomsModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<RoomSettingsAllowedRoomsModel *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->addRoom((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        default: ;
        }
    }
}

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

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

int RoomSettingsAllowedRoomsModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QAbstractListModel::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 1)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 1;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 1)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 1;
    }
    return _id;
}
namespace {
struct qt_meta_tag_ZN12RoomSettingsE_t {};
} // unnamed namespace

template <> constexpr inline auto RoomSettings::qt_create_metaobjectdata<qt_meta_tag_ZN12RoomSettingsE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "RoomSettings",
        "QML.Element",
        "auto",
        "QML.Creatable",
        "false",
        "QML.UncreatableReason",
        "",
        "loadingChanged",
        "roomNameChanged",
        "roomTopicChanged",
        "avatarUrlChanged",
        "encryptionChanged",
        "notificationsChanged",
        "accessJoinRulesChanged",
        "allowedRoomsChanged",
        "displayError",
        "errorMessage",
        "allowedRoomsModifiedChanged",
        "historyVisibilityChanged",
        "stopLoading",
        "avatarChanged",
        "changeHistoryVisibility",
        "Visibility",
        "visibility",
        "enableEncryption",
        "updateAvatar",
        "changeAccessRules",
        "private_",
        "guestsAllowed",
        "knockingAllowed",
        "restrictedAllowed",
        "changeNotifications",
        "currentIndex",
        "changeTopic",
        "topic",
        "changeName",
        "name",
        "applyAllowedFromModel",
        "roomId",
        "roomVersion",
        "roomName",
        "roomTopic",
        "plainRoomName",
        "plainRoomTopic",
        "roomAvatarUrl",
        "memberCount",
        "notifications",
        "historyVisibility",
        "privateAccess",
        "guestAccess",
        "knockingEnabled",
        "restrictedEnabled",
        "isLoading",
        "canChangeAvatar",
        "canChangeJoinRules",
        "canChangeName",
        "canChangeTopic",
        "canChangeHistoryVisibility",
        "isEncryptionEnabled",
        "supportsKnocking",
        "supportsRestricted",
        "supportsKnockRestricted",
        "isRoomNameSet",
        "allowedRooms",
        "allowedRoomsModel",
        "RoomSettingsAllowedRoomsModel*",
        "allowedRoomsModified",
        "WorldReadable",
        "Shared",
        "Invited",
        "Joined"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'loadingChanged'
        QtMocHelpers::SignalData<void()>(7, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'roomNameChanged'
        QtMocHelpers::SignalData<void()>(8, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'roomTopicChanged'
        QtMocHelpers::SignalData<void()>(9, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'avatarUrlChanged'
        QtMocHelpers::SignalData<void()>(10, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'encryptionChanged'
        QtMocHelpers::SignalData<void()>(11, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'notificationsChanged'
        QtMocHelpers::SignalData<void()>(12, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'accessJoinRulesChanged'
        QtMocHelpers::SignalData<void()>(13, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'allowedRoomsChanged'
        QtMocHelpers::SignalData<void()>(14, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'displayError'
        QtMocHelpers::SignalData<void(const QString &)>(15, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 16 },
        }}),
        // Signal 'allowedRoomsModifiedChanged'
        QtMocHelpers::SignalData<void()>(17, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'historyVisibilityChanged'
        QtMocHelpers::SignalData<void()>(18, 6, QMC::AccessPublic, QMetaType::Void),
        // Slot 'stopLoading'
        QtMocHelpers::SlotData<void()>(19, 6, QMC::AccessPublic, QMetaType::Void),
        // Slot 'avatarChanged'
        QtMocHelpers::SlotData<void()>(20, 6, QMC::AccessPublic, QMetaType::Void),
        // Method 'changeHistoryVisibility'
        QtMocHelpers::MethodData<void(enum Visibility)>(21, 6, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 22, 23 },
        }}),
        // Method 'enableEncryption'
        QtMocHelpers::MethodData<void()>(24, 6, QMC::AccessPublic, QMetaType::Void),
        // Method 'updateAvatar'
        QtMocHelpers::MethodData<void()>(25, 6, QMC::AccessPublic, QMetaType::Void),
        // Method 'changeAccessRules'
        QtMocHelpers::MethodData<void(bool, bool, bool, bool)>(26, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 27 }, { QMetaType::Bool, 28 }, { QMetaType::Bool, 29 }, { QMetaType::Bool, 30 },
        }}),
        // Method 'changeNotifications'
        QtMocHelpers::MethodData<void(int)>(31, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 32 },
        }}),
        // Method 'changeTopic'
        QtMocHelpers::MethodData<void(const QString &)>(33, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 34 },
        }}),
        // Method 'changeName'
        QtMocHelpers::MethodData<void(const QString &)>(35, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 36 },
        }}),
        // Method 'applyAllowedFromModel'
        QtMocHelpers::MethodData<void()>(37, 6, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'roomId'
        QtMocHelpers::PropertyData<QString>(38, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'roomVersion'
        QtMocHelpers::PropertyData<QString>(39, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'roomName'
        QtMocHelpers::PropertyData<QString>(40, QMetaType::QString, QMC::DefaultPropertyFlags, 1),
        // property 'roomTopic'
        QtMocHelpers::PropertyData<QString>(41, QMetaType::QString, QMC::DefaultPropertyFlags, 2),
        // property 'plainRoomName'
        QtMocHelpers::PropertyData<QString>(42, QMetaType::QString, QMC::DefaultPropertyFlags, 1),
        // property 'plainRoomTopic'
        QtMocHelpers::PropertyData<QString>(43, QMetaType::QString, QMC::DefaultPropertyFlags, 2),
        // property 'roomAvatarUrl'
        QtMocHelpers::PropertyData<QString>(44, QMetaType::QString, QMC::DefaultPropertyFlags, 3),
        // property 'memberCount'
        QtMocHelpers::PropertyData<int>(45, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'notifications'
        QtMocHelpers::PropertyData<int>(46, QMetaType::Int, QMC::DefaultPropertyFlags, 5),
        // property 'historyVisibility'
        QtMocHelpers::PropertyData<enum Visibility>(47, 0x80000000 | 22, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag, 10),
        // property 'privateAccess'
        QtMocHelpers::PropertyData<bool>(48, QMetaType::Bool, QMC::DefaultPropertyFlags, 6),
        // property 'guestAccess'
        QtMocHelpers::PropertyData<bool>(49, QMetaType::Bool, QMC::DefaultPropertyFlags, 6),
        // property 'knockingEnabled'
        QtMocHelpers::PropertyData<bool>(50, QMetaType::Bool, QMC::DefaultPropertyFlags, 6),
        // property 'restrictedEnabled'
        QtMocHelpers::PropertyData<bool>(51, QMetaType::Bool, QMC::DefaultPropertyFlags, 6),
        // property 'isLoading'
        QtMocHelpers::PropertyData<bool>(52, QMetaType::Bool, QMC::DefaultPropertyFlags, 0),
        // property 'canChangeAvatar'
        QtMocHelpers::PropertyData<bool>(53, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'canChangeJoinRules'
        QtMocHelpers::PropertyData<bool>(54, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'canChangeName'
        QtMocHelpers::PropertyData<bool>(55, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'canChangeTopic'
        QtMocHelpers::PropertyData<bool>(56, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'canChangeHistoryVisibility'
        QtMocHelpers::PropertyData<bool>(57, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'isEncryptionEnabled'
        QtMocHelpers::PropertyData<bool>(58, QMetaType::Bool, QMC::DefaultPropertyFlags, 4),
        // property 'supportsKnocking'
        QtMocHelpers::PropertyData<bool>(59, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'supportsRestricted'
        QtMocHelpers::PropertyData<bool>(60, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'supportsKnockRestricted'
        QtMocHelpers::PropertyData<bool>(61, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'isRoomNameSet'
        QtMocHelpers::PropertyData<bool>(62, QMetaType::Bool, QMC::DefaultPropertyFlags, 1),
        // property 'allowedRooms'
        QtMocHelpers::PropertyData<QStringList>(63, QMetaType::QStringList, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 7),
        // property 'allowedRoomsModel'
        QtMocHelpers::PropertyData<RoomSettingsAllowedRoomsModel*>(64, 0x80000000 | 65, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'allowedRoomsModified'
        QtMocHelpers::PropertyData<bool>(66, QMetaType::Bool, QMC::DefaultPropertyFlags, 9),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'Visibility'
        QtMocHelpers::EnumData<enum Visibility>(22, 22, QMC::EnumFlags{}).add({
            {   67, Visibility::WorldReadable },
            {   68, Visibility::Shared },
            {   69, Visibility::Invited },
            {   70, Visibility::Joined },
        }),
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
            {    5,    6 },
    });
    return QtMocHelpers::metaObjectData<RoomSettings, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject RoomSettings::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12RoomSettingsE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12RoomSettingsE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12RoomSettingsE_t>.metaTypes,
    nullptr
} };

void RoomSettings::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<RoomSettings *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->loadingChanged(); break;
        case 1: _t->roomNameChanged(); break;
        case 2: _t->roomTopicChanged(); break;
        case 3: _t->avatarUrlChanged(); break;
        case 4: _t->encryptionChanged(); break;
        case 5: _t->notificationsChanged(); break;
        case 6: _t->accessJoinRulesChanged(); break;
        case 7: _t->allowedRoomsChanged(); break;
        case 8: _t->displayError((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 9: _t->allowedRoomsModifiedChanged(); break;
        case 10: _t->historyVisibilityChanged(); break;
        case 11: _t->stopLoading(); break;
        case 12: _t->avatarChanged(); break;
        case 13: _t->changeHistoryVisibility((*reinterpret_cast<std::add_pointer_t<enum Visibility>>(_a[1]))); break;
        case 14: _t->enableEncryption(); break;
        case 15: _t->updateAvatar(); break;
        case 16: _t->changeAccessRules((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[4]))); break;
        case 17: _t->changeNotifications((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 18: _t->changeTopic((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 19: _t->changeName((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 20: _t->applyAllowedFromModel(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (RoomSettings::*)()>(_a, &RoomSettings::loadingChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (RoomSettings::*)()>(_a, &RoomSettings::roomNameChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (RoomSettings::*)()>(_a, &RoomSettings::roomTopicChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (RoomSettings::*)()>(_a, &RoomSettings::avatarUrlChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (RoomSettings::*)()>(_a, &RoomSettings::encryptionChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (RoomSettings::*)()>(_a, &RoomSettings::notificationsChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (RoomSettings::*)()>(_a, &RoomSettings::accessJoinRulesChanged, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (RoomSettings::*)()>(_a, &RoomSettings::allowedRoomsChanged, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (RoomSettings::*)(const QString & )>(_a, &RoomSettings::displayError, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (RoomSettings::*)()>(_a, &RoomSettings::allowedRoomsModifiedChanged, 9))
            return;
        if (QtMocHelpers::indexOfMethod<void (RoomSettings::*)()>(_a, &RoomSettings::historyVisibilityChanged, 10))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 26:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< RoomSettingsAllowedRoomsModel* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QString*>(_v) = _t->roomId(); break;
        case 1: *reinterpret_cast<QString*>(_v) = _t->roomVersion(); break;
        case 2: *reinterpret_cast<QString*>(_v) = _t->roomName(); break;
        case 3: *reinterpret_cast<QString*>(_v) = _t->roomTopic(); break;
        case 4: *reinterpret_cast<QString*>(_v) = _t->plainRoomName(); break;
        case 5: *reinterpret_cast<QString*>(_v) = _t->plainRoomTopic(); break;
        case 6: *reinterpret_cast<QString*>(_v) = _t->roomAvatarUrl(); break;
        case 7: *reinterpret_cast<int*>(_v) = _t->memberCount(); break;
        case 8: *reinterpret_cast<int*>(_v) = _t->notifications(); break;
        case 9: *reinterpret_cast<enum Visibility*>(_v) = _t->historyVisibility(); break;
        case 10: *reinterpret_cast<bool*>(_v) = _t->privateAccess(); break;
        case 11: *reinterpret_cast<bool*>(_v) = _t->guestAccess(); break;
        case 12: *reinterpret_cast<bool*>(_v) = _t->knockingEnabled(); break;
        case 13: *reinterpret_cast<bool*>(_v) = _t->restrictedEnabled(); break;
        case 14: *reinterpret_cast<bool*>(_v) = _t->isLoading(); break;
        case 15: *reinterpret_cast<bool*>(_v) = _t->canChangeAvatar(); break;
        case 16: *reinterpret_cast<bool*>(_v) = _t->canChangeJoinRules(); break;
        case 17: *reinterpret_cast<bool*>(_v) = _t->canChangeName(); break;
        case 18: *reinterpret_cast<bool*>(_v) = _t->canChangeTopic(); break;
        case 19: *reinterpret_cast<bool*>(_v) = _t->canChangeHistoryVisibility(); break;
        case 20: *reinterpret_cast<bool*>(_v) = _t->isEncryptionEnabled(); break;
        case 21: *reinterpret_cast<bool*>(_v) = _t->supportsKnocking(); break;
        case 22: *reinterpret_cast<bool*>(_v) = _t->supportsRestricted(); break;
        case 23: *reinterpret_cast<bool*>(_v) = _t->supportsKnockRestricted(); break;
        case 24: *reinterpret_cast<bool*>(_v) = _t->isRoomNameSet(); break;
        case 25: *reinterpret_cast<QStringList*>(_v) = _t->allowedRooms(); break;
        case 26: *reinterpret_cast<RoomSettingsAllowedRoomsModel**>(_v) = _t->allowedRoomsModel; break;
        case 27: *reinterpret_cast<bool*>(_v) = _t->allowedRoomsModified(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 9: _t->changeHistoryVisibility(*reinterpret_cast<enum Visibility*>(_v)); break;
        case 25: _t->setAllowedRooms(*reinterpret_cast<QStringList*>(_v)); break;
        default: break;
        }
    }
}

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

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

int RoomSettings::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 < 21)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 21;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 21)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 21;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 28;
    }
    return _id;
}

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

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

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

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

// SIGNAL 4
void RoomSettings::encryptionChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

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

// SIGNAL 6
void RoomSettings::accessJoinRulesChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}

// SIGNAL 7
void RoomSettings::allowedRoomsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
}

// SIGNAL 8
void RoomSettings::displayError(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 8, nullptr, _t1);
}

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

// SIGNAL 10
void RoomSettings::historyVisibilityChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 10, nullptr);
}
QT_WARNING_POP
