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

template <> constexpr inline auto PluginAdapter::qt_create_metaobjectdata<qt_meta_tag_ZN13PluginAdapterE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "PluginAdapter",
        "QML.Singleton",
        "true",
        "callMediaHandlersListCountChanged",
        "",
        "chatHandlersListCountChanged",
        "storeNotAvailable",
        "storeNotAvailableForPlatform",
        "getPluginsFromStore",
        "getPluginDetails",
        "pluginId",
        "installRemotePlugin",
        "baseUrl",
        "checkVersionStatus",
        "isAutoUpdaterEnabled",
        "cancelDownload",
        "setAutoUpdate",
        "state",
        "getIconUrl",
        "getBackgroundImageUrl",
        "getMediaHandlerSelectableModel",
        "QVariant",
        "callId",
        "getChatHandlerSelectableModel",
        "accountId",
        "peerId",
        "getPluginPreferencesCategories",
        "removeLast",
        "callMediaHandlersListCount",
        "chatHandlersListCount"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'callMediaHandlersListCountChanged'
        QtMocHelpers::SignalData<void()>(3, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'chatHandlersListCountChanged'
        QtMocHelpers::SignalData<void()>(5, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'storeNotAvailable'
        QtMocHelpers::SignalData<void()>(6, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'storeNotAvailableForPlatform'
        QtMocHelpers::SignalData<void()>(7, 4, QMC::AccessPublic, QMetaType::Void),
        // Method 'getPluginsFromStore'
        QtMocHelpers::MethodData<void()>(8, 4, QMC::AccessPublic, QMetaType::Void),
        // Method 'getPluginDetails'
        QtMocHelpers::MethodData<void(const QString &)>(9, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 10 },
        }}),
        // Method 'installRemotePlugin'
        QtMocHelpers::MethodData<void(const QString &)>(11, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 10 },
        }}),
        // Method 'baseUrl'
        QtMocHelpers::MethodData<QString() const>(12, 4, QMC::AccessPublic, QMetaType::QString),
        // Method 'checkVersionStatus'
        QtMocHelpers::MethodData<void(const QString &)>(13, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 10 },
        }}),
        // Method 'isAutoUpdaterEnabled'
        QtMocHelpers::MethodData<bool()>(14, 4, QMC::AccessPublic, QMetaType::Bool),
        // Method 'cancelDownload'
        QtMocHelpers::MethodData<void(const QString &)>(15, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 10 },
        }}),
        // Method 'setAutoUpdate'
        QtMocHelpers::MethodData<void(bool)>(16, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 17 },
        }}),
        // Method 'getIconUrl'
        QtMocHelpers::MethodData<QString(const QString &) const>(18, 4, QMC::AccessPublic, QMetaType::QString, {{
            { QMetaType::QString, 10 },
        }}),
        // Method 'getBackgroundImageUrl'
        QtMocHelpers::MethodData<QString(const QString &) const>(19, 4, QMC::AccessPublic, QMetaType::QString, {{
            { QMetaType::QString, 10 },
        }}),
        // Method 'getMediaHandlerSelectableModel'
        QtMocHelpers::MethodData<QVariant(const QString &)>(20, 4, QMC::AccessProtected, 0x80000000 | 21, {{
            { QMetaType::QString, 22 },
        }}),
        // Method 'getChatHandlerSelectableModel'
        QtMocHelpers::MethodData<QVariant(const QString &, const QString &)>(23, 4, QMC::AccessProtected, 0x80000000 | 21, {{
            { QMetaType::QString, 24 }, { QMetaType::QString, 25 },
        }}),
        // Method 'getPluginPreferencesCategories'
        QtMocHelpers::MethodData<QVariant(const QString &, const QString &, bool)>(26, 4, QMC::AccessProtected, 0x80000000 | 21, {{
            { QMetaType::QString, 10 }, { QMetaType::QString, 24 }, { QMetaType::Bool, 27 },
        }}),
        // Method 'getPluginPreferencesCategories'
        QtMocHelpers::MethodData<QVariant(const QString &, const QString &)>(26, 4, QMC::AccessProtected | QMC::MethodCloned, 0x80000000 | 21, {{
            { QMetaType::QString, 10 }, { QMetaType::QString, 24 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'callMediaHandlersListCount'
        QtMocHelpers::PropertyData<int>(28, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable, 0),
        // property 'chatHandlersListCount'
        QtMocHelpers::PropertyData<int>(29, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable, 1),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<PluginAdapter, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject PluginAdapter::staticMetaObject = { {
    QMetaObject::SuperData::link<QmlAdapterBase::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13PluginAdapterE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13PluginAdapterE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN13PluginAdapterE_t>.metaTypes,
    nullptr
} };

void PluginAdapter::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<PluginAdapter *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->callMediaHandlersListCountChanged(); break;
        case 1: _t->chatHandlersListCountChanged(); break;
        case 2: _t->storeNotAvailable(); break;
        case 3: _t->storeNotAvailableForPlatform(); break;
        case 4: _t->getPluginsFromStore(); break;
        case 5: _t->getPluginDetails((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 6: _t->installRemotePlugin((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 7: { QString _r = _t->baseUrl();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 8: _t->checkVersionStatus((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 9: { bool _r = _t->isAutoUpdaterEnabled();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 10: _t->cancelDownload((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 11: _t->setAutoUpdate((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 12: { QString _r = _t->getIconUrl((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 13: { QString _r = _t->getBackgroundImageUrl((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 14: { QVariant _r = _t->getMediaHandlerSelectableModel((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QVariant*>(_a[0]) = std::move(_r); }  break;
        case 15: { QVariant _r = _t->getChatHandlerSelectableModel((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QVariant*>(_a[0]) = std::move(_r); }  break;
        case 16: { QVariant _r = _t->getPluginPreferencesCategories((*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])));
            if (_a[0]) *reinterpret_cast<QVariant*>(_a[0]) = std::move(_r); }  break;
        case 17: { QVariant _r = _t->getPluginPreferencesCategories((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QVariant*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (PluginAdapter::*)()>(_a, &PluginAdapter::callMediaHandlersListCountChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (PluginAdapter::*)()>(_a, &PluginAdapter::chatHandlersListCountChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (PluginAdapter::*)()>(_a, &PluginAdapter::storeNotAvailable, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (PluginAdapter::*)()>(_a, &PluginAdapter::storeNotAvailableForPlatform, 3))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<int*>(_v) = _t->callMediaHandlersListCount_; break;
        case 1: *reinterpret_cast<int*>(_v) = _t->chatHandlersListCount_; break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0:
            if (QtMocHelpers::setProperty(_t->callMediaHandlersListCount_, *reinterpret_cast<int*>(_v)))
                Q_EMIT _t->callMediaHandlersListCountChanged();
            break;
        case 1:
            if (QtMocHelpers::setProperty(_t->chatHandlersListCount_, *reinterpret_cast<int*>(_v)))
                Q_EMIT _t->chatHandlersListCountChanged();
            break;
        default: break;
        }
    }
}

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

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

int PluginAdapter::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QmlAdapterBase::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 18)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 18;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 18)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 18;
    }
    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 PluginAdapter::callMediaHandlersListCountChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

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

// SIGNAL 2
void PluginAdapter::storeNotAvailable()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

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