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

template <> constexpr inline auto MemberListBackend::qt_create_metaobjectdata<qt_meta_tag_ZN17MemberListBackendE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "MemberListBackend",
        "roomNameChanged",
        "",
        "memberCountChanged",
        "avatarUrlChanged",
        "roomIdChanged",
        "numUsersLoadedChanged",
        "loadingMoreMembersChanged",
        "addUsers",
        "std::vector<RoomMember>",
        "users",
        "roomName",
        "memberCount",
        "avatarUrl",
        "roomId",
        "numUsersLoaded",
        "loadingMoreMembers"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'roomNameChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'memberCountChanged'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'avatarUrlChanged'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'roomIdChanged'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'numUsersLoadedChanged'
        QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'loadingMoreMembersChanged'
        QtMocHelpers::SignalData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'addUsers'
        QtMocHelpers::SlotData<void(const std::vector<RoomMember> &)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 10 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'roomName'
        QtMocHelpers::PropertyData<QString>(11, QMetaType::QString, QMC::DefaultPropertyFlags, 0),
        // property 'memberCount'
        QtMocHelpers::PropertyData<int>(12, QMetaType::Int, QMC::DefaultPropertyFlags, 1),
        // property 'avatarUrl'
        QtMocHelpers::PropertyData<QString>(13, QMetaType::QString, QMC::DefaultPropertyFlags, 2),
        // property 'roomId'
        QtMocHelpers::PropertyData<QString>(14, QMetaType::QString, QMC::DefaultPropertyFlags, 3),
        // property 'numUsersLoaded'
        QtMocHelpers::PropertyData<int>(15, QMetaType::Int, QMC::DefaultPropertyFlags, 4),
        // property 'loadingMoreMembers'
        QtMocHelpers::PropertyData<bool>(16, QMetaType::Bool, QMC::DefaultPropertyFlags, 5),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<MemberListBackend, qt_meta_tag_ZN17MemberListBackendE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject MemberListBackend::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractListModel::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN17MemberListBackendE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN17MemberListBackendE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN17MemberListBackendE_t>.metaTypes,
    nullptr
} };

void MemberListBackend::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<MemberListBackend *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->roomNameChanged(); break;
        case 1: _t->memberCountChanged(); break;
        case 2: _t->avatarUrlChanged(); break;
        case 3: _t->roomIdChanged(); break;
        case 4: _t->numUsersLoadedChanged(); break;
        case 5: _t->loadingMoreMembersChanged(); break;
        case 6: _t->addUsers((*reinterpret_cast<std::add_pointer_t<std::vector<RoomMember>>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (MemberListBackend::*)()>(_a, &MemberListBackend::roomNameChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (MemberListBackend::*)()>(_a, &MemberListBackend::memberCountChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (MemberListBackend::*)()>(_a, &MemberListBackend::avatarUrlChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (MemberListBackend::*)()>(_a, &MemberListBackend::roomIdChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (MemberListBackend::*)()>(_a, &MemberListBackend::numUsersLoadedChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (MemberListBackend::*)()>(_a, &MemberListBackend::loadingMoreMembersChanged, 5))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QString*>(_v) = _t->roomName(); break;
        case 1: *reinterpret_cast<int*>(_v) = _t->memberCount(); break;
        case 2: *reinterpret_cast<QString*>(_v) = _t->avatarUrl(); break;
        case 3: *reinterpret_cast<QString*>(_v) = _t->roomId(); break;
        case 4: *reinterpret_cast<int*>(_v) = _t->numUsersLoaded(); break;
        case 5: *reinterpret_cast<bool*>(_v) = _t->loadingMoreMembers(); break;
        default: break;
        }
    }
}

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

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

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

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

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

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

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

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

// SIGNAL 5
void MemberListBackend::loadingMoreMembersChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}
namespace {
struct qt_meta_tag_ZN10MemberListE_t {};
} // unnamed namespace

template <> constexpr inline auto MemberList::qt_create_metaobjectdata<qt_meta_tag_ZN10MemberListE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "MemberList",
        "QML.Element",
        "auto",
        "QML.Creatable",
        "false",
        "QML.UncreatableReason",
        "",
        "roomNameChanged",
        "memberCountChanged",
        "avatarUrlChanged",
        "roomIdChanged",
        "numUsersLoadedChanged",
        "loadingMoreMembersChanged",
        "setFilterString",
        "text",
        "sortBy",
        "MemberSortRoles",
        "role",
        "roomName",
        "memberCount",
        "avatarUrl",
        "roomId",
        "numUsersLoaded",
        "loadingMoreMembers",
        "Mxid",
        "DisplayName",
        "Powerlevel"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'roomNameChanged'
        QtMocHelpers::SignalData<void()>(7, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'memberCountChanged'
        QtMocHelpers::SignalData<void()>(8, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'avatarUrlChanged'
        QtMocHelpers::SignalData<void()>(9, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'roomIdChanged'
        QtMocHelpers::SignalData<void()>(10, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'numUsersLoadedChanged'
        QtMocHelpers::SignalData<void()>(11, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'loadingMoreMembersChanged'
        QtMocHelpers::SignalData<void()>(12, 6, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setFilterString'
        QtMocHelpers::SlotData<void(const QString &)>(13, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 14 },
        }}),
        // Slot 'sortBy'
        QtMocHelpers::SlotData<void(const MemberSortRoles)>(15, 6, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 16, 17 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'roomName'
        QtMocHelpers::PropertyData<QString>(18, QMetaType::QString, QMC::DefaultPropertyFlags, 0),
        // property 'memberCount'
        QtMocHelpers::PropertyData<int>(19, QMetaType::Int, QMC::DefaultPropertyFlags, 1),
        // property 'avatarUrl'
        QtMocHelpers::PropertyData<QString>(20, QMetaType::QString, QMC::DefaultPropertyFlags, 2),
        // property 'roomId'
        QtMocHelpers::PropertyData<QString>(21, QMetaType::QString, QMC::DefaultPropertyFlags, 3),
        // property 'numUsersLoaded'
        QtMocHelpers::PropertyData<int>(22, QMetaType::Int, QMC::DefaultPropertyFlags, 4),
        // property 'loadingMoreMembers'
        QtMocHelpers::PropertyData<bool>(23, QMetaType::Bool, QMC::DefaultPropertyFlags, 5),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'MemberSortRoles'
        QtMocHelpers::EnumData<enum MemberSortRoles>(16, 16, QMC::EnumFlags{}).add({
            {   24, MemberSortRoles::Mxid },
            {   25, MemberSortRoles::DisplayName },
            {   26, MemberSortRoles::Powerlevel },
        }),
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
            {    5,    6 },
    });
    return QtMocHelpers::metaObjectData<MemberList, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject MemberList::staticMetaObject = { {
    QMetaObject::SuperData::link<QSortFilterProxyModel::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10MemberListE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10MemberListE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10MemberListE_t>.metaTypes,
    nullptr
} };

void MemberList::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<MemberList *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->roomNameChanged(); break;
        case 1: _t->memberCountChanged(); break;
        case 2: _t->avatarUrlChanged(); break;
        case 3: _t->roomIdChanged(); break;
        case 4: _t->numUsersLoadedChanged(); break;
        case 5: _t->loadingMoreMembersChanged(); break;
        case 6: _t->setFilterString((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 7: _t->sortBy((*reinterpret_cast<std::add_pointer_t<enum MemberSortRoles>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (MemberList::*)()>(_a, &MemberList::roomNameChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (MemberList::*)()>(_a, &MemberList::memberCountChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (MemberList::*)()>(_a, &MemberList::avatarUrlChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (MemberList::*)()>(_a, &MemberList::roomIdChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (MemberList::*)()>(_a, &MemberList::numUsersLoadedChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (MemberList::*)()>(_a, &MemberList::loadingMoreMembersChanged, 5))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QString*>(_v) = _t->roomName(); break;
        case 1: *reinterpret_cast<int*>(_v) = _t->memberCount(); break;
        case 2: *reinterpret_cast<QString*>(_v) = _t->avatarUrl(); break;
        case 3: *reinterpret_cast<QString*>(_v) = _t->roomId(); break;
        case 4: *reinterpret_cast<int*>(_v) = _t->numUsersLoaded(); break;
        case 5: *reinterpret_cast<bool*>(_v) = _t->loadingMoreMembers(); break;
        default: break;
        }
    }
}

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

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

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

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

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

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

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

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

// SIGNAL 5
void MemberList::loadingMoreMembersChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}
QT_WARNING_POP
