/****************************************************************************
** Meta object code from reading C++ file 'ResourcePage.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/ui/pages/modplatform/ResourcePage.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 'ResourcePage.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_ZN16ResourceDownload12ResourcePageE_t {};
} // unnamed namespace

template <> constexpr inline auto ResourceDownload::ResourcePage::qt_create_metaobjectdata<qt_meta_tag_ZN16ResourceDownload12ResourcePageE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "ResourceDownload::ResourcePage",
        "updateUi",
        "",
        "QModelIndex",
        "index",
        "updateSelectionButton",
        "versionListUpdated",
        "addResourceToDialog",
        "ModPlatform::IndexedPack::Ptr",
        "ModPlatform::IndexedVersion&",
        "removeResourceFromDialog",
        "pack_name",
        "removeResourceFromPage",
        "name",
        "addResourceToPage",
        "ResourceFolderModel*",
        "modelReset",
        "selectedPacks",
        "QList<DownloadTaskPtr>",
        "hasSelectedPacks",
        "openProject",
        "QVariant",
        "projectID",
        "triggerSearch",
        "onSelectionChanged",
        "first",
        "second",
        "onVersionSelectionChanged",
        "onResourceSelected",
        "onResourceToggle",
        "urlHandlers",
        "QMap<QString,QString>",
        "openUrl",
        "QUrl"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'updateUi'
        QtMocHelpers::SlotData<void(const QModelIndex &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Slot 'updateSelectionButton'
        QtMocHelpers::SlotData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'versionListUpdated'
        QtMocHelpers::SlotData<void(const QModelIndex &)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Slot 'addResourceToDialog'
        QtMocHelpers::SlotData<void(ModPlatform::IndexedPack::Ptr, ModPlatform::IndexedVersion &)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 2 }, { 0x80000000 | 9, 2 },
        }}),
        // Slot 'removeResourceFromDialog'
        QtMocHelpers::SlotData<void(const QString &)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 11 },
        }}),
        // Slot 'removeResourceFromPage'
        QtMocHelpers::SlotData<void(const QString &)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 13 },
        }}),
        // Slot 'addResourceToPage'
        QtMocHelpers::SlotData<void(ModPlatform::IndexedPack::Ptr, ModPlatform::IndexedVersion &, ResourceFolderModel *)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 2 }, { 0x80000000 | 9, 2 }, { 0x80000000 | 15, 2 },
        }}),
        // Slot 'modelReset'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'selectedPacks'
        QtMocHelpers::SlotData<QList<DownloadTaskPtr>()>(17, 2, QMC::AccessPublic, 0x80000000 | 18),
        // Slot 'hasSelectedPacks'
        QtMocHelpers::SlotData<bool()>(19, 2, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'openProject'
        QtMocHelpers::SlotData<void(QVariant)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 21, 22 },
        }}),
        // Slot 'triggerSearch'
        QtMocHelpers::SlotData<void()>(23, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'onSelectionChanged'
        QtMocHelpers::SlotData<void(QModelIndex, QModelIndex)>(24, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 3, 25 }, { 0x80000000 | 3, 26 },
        }}),
        // Slot 'onVersionSelectionChanged'
        QtMocHelpers::SlotData<void(int)>(27, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::Int, 4 },
        }}),
        // Slot 'onResourceSelected'
        QtMocHelpers::SlotData<void()>(28, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'onResourceToggle'
        QtMocHelpers::SlotData<void(const QModelIndex &)>(29, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Slot 'urlHandlers'
        QtMocHelpers::SlotData<QMap<QString,QString>() const>(30, 2, QMC::AccessProtected, 0x80000000 | 31),
        // Slot 'openUrl'
        QtMocHelpers::SlotData<void(const QUrl &)>(32, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 33, 2 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<ResourcePage, qt_meta_tag_ZN16ResourceDownload12ResourcePageE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject ResourceDownload::ResourcePage::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16ResourceDownload12ResourcePageE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16ResourceDownload12ResourcePageE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN16ResourceDownload12ResourcePageE_t>.metaTypes,
    nullptr
} };

void ResourceDownload::ResourcePage::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ResourcePage *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->updateUi((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1]))); break;
        case 1: _t->updateSelectionButton(); break;
        case 2: _t->versionListUpdated((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1]))); break;
        case 3: _t->addResourceToDialog((*reinterpret_cast<std::add_pointer_t<ModPlatform::IndexedPack::Ptr>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<ModPlatform::IndexedVersion&>>(_a[2]))); break;
        case 4: _t->removeResourceFromDialog((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 5: _t->removeResourceFromPage((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 6: _t->addResourceToPage((*reinterpret_cast<std::add_pointer_t<ModPlatform::IndexedPack::Ptr>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<ModPlatform::IndexedVersion&>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<ResourceFolderModel*>>(_a[3]))); break;
        case 7: _t->modelReset(); break;
        case 8: { QList<DownloadTaskPtr> _r = _t->selectedPacks();
            if (_a[0]) *reinterpret_cast<QList<DownloadTaskPtr>*>(_a[0]) = std::move(_r); }  break;
        case 9: { bool _r = _t->hasSelectedPacks();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 10: _t->openProject((*reinterpret_cast<std::add_pointer_t<QVariant>>(_a[1]))); break;
        case 11: _t->triggerSearch(); break;
        case 12: _t->onSelectionChanged((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[2]))); break;
        case 13: _t->onVersionSelectionChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 14: _t->onResourceSelected(); break;
        case 15: _t->onResourceToggle((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1]))); break;
        case 16: { QMap<QString,QString> _r = _t->urlHandlers();
            if (_a[0]) *reinterpret_cast<QMap<QString,QString>*>(_a[0]) = std::move(_r); }  break;
        case 17: _t->openUrl((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< ModPlatform::IndexedPack::Ptr >(); break;
            }
            break;
        case 6:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< ModPlatform::IndexedPack::Ptr >(); break;
            }
            break;
        }
    }
}

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

void *ResourceDownload::ResourcePage::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16ResourceDownload12ResourcePageE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "BasePage"))
        return static_cast< BasePage*>(this);
    return QWidget::qt_metacast(_clname);
}

int ResourceDownload::ResourcePage::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidget::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)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 18;
    }
    return _id;
}
QT_WARNING_POP
