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

template <> constexpr inline auto PluginStoreListModel::qt_create_metaobjectdata<qt_meta_tag_ZN20PluginStoreListModelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "PluginStoreListModel",
        "pluginAdded",
        "",
        "pluginId",
        "onVersionStatusChanged",
        "PluginStatus::Role",
        "status",
        "reset",
        "computeAverageColorOfImage",
        "QColor",
        "fileUrl"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'pluginAdded'
        QtMocHelpers::SignalData<void(const QString &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 },
        }}),
        // Slot 'onVersionStatusChanged'
        QtMocHelpers::SlotData<void(const QString &, PluginStatus::Role)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 }, { 0x80000000 | 5, 6 },
        }}),
        // Method 'reset'
        QtMocHelpers::MethodData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'computeAverageColorOfImage'
        QtMocHelpers::MethodData<QColor(const QString &)>(8, 2, QMC::AccessPublic, 0x80000000 | 9, {{
            { QMetaType::QString, 10 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<PluginStoreListModel, qt_meta_tag_ZN20PluginStoreListModelE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject PluginStoreListModel::staticMetaObject = { {
    QMetaObject::SuperData::link<AbstractListModelBase::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN20PluginStoreListModelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN20PluginStoreListModelE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN20PluginStoreListModelE_t>.metaTypes,
    nullptr
} };

void PluginStoreListModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<PluginStoreListModel *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->pluginAdded((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 1: _t->onVersionStatusChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<PluginStatus::Role>>(_a[2]))); break;
        case 2: _t->reset(); break;
        case 3: { QColor _r = _t->computeAverageColorOfImage((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QColor*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (PluginStoreListModel::*)(const QString & )>(_a, &PluginStoreListModel::pluginAdded, 0))
            return;
    }
}

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

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

int PluginStoreListModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = AbstractListModelBase::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 PluginStoreListModel::pluginAdded(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}
namespace {
struct qt_meta_tag_ZN15PluginStoreListE_t {};
} // unnamed namespace

template <> constexpr inline auto PluginStoreList::qt_create_metaobjectdata<qt_meta_tag_ZN15PluginStoreListE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "PluginStoreList",
        "Role",
        "DummyRole",
        "Id",
        "Name",
        "IconPath",
        "Background",
        "Description",
        "Status",
        "Author"
    };

    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::Id },
            {    4, Role::Name },
            {    5, Role::IconPath },
            {    6, Role::Background },
            {    7, Role::Description },
            {    8, Role::Status },
            {    9, Role::Author },
        }),
    };
    return QtMocHelpers::metaObjectData<void, qt_meta_tag_ZN15PluginStoreListE_t>(QMC::PropertyAccessInStaticMetaCall, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}

static constexpr auto qt_staticMetaObjectContent_ZN15PluginStoreListE =
    PluginStoreList::qt_create_metaobjectdata<qt_meta_tag_ZN15PluginStoreListE_t>();
static constexpr auto qt_staticMetaObjectStaticContent_ZN15PluginStoreListE =
    qt_staticMetaObjectContent_ZN15PluginStoreListE.staticData;
static constexpr auto qt_staticMetaObjectRelocatingContent_ZN15PluginStoreListE =
    qt_staticMetaObjectContent_ZN15PluginStoreListE.relocatingData;

Q_CONSTINIT const QMetaObject PluginStoreList::staticMetaObject = { {
    nullptr,
    qt_staticMetaObjectStaticContent_ZN15PluginStoreListE.stringdata,
    qt_staticMetaObjectStaticContent_ZN15PluginStoreListE.data,
    nullptr,
    nullptr,
    qt_staticMetaObjectRelocatingContent_ZN15PluginStoreListE.metaTypes,
    nullptr
} };

QT_WARNING_POP
