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

template <> constexpr inline auto RoomPreview::qt_create_metaobjectdata<qt_meta_tag_ZN11RoomPreviewE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "RoomPreview",
        "roomid",
        "roomName",
        "roomTopic",
        "roomAvatarUrl",
        "reason",
        "inviterAvatarUrl",
        "inviterDisplayName",
        "inviterUserId",
        "isInvite",
        "isFetched"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
        // property 'roomid'
        QtMocHelpers::PropertyData<QString>(1, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'roomName'
        QtMocHelpers::PropertyData<QString>(2, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'roomTopic'
        QtMocHelpers::PropertyData<QString>(3, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'roomAvatarUrl'
        QtMocHelpers::PropertyData<QString>(4, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'reason'
        QtMocHelpers::PropertyData<QString>(5, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'inviterAvatarUrl'
        QtMocHelpers::PropertyData<QString>(6, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'inviterDisplayName'
        QtMocHelpers::PropertyData<QString>(7, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'inviterUserId'
        QtMocHelpers::PropertyData<QString>(8, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'isInvite'
        QtMocHelpers::PropertyData<bool>(9, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'isFetched'
        QtMocHelpers::PropertyData<bool>(10, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<RoomPreview, qt_meta_tag_ZN11RoomPreviewE_t>(QMC::PropertyAccessInStaticMetaCall, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject RoomPreview::staticMetaObject = { {
    nullptr,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11RoomPreviewE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11RoomPreviewE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN11RoomPreviewE_t>.metaTypes,
    nullptr
} };

void RoomPreview::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = reinterpret_cast<RoomPreview *>(_o);
    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->roomName(); break;
        case 2: *reinterpret_cast<QString*>(_v) = _t->roomTopic(); break;
        case 3: *reinterpret_cast<QString*>(_v) = _t->roomAvatarUrl(); break;
        case 4: *reinterpret_cast<QString*>(_v) = _t->reason(); break;
        case 5: *reinterpret_cast<QString*>(_v) = _t->inviterAvatarUrl(); break;
        case 6: *reinterpret_cast<QString*>(_v) = _t->inviterDisplayName(); break;
        case 7: *reinterpret_cast<QString*>(_v) = _t->inviterUserId(); break;
        case 8: *reinterpret_cast<bool*>(_v) = _t->isInvite(); break;
        case 9: *reinterpret_cast<bool*>(_v) = _t->isFetched(); break;
        default: break;
        }
    }
}
namespace {
struct qt_meta_tag_ZN13RoomlistModelE_t {};
} // unnamed namespace

template <> constexpr inline auto RoomlistModel::qt_create_metaobjectdata<qt_meta_tag_ZN13RoomlistModelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "RoomlistModel",
        "totalUnreadMessageCountUpdated",
        "",
        "unreadMessages",
        "currentRoomChanged",
        "currentRoomId",
        "fetchedPreview",
        "roomid",
        "RoomInfo",
        "info",
        "spaceSelected",
        "roomId",
        "initializeRooms",
        "sync",
        "mtx::responses::Sync",
        "sync_",
        "clear",
        "roomidToIndex",
        "joinPreview",
        "acceptInvite",
        "declineInvite",
        "leave",
        "reason",
        "currentRoom",
        "TimelineModel*",
        "currentRoomPreview",
        "RoomPreview",
        "setCurrentRoom",
        "resetCurrentRoom",
        "updateReadStatus",
        "std::map<QString,bool>",
        "roomReadStatus_"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'totalUnreadMessageCountUpdated'
        QtMocHelpers::SignalData<void(int)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 3 },
        }}),
        // Signal 'currentRoomChanged'
        QtMocHelpers::SignalData<void(QString)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 5 },
        }}),
        // Signal 'fetchedPreview'
        QtMocHelpers::SignalData<void(QString, RoomInfo)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 7 }, { 0x80000000 | 8, 9 },
        }}),
        // Signal 'spaceSelected'
        QtMocHelpers::SignalData<void(QString)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 11 },
        }}),
        // Slot 'initializeRooms'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'sync'
        QtMocHelpers::SlotData<void(const mtx::responses::Sync &)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 14, 15 },
        }}),
        // Slot 'clear'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'roomidToIndex'
        QtMocHelpers::SlotData<int(const QString &)>(17, 2, QMC::AccessPublic, QMetaType::Int, {{
            { QMetaType::QString, 7 },
        }}),
        // Slot 'joinPreview'
        QtMocHelpers::SlotData<void(const QString &)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 7 },
        }}),
        // Slot 'acceptInvite'
        QtMocHelpers::SlotData<void(QString)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 7 },
        }}),
        // Slot 'declineInvite'
        QtMocHelpers::SlotData<void(QString)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 7 },
        }}),
        // Slot 'leave'
        QtMocHelpers::SlotData<void(QString, QString)>(21, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 7 }, { QMetaType::QString, 22 },
        }}),
        // Slot 'leave'
        QtMocHelpers::SlotData<void(QString)>(21, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { QMetaType::QString, 7 },
        }}),
        // Slot 'currentRoom'
        QtMocHelpers::SlotData<TimelineModel *() const>(23, 2, QMC::AccessPublic, 0x80000000 | 24),
        // Slot 'currentRoomPreview'
        QtMocHelpers::SlotData<RoomPreview() const>(25, 2, QMC::AccessPublic, 0x80000000 | 26),
        // Slot 'setCurrentRoom'
        QtMocHelpers::SlotData<void(const QString &)>(27, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 7 },
        }}),
        // Slot 'resetCurrentRoom'
        QtMocHelpers::SlotData<void()>(28, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'updateReadStatus'
        QtMocHelpers::SlotData<void(const std::map<QString,bool> &)>(29, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 30, 31 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'currentRoom'
        QtMocHelpers::PropertyData<TimelineModel*>(23, 0x80000000 | 24, QMC::DefaultPropertyFlags | QMC::Resettable | QMC::EnumOrFlag, 1),
        // property 'currentRoomPreview'
        QtMocHelpers::PropertyData<RoomPreview>(25, 0x80000000 | 26, QMC::DefaultPropertyFlags | QMC::Resettable | QMC::EnumOrFlag, 1),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<RoomlistModel, qt_meta_tag_ZN13RoomlistModelE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject RoomlistModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractListModel::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13RoomlistModelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13RoomlistModelE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN13RoomlistModelE_t>.metaTypes,
    nullptr
} };

void RoomlistModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<RoomlistModel *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->totalUnreadMessageCountUpdated((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 1: _t->currentRoomChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 2: _t->fetchedPreview((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<RoomInfo>>(_a[2]))); break;
        case 3: _t->spaceSelected((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 4: _t->initializeRooms(); break;
        case 5: _t->sync((*reinterpret_cast<std::add_pointer_t<mtx::responses::Sync>>(_a[1]))); break;
        case 6: _t->clear(); break;
        case 7: { int _r = _t->roomidToIndex((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 8: _t->joinPreview((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 9: _t->acceptInvite((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 10: _t->declineInvite((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 11: _t->leave((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 12: _t->leave((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 13: { TimelineModel* _r = _t->currentRoom();
            if (_a[0]) *reinterpret_cast<TimelineModel**>(_a[0]) = std::move(_r); }  break;
        case 14: { RoomPreview _r = _t->currentRoomPreview();
            if (_a[0]) *reinterpret_cast<RoomPreview*>(_a[0]) = std::move(_r); }  break;
        case 15: _t->setCurrentRoom((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 16: _t->resetCurrentRoom(); break;
        case 17: _t->updateReadStatus((*reinterpret_cast<std::add_pointer_t<std::map<QString,bool>>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (RoomlistModel::*)(int )>(_a, &RoomlistModel::totalUnreadMessageCountUpdated, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (RoomlistModel::*)(QString )>(_a, &RoomlistModel::currentRoomChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (RoomlistModel::*)(QString , RoomInfo )>(_a, &RoomlistModel::fetchedPreview, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (RoomlistModel::*)(QString )>(_a, &RoomlistModel::spaceSelected, 3))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<TimelineModel**>(_v) = _t->currentRoom(); break;
        case 1: *reinterpret_cast<RoomPreview*>(_v) = _t->currentRoomPreview(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::ResetProperty) {
        switch (_id) {
        case 0: _t->resetCurrentRoom(); break;
        case 1: _t->resetCurrentRoom(); break;
        default: break;
        }
    }
}

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

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

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

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

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

// SIGNAL 2
void RoomlistModel::fetchedPreview(QString _t1, RoomInfo _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1, _t2);
}

// SIGNAL 3
void RoomlistModel::spaceSelected(QString _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}
namespace {
struct qt_meta_tag_ZN21FilteredRoomlistModelE_t {};
} // unnamed namespace

template <> constexpr inline auto FilteredRoomlistModel::qt_create_metaobjectdata<qt_meta_tag_ZN21FilteredRoomlistModelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "FilteredRoomlistModel",
        "QML.Element",
        "Rooms",
        "QML.Singleton",
        "true",
        "currentRoomChanged",
        "",
        "currentRoomId",
        "roomidToIndex",
        "roomid",
        "joinPreview",
        "acceptInvite",
        "declineInvite",
        "leave",
        "reason",
        "toggleTag",
        "tag",
        "on",
        "copyLink",
        "currentRoom",
        "TimelineModel*",
        "currentRoomPreview",
        "RoomPreview",
        "setCurrentRoom",
        "resetCurrentRoom",
        "getRoomById",
        "id",
        "getRoomPreviewById",
        "nextRoomWithActivity",
        "nextRoom",
        "previousRoom",
        "updateFilterTag",
        "tagId",
        "updateHiddenTagsAndSpaces"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'currentRoomChanged'
        QtMocHelpers::SignalData<void(QString)>(5, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 7 },
        }}),
        // Slot 'roomidToIndex'
        QtMocHelpers::SlotData<int(QString)>(8, 6, QMC::AccessPublic, QMetaType::Int, {{
            { QMetaType::QString, 9 },
        }}),
        // Slot 'joinPreview'
        QtMocHelpers::SlotData<void(QString)>(10, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 9 },
        }}),
        // Slot 'acceptInvite'
        QtMocHelpers::SlotData<void(QString)>(11, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 9 },
        }}),
        // Slot 'declineInvite'
        QtMocHelpers::SlotData<void(QString)>(12, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 9 },
        }}),
        // Slot 'leave'
        QtMocHelpers::SlotData<void(QString, QString)>(13, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 9 }, { QMetaType::QString, 14 },
        }}),
        // Slot 'leave'
        QtMocHelpers::SlotData<void(QString)>(13, 6, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { QMetaType::QString, 9 },
        }}),
        // Slot 'toggleTag'
        QtMocHelpers::SlotData<void(const QString &, const QString &, bool)>(15, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 9 }, { QMetaType::QString, 16 }, { QMetaType::Bool, 17 },
        }}),
        // Slot 'copyLink'
        QtMocHelpers::SlotData<void(QString)>(18, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 9 },
        }}),
        // Slot 'currentRoom'
        QtMocHelpers::SlotData<TimelineModel *() const>(19, 6, QMC::AccessPublic, 0x80000000 | 20),
        // Slot 'currentRoomPreview'
        QtMocHelpers::SlotData<RoomPreview() const>(21, 6, QMC::AccessPublic, 0x80000000 | 22),
        // Slot 'setCurrentRoom'
        QtMocHelpers::SlotData<void(QString)>(23, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 9 },
        }}),
        // Slot 'resetCurrentRoom'
        QtMocHelpers::SlotData<void()>(24, 6, QMC::AccessPublic, QMetaType::Void),
        // Slot 'getRoomById'
        QtMocHelpers::SlotData<TimelineModel *(const QString &) const>(25, 6, QMC::AccessPublic, 0x80000000 | 20, {{
            { QMetaType::QString, 26 },
        }}),
        // Slot 'getRoomPreviewById'
        QtMocHelpers::SlotData<RoomPreview(QString) const>(27, 6, QMC::AccessPublic, 0x80000000 | 22, {{
            { QMetaType::QString, 9 },
        }}),
        // Slot 'nextRoomWithActivity'
        QtMocHelpers::SlotData<void()>(28, 6, QMC::AccessPublic, QMetaType::Void),
        // Slot 'nextRoom'
        QtMocHelpers::SlotData<void()>(29, 6, QMC::AccessPublic, QMetaType::Void),
        // Slot 'previousRoom'
        QtMocHelpers::SlotData<void()>(30, 6, QMC::AccessPublic, QMetaType::Void),
        // Slot 'updateFilterTag'
        QtMocHelpers::SlotData<void(QString)>(31, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 32 },
        }}),
        // Slot 'updateHiddenTagsAndSpaces'
        QtMocHelpers::SlotData<void()>(33, 6, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'currentRoom'
        QtMocHelpers::PropertyData<TimelineModel*>(19, 0x80000000 | 20, QMC::DefaultPropertyFlags | QMC::Resettable | QMC::EnumOrFlag, 0),
        // property 'currentRoomPreview'
        QtMocHelpers::PropertyData<RoomPreview>(21, 0x80000000 | 22, QMC::DefaultPropertyFlags | QMC::Resettable | QMC::EnumOrFlag, 0),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
    });
    return QtMocHelpers::metaObjectData<FilteredRoomlistModel, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject FilteredRoomlistModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QSortFilterProxyModel::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN21FilteredRoomlistModelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN21FilteredRoomlistModelE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN21FilteredRoomlistModelE_t>.metaTypes,
    nullptr
} };

void FilteredRoomlistModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<FilteredRoomlistModel *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->currentRoomChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 1: { int _r = _t->roomidToIndex((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 2: _t->joinPreview((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 3: _t->acceptInvite((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 4: _t->declineInvite((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 5: _t->leave((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 6: _t->leave((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 7: _t->toggleTag((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[3]))); break;
        case 8: _t->copyLink((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 9: { TimelineModel* _r = _t->currentRoom();
            if (_a[0]) *reinterpret_cast<TimelineModel**>(_a[0]) = std::move(_r); }  break;
        case 10: { RoomPreview _r = _t->currentRoomPreview();
            if (_a[0]) *reinterpret_cast<RoomPreview*>(_a[0]) = std::move(_r); }  break;
        case 11: _t->setCurrentRoom((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 12: _t->resetCurrentRoom(); break;
        case 13: { TimelineModel* _r = _t->getRoomById((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<TimelineModel**>(_a[0]) = std::move(_r); }  break;
        case 14: { RoomPreview _r = _t->getRoomPreviewById((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<RoomPreview*>(_a[0]) = std::move(_r); }  break;
        case 15: _t->nextRoomWithActivity(); break;
        case 16: _t->nextRoom(); break;
        case 17: _t->previousRoom(); break;
        case 18: _t->updateFilterTag((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 19: _t->updateHiddenTagsAndSpaces(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (FilteredRoomlistModel::*)(QString )>(_a, &FilteredRoomlistModel::currentRoomChanged, 0))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<TimelineModel**>(_v) = _t->currentRoom(); break;
        case 1: *reinterpret_cast<RoomPreview*>(_v) = _t->currentRoomPreview(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::ResetProperty) {
        switch (_id) {
        case 0: _t->resetCurrentRoom(); break;
        case 1: _t->resetCurrentRoom(); break;
        default: break;
        }
    }
}

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

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

int FilteredRoomlistModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QSortFilterProxyModel::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 20)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 20;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 20)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 20;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 2;
    }
    return _id;
}

// SIGNAL 0
void FilteredRoomlistModel::currentRoomChanged(QString _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}
QT_WARNING_POP
