/****************************************************************************
** Meta object code from reading C++ file 'devicemodel.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 "../../../../jami-client-qt/src/core/api/devicemodel.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 'devicemodel.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_ZN3lrc3api11DeviceModelE_t {};
} // unnamed namespace

template <> constexpr inline auto lrc::api::DeviceModel::qt_create_metaobjectdata<qt_meta_tag_ZN3lrc3api11DeviceModelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "lrc::api::DeviceModel",
        "deviceAdded",
        "",
        "id",
        "deviceRevoked",
        "Status",
        "status",
        "deviceUpdated",
        "revokeDevice",
        "password"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'deviceAdded'
        QtMocHelpers::SignalData<void(const QString &) const>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 },
        }}),
        // Signal 'deviceRevoked'
        QtMocHelpers::SignalData<void(const QString &, const Status) const>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 }, { 0x80000000 | 5, 6 },
        }}),
        // Signal 'deviceUpdated'
        QtMocHelpers::SignalData<void(const QString &) const>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 },
        }}),
        // Method 'revokeDevice'
        QtMocHelpers::MethodData<void(const QString &, const QString &)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 }, { QMetaType::QString, 9 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<DeviceModel, qt_meta_tag_ZN3lrc3api11DeviceModelE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject lrc::api::DeviceModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractListModel::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3lrc3api11DeviceModelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3lrc3api11DeviceModelE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN3lrc3api11DeviceModelE_t>.metaTypes,
    nullptr
} };

void lrc::api::DeviceModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<DeviceModel *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->deviceAdded((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 1: _t->deviceRevoked((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<enum Status>>(_a[2]))); break;
        case 2: _t->deviceUpdated((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 3: _t->revokeDevice((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (DeviceModel::*)(const QString & ) const>(_a, &DeviceModel::deviceAdded, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (DeviceModel::*)(const QString & , const Status ) const>(_a, &DeviceModel::deviceRevoked, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (DeviceModel::*)(const QString & ) const>(_a, &DeviceModel::deviceUpdated, 2))
            return;
    }
}

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

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

int lrc::api::DeviceModel::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 < 4)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 4;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 4)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 4;
    }
    return _id;
}

// SIGNAL 0
void lrc::api::DeviceModel::deviceAdded(const QString & _t1)const
{
    QMetaObject::activate<void>(const_cast< lrc::api::DeviceModel *>(this), &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void lrc::api::DeviceModel::deviceRevoked(const QString & _t1, const Status _t2)const
{
    QMetaObject::activate<void>(const_cast< lrc::api::DeviceModel *>(this), &staticMetaObject, 1, nullptr, _t1, _t2);
}

// SIGNAL 2
void lrc::api::DeviceModel::deviceUpdated(const QString & _t1)const
{
    QMetaObject::activate<void>(const_cast< lrc::api::DeviceModel *>(this), &staticMetaObject, 2, nullptr, _t1);
}
namespace {
struct qt_meta_tag_ZN3lrc3api10DeviceListE_t {};
} // unnamed namespace

template <> constexpr inline auto lrc::api::DeviceList::qt_create_metaobjectdata<qt_meta_tag_ZN3lrc3api10DeviceListE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "lrc::api::DeviceList",
        "Role",
        "DeviceName",
        "DeviceID",
        "IsCurrent"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'Role'
        QtMocHelpers::EnumData<Role>(1, 1, QMC::EnumFlags{}).add({
            {    2, Role::DeviceName },
            {    3, Role::DeviceID },
            {    4, Role::IsCurrent },
        }),
    };
    return QtMocHelpers::metaObjectData<void, qt_meta_tag_ZN3lrc3api10DeviceListE_t>(QMC::PropertyAccessInStaticMetaCall, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}

static constexpr auto qt_staticMetaObjectContent_ZN3lrc3api10DeviceListE =
    lrc::api::DeviceList::qt_create_metaobjectdata<qt_meta_tag_ZN3lrc3api10DeviceListE_t>();
static constexpr auto qt_staticMetaObjectStaticContent_ZN3lrc3api10DeviceListE =
    qt_staticMetaObjectContent_ZN3lrc3api10DeviceListE.staticData;
static constexpr auto qt_staticMetaObjectRelocatingContent_ZN3lrc3api10DeviceListE =
    qt_staticMetaObjectContent_ZN3lrc3api10DeviceListE.relocatingData;

Q_CONSTINIT const QMetaObject lrc::api::DeviceList::staticMetaObject = { {
    nullptr,
    qt_staticMetaObjectStaticContent_ZN3lrc3api10DeviceListE.stringdata,
    qt_staticMetaObjectStaticContent_ZN3lrc3api10DeviceListE.data,
    nullptr,
    nullptr,
    qt_staticMetaObjectRelocatingContent_ZN3lrc3api10DeviceListE.metaTypes,
    nullptr
} };

QT_WARNING_POP
