/****************************************************************************
** Meta object code from reading C++ file 'sortfilterroomtreemodel.h'
**
** Created by: The Qt Meta Object Compiler version 69 (Qt 6.12.0)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../../../../neochat-26.07.90/src/rooms/models/sortfilterroomtreemodel.h"
#include <QtNetwork/QSslError>
#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 'sortfilterroomtreemodel.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.12.0. 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_ZN23SortFilterRoomTreeModelE_t {};
} // unnamed namespace

template <> constexpr inline auto SortFilterRoomTreeModel::qt_create_metaobjectdata<qt_meta_tag_ZN23SortFilterRoomTreeModelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "SortFilterRoomTreeModel",
        "QML.Element",
        "auto",
        "QML.Creatable",
        "false",
        "QML.UncreatableReason",
        "",
        "filterTextChanged",
        "activeSpaceIdChanged",
        "modeChanged",
        "currentRoomChanged",
        "currentRoomIndex",
        "QModelIndex",
        "filterText",
        "activeSpaceId",
        "mode",
        "Mode",
        "RoomSortOrder",
        "Alphabetical",
        "Activity",
        "LastMessage",
        "Rooms",
        "DirectChats",
        "All"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'filterTextChanged'
        QtMocHelpers::SignalData<void()>(7, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'activeSpaceIdChanged'
        QtMocHelpers::SignalData<void()>(8, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'modeChanged'
        QtMocHelpers::SignalData<void()>(9, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'currentRoomChanged'
        QtMocHelpers::SignalData<void()>(10, 6, QMC::AccessPublic, QMetaType::Void),
        // Method 'currentRoomIndex'
        QtMocHelpers::MethodData<QModelIndex() const>(11, 6, QMC::AccessPublic, 0x80000000 | 12),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'filterText'
        QtMocHelpers::PropertyData<QString>(13, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 0),
        // property 'activeSpaceId'
        QtMocHelpers::PropertyData<QString>(14, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
        // property 'mode'
        QtMocHelpers::PropertyData<enum Mode>(15, 0x80000000 | 16, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 2),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'RoomSortOrder'
        QtMocHelpers::EnumData<enum RoomSortOrder>(17, 17, QMC::EnumFlags{}).add({
            {   18, RoomSortOrder::Alphabetical },
            {   19, RoomSortOrder::Activity },
            {   20, RoomSortOrder::LastMessage },
        }),
        // enum 'Mode'
        QtMocHelpers::EnumData<enum Mode>(16, 16, QMC::EnumFlags{}).add({
            {   21, Mode::Rooms },
            {   22, Mode::DirectChats },
            {   23, Mode::All },
        }),
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
            {    5,    6 },
    });
    return QtMocHelpers::metaObjectData<SortFilterRoomTreeModel, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject SortFilterRoomTreeModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QSortFilterProxyModel::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN23SortFilterRoomTreeModelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN23SortFilterRoomTreeModelE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN23SortFilterRoomTreeModelE_t>.metaTypes,
    nullptr
} };

void SortFilterRoomTreeModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<SortFilterRoomTreeModel *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->filterTextChanged(); break;
        case 1: _t->activeSpaceIdChanged(); break;
        case 2: _t->modeChanged(); break;
        case 3: _t->currentRoomChanged(); break;
        case 4: { QModelIndex _r = _t->currentRoomIndex();
            if (_a[0]) *reinterpret_cast<QModelIndex*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (SortFilterRoomTreeModel::*)()>(_a, &SortFilterRoomTreeModel::filterTextChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (SortFilterRoomTreeModel::*)()>(_a, &SortFilterRoomTreeModel::activeSpaceIdChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (SortFilterRoomTreeModel::*)()>(_a, &SortFilterRoomTreeModel::modeChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (SortFilterRoomTreeModel::*)()>(_a, &SortFilterRoomTreeModel::currentRoomChanged, 3))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QString*>(_v) = _t->filterText(); break;
        case 1: *reinterpret_cast<QString*>(_v) = _t->activeSpaceId(); break;
        case 2: *reinterpret_cast<enum Mode*>(_v) = _t->mode(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setFilterText(*reinterpret_cast<QString*>(_v)); break;
        case 1: _t->setActiveSpaceId(*reinterpret_cast<QString*>(_v)); break;
        case 2: _t->setMode(*reinterpret_cast<enum Mode*>(_v)); break;
        default: break;
        }
    }
}

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

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

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

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

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

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

// SIGNAL 3
void SortFilterRoomTreeModel::currentRoomChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}
QT_WARNING_POP
