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

#include "../../../libQuotient/Quotient/roommember.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 'roommember.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.1. 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_ZN8Quotient10RoomMemberE_t {};
} // unnamed namespace

template <> constexpr inline auto Quotient::RoomMember::qt_create_metaobjectdata<qt_meta_tag_ZN8Quotient10RoomMemberE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Quotient::RoomMember",
        "matches",
        "",
        "QStringView",
        "substr",
        "Qt::CaseSensitivity",
        "cs",
        "isEmpty",
        "id",
        "uri",
        "Uri",
        "isLocalMember",
        "displayName",
        "htmlSafeDisplayName",
        "fullName",
        "htmlSafeFullName",
        "disambiguatedName",
        "htmlSafeDisambiguatedName",
        "hue",
        "hueF",
        "color",
        "QColor",
        "avatarUrl",
        "QUrl",
        "powerLevel"
    };

    QtMocHelpers::UintData qt_methods {
        // Method 'matches'
        QtMocHelpers::MethodData<bool(QStringView, Qt::CaseSensitivity) const>(1, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 3, 4 }, { 0x80000000 | 5, 6 },
        }}),
        // Method 'matches'
        QtMocHelpers::MethodData<bool(QStringView) const>(1, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Bool, {{
            { 0x80000000 | 3, 4 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'isEmpty'
        QtMocHelpers::PropertyData<bool>(7, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'id'
        QtMocHelpers::PropertyData<QString>(8, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'uri'
        QtMocHelpers::PropertyData<Uri>(9, 0x80000000 | 10, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'isLocalMember'
        QtMocHelpers::PropertyData<bool>(11, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'displayName'
        QtMocHelpers::PropertyData<QString>(12, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'htmlSafeDisplayName'
        QtMocHelpers::PropertyData<QString>(13, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'fullName'
        QtMocHelpers::PropertyData<QString>(14, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'htmlSafeFullName'
        QtMocHelpers::PropertyData<QString>(15, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'disambiguatedName'
        QtMocHelpers::PropertyData<QString>(16, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'htmlSafeDisambiguatedName'
        QtMocHelpers::PropertyData<QString>(17, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'hue'
        QtMocHelpers::PropertyData<int>(18, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'hueF'
        QtMocHelpers::PropertyData<qreal>(19, QMetaType::QReal, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'color'
        QtMocHelpers::PropertyData<QColor>(20, 0x80000000 | 21, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'avatarUrl'
        QtMocHelpers::PropertyData<QUrl>(22, 0x80000000 | 23, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'powerLevel'
        QtMocHelpers::PropertyData<int>(24, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<RoomMember, qt_meta_tag_ZN8Quotient10RoomMemberE_t>(QMC::PropertyAccessInStaticMetaCall, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Quotient::RoomMember::staticMetaObject = { {
    nullptr,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Quotient10RoomMemberE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Quotient10RoomMemberE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8Quotient10RoomMemberE_t>.metaTypes,
    nullptr
} };

void Quotient::RoomMember::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = reinterpret_cast<RoomMember *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: { bool _r = _t->matches((*reinterpret_cast<std::add_pointer_t<QStringView>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Qt::CaseSensitivity>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 1: { bool _r = _t->matches((*reinterpret_cast<std::add_pointer_t<QStringView>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->isEmpty(); break;
        case 1: *reinterpret_cast<QString*>(_v) = _t->id(); break;
        case 2: *reinterpret_cast<Uri*>(_v) = _t->uri(); break;
        case 3: *reinterpret_cast<bool*>(_v) = _t->isLocalMember(); break;
        case 4: *reinterpret_cast<QString*>(_v) = _t->displayName(); break;
        case 5: *reinterpret_cast<QString*>(_v) = _t->htmlSafeDisplayName(); break;
        case 6: *reinterpret_cast<QString*>(_v) = _t->fullName(); break;
        case 7: *reinterpret_cast<QString*>(_v) = _t->htmlSafeFullName(); break;
        case 8: *reinterpret_cast<QString*>(_v) = _t->disambiguatedName(); break;
        case 9: *reinterpret_cast<QString*>(_v) = _t->htmlSafeDisambiguatedName(); break;
        case 10: *reinterpret_cast<int*>(_v) = _t->hue(); break;
        case 11: *reinterpret_cast<qreal*>(_v) = _t->hueF(); break;
        case 12: *reinterpret_cast<QColor*>(_v) = _t->color(); break;
        case 13: *reinterpret_cast<QUrl*>(_v) = _t->avatarUrl(); break;
        case 14: *reinterpret_cast<int*>(_v) = _t->powerLevel(); break;
        default: break;
        }
    }
}
QT_WARNING_POP
