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

template <> constexpr inline auto PluginListModel::qt_create_metaobjectdata<qt_meta_tag_ZN15PluginListModelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "PluginListModel",
        "filterAccountChanged",
        "",
        "versionCheckRequested",
        "pluginId",
        "setVersionStatus",
        "PluginStatus::Role",
        "status",
        "autoUpdateChanged",
        "state",
        "disabled",
        "errorOccurred",
        "onVersionStatusChanged",
        "onNewVersionAvailable",
        "version",
        "reset",
        "removePlugin",
        "index",
        "pluginChanged",
        "addPlugin",
        "disableAllPlugins",
        "deleteLatestVersion",
        "filterAccount",
        "Role",
        "PluginName",
        "PluginDescription",
        "PluginId",
        "PluginVersion",
        "PluginAuthor",
        "PluginImage",
        "PluginIcon",
        "NewPluginAvailable",
        "IsLoaded",
        "Status",
        "Id"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'filterAccountChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'versionCheckRequested'
        QtMocHelpers::SignalData<void(const QString &)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 4 },
        }}),
        // Signal 'setVersionStatus'
        QtMocHelpers::SignalData<void(const QString &, PluginStatus::Role)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 4 }, { 0x80000000 | 6, 7 },
        }}),
        // Signal 'autoUpdateChanged'
        QtMocHelpers::SignalData<void(bool)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 9 },
        }}),
        // Signal 'disabled'
        QtMocHelpers::SignalData<void(const QString &)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 4 },
        }}),
        // Signal 'errorOccurred'
        QtMocHelpers::SignalData<void(const QString &)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 4 },
        }}),
        // Slot 'onVersionStatusChanged'
        QtMocHelpers::SlotData<void(const QString &, PluginStatus::Role)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 4 }, { 0x80000000 | 6, 7 },
        }}),
        // Slot 'onNewVersionAvailable'
        QtMocHelpers::SlotData<void(const QString &, const QString &)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 4 }, { QMetaType::QString, 14 },
        }}),
        // Method 'reset'
        QtMocHelpers::MethodData<void()>(15, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'removePlugin'
        QtMocHelpers::MethodData<void(int)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 17 },
        }}),
        // Method 'pluginChanged'
        QtMocHelpers::MethodData<void(int)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 17 },
        }}),
        // Method 'addPlugin'
        QtMocHelpers::MethodData<void()>(19, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'disableAllPlugins'
        QtMocHelpers::MethodData<void()>(20, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'deleteLatestVersion'
        QtMocHelpers::MethodData<void(const QString &)>(21, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 4 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'filterAccount'
        QtMocHelpers::PropertyData<bool>(22, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable, 0),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'Role'
        QtMocHelpers::EnumData<enum Role>(23, 23, QMC::EnumFlags{}).add({
            {   24, Role::PluginName },
            {   25, Role::PluginDescription },
            {   26, Role::PluginId },
            {   27, Role::PluginVersion },
            {   28, Role::PluginAuthor },
            {   29, Role::PluginImage },
            {   30, Role::PluginIcon },
            {   31, Role::NewPluginAvailable },
            {   32, Role::IsLoaded },
            {   33, Role::Status },
            {   34, Role::Id },
        }),
    };
    return QtMocHelpers::metaObjectData<PluginListModel, qt_meta_tag_ZN15PluginListModelE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject PluginListModel::staticMetaObject = { {
    QMetaObject::SuperData::link<AbstractListModelBase::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15PluginListModelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15PluginListModelE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN15PluginListModelE_t>.metaTypes,
    nullptr
} };

void PluginListModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<PluginListModel *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->filterAccountChanged(); break;
        case 1: _t->versionCheckRequested((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 2: _t->setVersionStatus((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<PluginStatus::Role>>(_a[2]))); break;
        case 3: _t->autoUpdateChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 4: _t->disabled((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 5: _t->errorOccurred((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 6: _t->onVersionStatusChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<PluginStatus::Role>>(_a[2]))); break;
        case 7: _t->onNewVersionAvailable((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 8: _t->reset(); break;
        case 9: _t->removePlugin((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 10: _t->pluginChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 11: _t->addPlugin(); break;
        case 12: _t->disableAllPlugins(); break;
        case 13: _t->deleteLatestVersion((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (PluginListModel::*)()>(_a, &PluginListModel::filterAccountChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (PluginListModel::*)(const QString & )>(_a, &PluginListModel::versionCheckRequested, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (PluginListModel::*)(const QString & , PluginStatus::Role )>(_a, &PluginListModel::setVersionStatus, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (PluginListModel::*)(bool )>(_a, &PluginListModel::autoUpdateChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (PluginListModel::*)(const QString & )>(_a, &PluginListModel::disabled, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (PluginListModel::*)(const QString & )>(_a, &PluginListModel::errorOccurred, 5))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->filterAccount_; break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0:
            if (QtMocHelpers::setProperty(_t->filterAccount_, *reinterpret_cast<bool*>(_v)))
                Q_EMIT _t->filterAccountChanged();
            break;
        default: break;
        }
    }
}

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

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

int PluginListModel::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 < 14)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 14;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 14)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 14;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 1;
    }
    return _id;
}

// SIGNAL 0
void PluginListModel::filterAccountChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void PluginListModel::versionCheckRequested(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void PluginListModel::setVersionStatus(const QString & _t1, PluginStatus::Role _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1, _t2);
}

// SIGNAL 3
void PluginListModel::autoUpdateChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void PluginListModel::disabled(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void PluginListModel::errorOccurred(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}
QT_WARNING_POP
