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

template <> constexpr inline auto lrc::api::PluginModel::qt_create_metaobjectdata<qt_meta_tag_ZN3lrc3api11PluginModelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "lrc::api::PluginModel",
        "chatHandlerStatusUpdated",
        "",
        "isVisible",
        "modelUpdated",
        "installPlugin",
        "jplPath",
        "force",
        "uninstallPlugin",
        "rootPath",
        "getPlatformInfo",
        "MapStringString",
        "loadPlugin",
        "path",
        "unloadPlugin",
        "toggleCallMediaHandler",
        "mediaHandlerId",
        "callId",
        "toggle",
        "toggleChatHandler",
        "chatHandlerId",
        "accountId",
        "peerId",
        "getPluginPreferences",
        "VectorMapStringString",
        "setPluginPreference",
        "key",
        "value",
        "resetPluginPreferencesValues"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'chatHandlerStatusUpdated'
        QtMocHelpers::SignalData<void(bool)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 3 },
        }}),
        // Signal 'modelUpdated'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'installPlugin'
        QtMocHelpers::MethodData<bool(const QString &, bool)>(5, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 6 }, { QMetaType::Bool, 7 },
        }}),
        // Method 'uninstallPlugin'
        QtMocHelpers::MethodData<bool(const QString &)>(8, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 9 },
        }}),
        // Method 'getPlatformInfo'
        QtMocHelpers::MethodData<MapStringString()>(10, 2, QMC::AccessPublic, 0x80000000 | 11),
        // Method 'loadPlugin'
        QtMocHelpers::MethodData<bool(const QString &)>(12, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 13 },
        }}),
        // Method 'unloadPlugin'
        QtMocHelpers::MethodData<bool(const QString &)>(14, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 13 },
        }}),
        // Method 'toggleCallMediaHandler'
        QtMocHelpers::MethodData<void(const QString &, const QString &, bool)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 16 }, { QMetaType::QString, 17 }, { QMetaType::Bool, 18 },
        }}),
        // Method 'toggleChatHandler'
        QtMocHelpers::MethodData<void(const QString &, const QString &, const QString &, bool)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 20 }, { QMetaType::QString, 21 }, { QMetaType::QString, 22 }, { QMetaType::Bool, 18 },
        }}),
        // Method 'getPluginPreferences'
        QtMocHelpers::MethodData<VectorMapStringString(const QString &, const QString &)>(23, 2, QMC::AccessPublic, 0x80000000 | 24, {{
            { QMetaType::QString, 13 }, { QMetaType::QString, 21 },
        }}),
        // Method 'setPluginPreference'
        QtMocHelpers::MethodData<bool(const QString &, const QString &, const QString &, const QString &)>(25, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 13 }, { QMetaType::QString, 21 }, { QMetaType::QString, 26 }, { QMetaType::QString, 27 },
        }}),
        // Method 'resetPluginPreferencesValues'
        QtMocHelpers::MethodData<bool(const QString &, const QString &)>(28, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 13 }, { QMetaType::QString, 21 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<PluginModel, qt_meta_tag_ZN3lrc3api11PluginModelE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject lrc::api::PluginModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3lrc3api11PluginModelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3lrc3api11PluginModelE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN3lrc3api11PluginModelE_t>.metaTypes,
    nullptr
} };

void lrc::api::PluginModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<PluginModel *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->chatHandlerStatusUpdated((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 1: _t->modelUpdated(); break;
        case 2: { bool _r = _t->installPlugin((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 3: { bool _r = _t->uninstallPlugin((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 4: { MapStringString _r = _t->getPlatformInfo();
            if (_a[0]) *reinterpret_cast<MapStringString*>(_a[0]) = std::move(_r); }  break;
        case 5: { bool _r = _t->loadPlugin((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 6: { bool _r = _t->unloadPlugin((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 7: _t->toggleCallMediaHandler((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[3]))); break;
        case 8: _t->toggleChatHandler((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[4]))); break;
        case 9: { VectorMapStringString _r = _t->getPluginPreferences((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])));
            if (_a[0]) *reinterpret_cast<VectorMapStringString*>(_a[0]) = std::move(_r); }  break;
        case 10: { bool _r = _t->setPluginPreference((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[4])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 11: { bool _r = _t->resetPluginPreferencesValues((*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 (PluginModel::*)(bool )>(_a, &PluginModel::chatHandlerStatusUpdated, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (PluginModel::*)()>(_a, &PluginModel::modelUpdated, 1))
            return;
    }
}

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

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

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

// SIGNAL 0
void lrc::api::PluginModel::chatHandlerStatusUpdated(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void lrc::api::PluginModel::modelUpdated()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
QT_WARNING_POP
