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

template <> constexpr inline auto SpaceHierarchyCache::qt_create_metaobjectdata<qt_meta_tag_ZN19SpaceHierarchyCacheE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "SpaceHierarchyCache",
        "QML.Element",
        "auto",
        "QML.Singleton",
        "true",
        "spaceHierarchyChanged",
        "",
        "connectionChanged",
        "spaceNotificationCountChanged",
        "spaces",
        "recommendedSpaceHiddenChanged",
        "addSpaceToHierarchy",
        "Quotient::Room*",
        "room",
        "removeSpaceFromHierarchy",
        "isSpaceChild",
        "spaceId",
        "roomId",
        "connection",
        "NeoChatConnection*",
        "recommendedSpaceId",
        "recommendedSpaceAvatar",
        "recommendedSpaceDisplayName",
        "recommendedSpaceDescription",
        "recommendedSpaceHidden"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'spaceHierarchyChanged'
        QtMocHelpers::SignalData<void()>(5, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'connectionChanged'
        QtMocHelpers::SignalData<void()>(7, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'spaceNotificationCountChanged'
        QtMocHelpers::SignalData<void(const QStringList &)>(8, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QStringList, 9 },
        }}),
        // Signal 'recommendedSpaceHiddenChanged'
        QtMocHelpers::SignalData<void()>(10, 6, QMC::AccessPublic, QMetaType::Void),
        // Slot 'addSpaceToHierarchy'
        QtMocHelpers::SlotData<void(Quotient::Room *)>(11, 6, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 12, 13 },
        }}),
        // Slot 'removeSpaceFromHierarchy'
        QtMocHelpers::SlotData<void(Quotient::Room *)>(14, 6, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 12, 13 },
        }}),
        // Method 'isSpaceChild'
        QtMocHelpers::MethodData<bool(const QString &, const QString &)>(15, 6, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 16 }, { QMetaType::QString, 17 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'connection'
        QtMocHelpers::PropertyData<NeoChatConnection*>(18, 0x80000000 | 19, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 1),
        // property 'recommendedSpaceId'
        QtMocHelpers::PropertyData<QString>(20, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'recommendedSpaceAvatar'
        QtMocHelpers::PropertyData<QString>(21, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'recommendedSpaceDisplayName'
        QtMocHelpers::PropertyData<QString>(22, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'recommendedSpaceDescription'
        QtMocHelpers::PropertyData<QString>(23, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'recommendedSpaceHidden'
        QtMocHelpers::PropertyData<bool>(24, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 3),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
    });
    return QtMocHelpers::metaObjectData<SpaceHierarchyCache, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject SpaceHierarchyCache::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN19SpaceHierarchyCacheE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN19SpaceHierarchyCacheE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN19SpaceHierarchyCacheE_t>.metaTypes,
    nullptr
} };

void SpaceHierarchyCache::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<SpaceHierarchyCache *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->spaceHierarchyChanged(); break;
        case 1: _t->connectionChanged(); break;
        case 2: _t->spaceNotificationCountChanged((*reinterpret_cast<std::add_pointer_t<QStringList>>(_a[1]))); break;
        case 3: _t->recommendedSpaceHiddenChanged(); break;
        case 4: _t->addSpaceToHierarchy((*reinterpret_cast<std::add_pointer_t<Quotient::Room*>>(_a[1]))); break;
        case 5: _t->removeSpaceFromHierarchy((*reinterpret_cast<std::add_pointer_t<Quotient::Room*>>(_a[1]))); break;
        case 6: { bool _r = _t->isSpaceChild((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (SpaceHierarchyCache::*)()>(_a, &SpaceHierarchyCache::spaceHierarchyChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (SpaceHierarchyCache::*)()>(_a, &SpaceHierarchyCache::connectionChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (SpaceHierarchyCache::*)(const QStringList & )>(_a, &SpaceHierarchyCache::spaceNotificationCountChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (SpaceHierarchyCache::*)()>(_a, &SpaceHierarchyCache::recommendedSpaceHiddenChanged, 3))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<NeoChatConnection**>(_v) = _t->connection(); break;
        case 1: *reinterpret_cast<QString*>(_v) = _t->recommendedSpaceId(); break;
        case 2: *reinterpret_cast<QString*>(_v) = _t->recommendedSpaceAvatar(); break;
        case 3: *reinterpret_cast<QString*>(_v) = _t->recommendedSpaceDisplayName(); break;
        case 4: *reinterpret_cast<QString*>(_v) = _t->recommendedSpaceDescription(); break;
        case 5: *reinterpret_cast<bool*>(_v) = _t->recommendedSpaceHidden(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setConnection(*reinterpret_cast<NeoChatConnection**>(_v)); break;
        case 5: _t->setRecommendedSpaceHidden(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

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

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

int SpaceHierarchyCache::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 < 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 SpaceHierarchyCache::spaceHierarchyChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

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

// SIGNAL 2
void SpaceHierarchyCache::spaceNotificationCountChanged(const QStringList & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

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