/****************************************************************************
** Meta object code from reading C++ file 'pluginversionmanager.h'
**
** Created by: The Qt Meta Object Compiler version 69 (Qt 6.11.2)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../../jami-client-qt/src/app/pluginversionmanager.h"
#include <QtNetwork/QSslError>
#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 'pluginversionmanager.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.2. 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_ZN20PluginVersionManagerE_t {};
} // unnamed namespace

template <> constexpr inline auto PluginVersionManager::qt_create_metaobjectdata<qt_meta_tag_ZN20PluginVersionManagerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "PluginVersionManager",
        "versionStatusChanged",
        "",
        "pluginId",
        "PluginStatus::Role",
        "status",
        "newVersionAvailable",
        "version",
        "checkVersionStatus",
        "setAutoUpdate",
        "state",
        "isAutoUpdaterEnabled",
        "cancelUpdate"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'versionStatusChanged'
        QtMocHelpers::SignalData<void(const QString &, PluginStatus::Role)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 }, { 0x80000000 | 4, 5 },
        }}),
        // Signal 'newVersionAvailable'
        QtMocHelpers::SignalData<void(const QString &, const QString &)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 }, { QMetaType::QString, 7 },
        }}),
        // Slot 'checkVersionStatus'
        QtMocHelpers::SlotData<void(const QString &)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 },
        }}),
        // Slot 'setAutoUpdate'
        QtMocHelpers::SlotData<void(bool)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 10 },
        }}),
        // Method 'isAutoUpdaterEnabled'
        QtMocHelpers::MethodData<bool()>(11, 2, QMC::AccessPublic, QMetaType::Bool),
        // Method 'cancelUpdate'
        QtMocHelpers::MethodData<void(const QString &)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<PluginVersionManager, qt_meta_tag_ZN20PluginVersionManagerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject PluginVersionManager::staticMetaObject = { {
    QMetaObject::SuperData::link<NetworkManager::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN20PluginVersionManagerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN20PluginVersionManagerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN20PluginVersionManagerE_t>.metaTypes,
    nullptr
} };

void PluginVersionManager::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<PluginVersionManager *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->versionStatusChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<PluginStatus::Role>>(_a[2]))); break;
        case 1: _t->newVersionAvailable((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 2: _t->checkVersionStatus((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 3: _t->setAutoUpdate((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 4: { bool _r = _t->isAutoUpdaterEnabled();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 5: _t->cancelUpdate((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (PluginVersionManager::*)(const QString & , PluginStatus::Role )>(_a, &PluginVersionManager::versionStatusChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (PluginVersionManager::*)(const QString & , const QString & )>(_a, &PluginVersionManager::newVersionAvailable, 1))
            return;
    }
}

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

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

int PluginVersionManager::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = NetworkManager::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 6)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 6;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 6)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 6;
    }
    return _id;
}

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

// SIGNAL 1
void PluginVersionManager::newVersionAvailable(const QString & _t1, const QString & _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2);
}
namespace {
struct qt_meta_tag_ZN12PluginStatusE_t {};
} // unnamed namespace

template <> constexpr inline auto PluginStatus::qt_create_metaobjectdata<qt_meta_tag_ZN12PluginStatusE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "PluginStatus",
        "Role",
        "DummyRole",
        "INSTALLABLE",
        "DOWNLOADING",
        "INSTALLING",
        "INSTALLED",
        "FAILED",
        "UPDATABLE"
    };

    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::INSTALLABLE },
            {    4, Role::DOWNLOADING },
            {    5, Role::INSTALLING },
            {    6, Role::INSTALLED },
            {    7, Role::FAILED },
            {    8, Role::UPDATABLE },
        }),
    };
    return QtMocHelpers::metaObjectData<void, qt_meta_tag_ZN12PluginStatusE_t>(QMC::PropertyAccessInStaticMetaCall, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}

static constexpr auto qt_staticMetaObjectContent_ZN12PluginStatusE =
    PluginStatus::qt_create_metaobjectdata<qt_meta_tag_ZN12PluginStatusE_t>();
static constexpr auto qt_staticMetaObjectStaticContent_ZN12PluginStatusE =
    qt_staticMetaObjectContent_ZN12PluginStatusE.staticData;
static constexpr auto qt_staticMetaObjectRelocatingContent_ZN12PluginStatusE =
    qt_staticMetaObjectContent_ZN12PluginStatusE.relocatingData;

Q_CONSTINIT const QMetaObject PluginStatus::staticMetaObject = { {
    nullptr,
    qt_staticMetaObjectStaticContent_ZN12PluginStatusE.stringdata,
    qt_staticMetaObjectStaticContent_ZN12PluginStatusE.data,
    nullptr,
    nullptr,
    qt_staticMetaObjectRelocatingContent_ZN12PluginStatusE.metaTypes,
    nullptr
} };

QT_WARNING_POP
