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

#include "../../../../PrismLauncher-11.0.2/launcher/minecraft/mod/tasks/GetModDependenciesTask.h"
#include <QtNetwork/QSslPreSharedKeyAuthenticator>
#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 'GetModDependenciesTask.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.0. 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_ZN22GetModDependenciesTaskE_t {};
} // unnamed namespace

template <> constexpr inline auto GetModDependenciesTask::qt_create_metaobjectdata<qt_meta_tag_ZN22GetModDependenciesTaskE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "GetModDependenciesTask",
        "prepareDependencyTask",
        "Task::Ptr",
        "",
        "ModPlatform::Dependency",
        "ModPlatform::ResourceProvider",
        "getDependenciesForVersion",
        "QList<ModPlatform::Dependency>",
        "ModPlatform::IndexedVersion",
        "providerName",
        "prepare",
        "getProjectInfoTask",
        "std::shared_ptr<PackDependency>",
        "pDep",
        "getOverride",
        "removePack",
        "QVariant",
        "addonId",
        "isLocalyInstalled",
        "maybeInstalled"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'prepareDependencyTask'
        QtMocHelpers::SlotData<Task::Ptr(const ModPlatform::Dependency &, ModPlatform::ResourceProvider, int)>(1, 3, QMC::AccessProtected, 0x80000000 | 2, {{
            { 0x80000000 | 4, 3 }, { 0x80000000 | 5, 3 }, { QMetaType::Int, 3 },
        }}),
        // Slot 'getDependenciesForVersion'
        QtMocHelpers::SlotData<QList<ModPlatform::Dependency>(const ModPlatform::IndexedVersion &, ModPlatform::ResourceProvider)>(6, 3, QMC::AccessProtected, 0x80000000 | 7, {{
            { 0x80000000 | 8, 3 }, { 0x80000000 | 5, 9 },
        }}),
        // Slot 'prepare'
        QtMocHelpers::SlotData<void()>(10, 3, QMC::AccessProtected, QMetaType::Void),
        // Slot 'getProjectInfoTask'
        QtMocHelpers::SlotData<Task::Ptr(std::shared_ptr<PackDependency>)>(11, 3, QMC::AccessProtected, 0x80000000 | 2, {{
            { 0x80000000 | 12, 13 },
        }}),
        // Slot 'getOverride'
        QtMocHelpers::SlotData<ModPlatform::Dependency(const ModPlatform::Dependency &, ModPlatform::ResourceProvider)>(14, 3, QMC::AccessProtected, 0x80000000 | 4, {{
            { 0x80000000 | 4, 3 }, { 0x80000000 | 5, 9 },
        }}),
        // Slot 'removePack'
        QtMocHelpers::SlotData<void(const QVariant &)>(15, 3, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 16, 17 },
        }}),
        // Slot 'isLocalyInstalled'
        QtMocHelpers::SlotData<bool(std::shared_ptr<PackDependency>)>(18, 3, QMC::AccessProtected, QMetaType::Bool, {{
            { 0x80000000 | 12, 13 },
        }}),
        // Slot 'maybeInstalled'
        QtMocHelpers::SlotData<bool(std::shared_ptr<PackDependency>)>(19, 3, QMC::AccessProtected, QMetaType::Bool, {{
            { 0x80000000 | 12, 13 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<GetModDependenciesTask, qt_meta_tag_ZN22GetModDependenciesTaskE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject GetModDependenciesTask::staticMetaObject = { {
    QMetaObject::SuperData::link<SequentialTask::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN22GetModDependenciesTaskE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN22GetModDependenciesTaskE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN22GetModDependenciesTaskE_t>.metaTypes,
    nullptr
} };

void GetModDependenciesTask::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<GetModDependenciesTask *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: { Task::Ptr _r = _t->prepareDependencyTask((*reinterpret_cast<std::add_pointer_t<ModPlatform::Dependency>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<ModPlatform::ResourceProvider>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3])));
            if (_a[0]) *reinterpret_cast<Task::Ptr*>(_a[0]) = std::move(_r); }  break;
        case 1: { QList<ModPlatform::Dependency> _r = _t->getDependenciesForVersion((*reinterpret_cast<std::add_pointer_t<ModPlatform::IndexedVersion>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<ModPlatform::ResourceProvider>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QList<ModPlatform::Dependency>*>(_a[0]) = std::move(_r); }  break;
        case 2: _t->prepare(); break;
        case 3: { Task::Ptr _r = _t->getProjectInfoTask((*reinterpret_cast<std::add_pointer_t<std::shared_ptr<PackDependency>>>(_a[1])));
            if (_a[0]) *reinterpret_cast<Task::Ptr*>(_a[0]) = std::move(_r); }  break;
        case 4: { ModPlatform::Dependency _r = _t->getOverride((*reinterpret_cast<std::add_pointer_t<ModPlatform::Dependency>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<ModPlatform::ResourceProvider>>(_a[2])));
            if (_a[0]) *reinterpret_cast<ModPlatform::Dependency*>(_a[0]) = std::move(_r); }  break;
        case 5: _t->removePack((*reinterpret_cast<std::add_pointer_t<QVariant>>(_a[1]))); break;
        case 6: { bool _r = _t->isLocalyInstalled((*reinterpret_cast<std::add_pointer_t<std::shared_ptr<PackDependency>>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 7: { bool _r = _t->maybeInstalled((*reinterpret_cast<std::add_pointer_t<std::shared_ptr<PackDependency>>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< ModPlatform::ResourceProvider >(); break;
            }
            break;
        case 1:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< ModPlatform::ResourceProvider >(); break;
            }
            break;
        case 4:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< ModPlatform::ResourceProvider >(); break;
            }
            break;
        }
    }
}

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

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

int GetModDependenciesTask::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = SequentialTask::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 8)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 8)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    }
    return _id;
}
QT_WARNING_POP
