/****************************************************************************
** Meta object code from reading C++ file 'callparticipantsmodel.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 "../../../jami-client-qt/src/app/callparticipantsmodel.h"
#include <QtNetwork/QSslError>
#include <QtGui/qtextcursor.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 'callparticipantsmodel.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_ZN21CallParticipantsModelE_t {};
} // unnamed namespace

template <> constexpr inline auto CallParticipantsModel::qt_create_metaobjectdata<qt_meta_tag_ZN21CallParticipantsModelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "CallParticipantsModel",
        "countChanged",
        "",
        "conferenceLayoutChanged",
        "reset",
        "conferenceLayout",
        "LayoutType",
        "count",
        "GRID",
        "ONE_WITH_SMALL",
        "ONE"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'countChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'conferenceLayoutChanged'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'reset'
        QtMocHelpers::MethodData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'conferenceLayout'
        QtMocHelpers::PropertyData<LayoutType>(5, 0x80000000 | 6, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 1),
        // property 'count'
        QtMocHelpers::PropertyData<int>(7, QMetaType::Int, QMC::DefaultPropertyFlags, 0),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'LayoutType'
        QtMocHelpers::EnumData<LayoutType>(6, 6, QMC::EnumFlags{}).add({
            {    8, LayoutType::GRID },
            {    9, LayoutType::ONE_WITH_SMALL },
            {   10, LayoutType::ONE },
        }),
    };
    return QtMocHelpers::metaObjectData<CallParticipantsModel, qt_meta_tag_ZN21CallParticipantsModelE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject CallParticipantsModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractListModel::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN21CallParticipantsModelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN21CallParticipantsModelE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN21CallParticipantsModelE_t>.metaTypes,
    nullptr
} };

void CallParticipantsModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<CallParticipantsModel *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->countChanged(); break;
        case 1: _t->conferenceLayoutChanged(); break;
        case 2: _t->reset(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (CallParticipantsModel::*)()>(_a, &CallParticipantsModel::countChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (CallParticipantsModel::*)()>(_a, &CallParticipantsModel::conferenceLayoutChanged, 1))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<LayoutType*>(_v) = _t->conferenceLayout(); break;
        case 1: *reinterpret_cast<int*>(_v) = _t->get_count(); break;
        default: break;
        }
    }
}

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

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

int CallParticipantsModel::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 < 3)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 3)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 3;
    }
    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 CallParticipantsModel::countChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void CallParticipantsModel::conferenceLayoutChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
namespace {
struct qt_meta_tag_ZN15CallParticipantE_t {};
} // unnamed namespace

template <> constexpr inline auto CallParticipant::qt_create_metaobjectdata<qt_meta_tag_ZN15CallParticipantE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "CallParticipant",
        "Role",
        "DummyRole",
        "Uri",
        "Device",
        "SinkId",
        "BestName",
        "Avatar",
        "Active",
        "XPosition",
        "YPosition",
        "Width",
        "Height",
        "HideSpectators",
        "AudioLocalMuted",
        "AudioModeratorMuted",
        "VideoMuted",
        "IsModerator",
        "IsLocal",
        "IsContact",
        "VoiceActivity",
        "IsRecording",
        "HandRaised",
        "IsSharing"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'Role'
        QtMocHelpers::EnumData<Role>(1, 1, QMC::EnumFlags{}).add({
            {    2, Role::DummyRole },
            {    3, Role::Uri },
            {    4, Role::Device },
            {    5, Role::SinkId },
            {    6, Role::BestName },
            {    7, Role::Avatar },
            {    8, Role::Active },
            {    9, Role::XPosition },
            {   10, Role::YPosition },
            {   11, Role::Width },
            {   12, Role::Height },
            {   13, Role::HideSpectators },
            {   14, Role::AudioLocalMuted },
            {   15, Role::AudioModeratorMuted },
            {   16, Role::VideoMuted },
            {   17, Role::IsModerator },
            {   18, Role::IsLocal },
            {   19, Role::IsContact },
            {   20, Role::VoiceActivity },
            {   21, Role::IsRecording },
            {   22, Role::HandRaised },
            {   23, Role::IsSharing },
        }),
    };
    return QtMocHelpers::metaObjectData<void, qt_meta_tag_ZN15CallParticipantE_t>(QMC::PropertyAccessInStaticMetaCall, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}

static constexpr auto qt_staticMetaObjectContent_ZN15CallParticipantE =
    CallParticipant::qt_create_metaobjectdata<qt_meta_tag_ZN15CallParticipantE_t>();
static constexpr auto qt_staticMetaObjectStaticContent_ZN15CallParticipantE =
    qt_staticMetaObjectContent_ZN15CallParticipantE.staticData;
static constexpr auto qt_staticMetaObjectRelocatingContent_ZN15CallParticipantE =
    qt_staticMetaObjectContent_ZN15CallParticipantE.relocatingData;

Q_CONSTINIT const QMetaObject CallParticipant::staticMetaObject = { {
    nullptr,
    qt_staticMetaObjectStaticContent_ZN15CallParticipantE.stringdata,
    qt_staticMetaObjectStaticContent_ZN15CallParticipantE.data,
    nullptr,
    nullptr,
    qt_staticMetaObjectRelocatingContent_ZN15CallParticipantE.metaTypes,
    nullptr
} };

QT_WARNING_POP
