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

template <> constexpr inline auto Application::qt_create_metaobjectdata<qt_meta_tag_ZN11ApplicationE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Application",
        "updateAllowedChanged",
        "",
        "status",
        "globalSettingsAboutToOpen",
        "globalSettingsApplied",
        "currentCatChanged",
        "index",
        "oauthReplyRecieved",
        "QVariantMap",
        "launch",
        "BaseInstance*",
        "instance",
        "LaunchMode",
        "mode",
        "std::shared_ptr<MinecraftTarget>",
        "targetToJoin",
        "shared_qobject_ptr<MinecraftAccount>",
        "accountToUse",
        "offlineName",
        "kill",
        "closeCurrentWindow",
        "on_windowClose",
        "messageReceived",
        "message",
        "controllerFinished",
        "setupWizardFinished"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'updateAllowedChanged'
        QtMocHelpers::SignalData<void(bool)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 3 },
        }}),
        // Signal 'globalSettingsAboutToOpen'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'globalSettingsApplied'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'currentCatChanged'
        QtMocHelpers::SignalData<int(int)>(6, 2, QMC::AccessPublic, QMetaType::Int, {{
            { QMetaType::Int, 7 },
        }}),
        // Signal 'oauthReplyRecieved'
        QtMocHelpers::SignalData<void(QVariantMap)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 2 },
        }}),
        // Slot 'launch'
        QtMocHelpers::SlotData<bool(BaseInstance *, LaunchMode, std::shared_ptr<MinecraftTarget>, shared_qobject_ptr<MinecraftAccount>, const QString &)>(10, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 11, 12 }, { 0x80000000 | 13, 14 }, { 0x80000000 | 15, 16 }, { 0x80000000 | 17, 18 },
            { QMetaType::QString, 19 },
        }}),
        // Slot 'launch'
        QtMocHelpers::SlotData<bool(BaseInstance *, LaunchMode, std::shared_ptr<MinecraftTarget>, shared_qobject_ptr<MinecraftAccount>)>(10, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Bool, {{
            { 0x80000000 | 11, 12 }, { 0x80000000 | 13, 14 }, { 0x80000000 | 15, 16 }, { 0x80000000 | 17, 18 },
        }}),
        // Slot 'launch'
        QtMocHelpers::SlotData<bool(BaseInstance *, LaunchMode, std::shared_ptr<MinecraftTarget>)>(10, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Bool, {{
            { 0x80000000 | 11, 12 }, { 0x80000000 | 13, 14 }, { 0x80000000 | 15, 16 },
        }}),
        // Slot 'launch'
        QtMocHelpers::SlotData<bool(BaseInstance *, LaunchMode)>(10, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Bool, {{
            { 0x80000000 | 11, 12 }, { 0x80000000 | 13, 14 },
        }}),
        // Slot 'launch'
        QtMocHelpers::SlotData<bool(BaseInstance *)>(10, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Bool, {{
            { 0x80000000 | 11, 12 },
        }}),
        // Slot 'kill'
        QtMocHelpers::SlotData<bool(BaseInstance *)>(20, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 11, 12 },
        }}),
        // Slot 'closeCurrentWindow'
        QtMocHelpers::SlotData<void()>(21, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'on_windowClose'
        QtMocHelpers::SlotData<void()>(22, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'messageReceived'
        QtMocHelpers::SlotData<void(const QByteArray &)>(23, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QByteArray, 24 },
        }}),
        // Slot 'controllerFinished'
        QtMocHelpers::SlotData<void()>(25, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'setupWizardFinished'
        QtMocHelpers::SlotData<void(int)>(26, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 3 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<Application, qt_meta_tag_ZN11ApplicationE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Application::staticMetaObject = { {
    QMetaObject::SuperData::link<QApplication::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11ApplicationE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11ApplicationE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN11ApplicationE_t>.metaTypes,
    nullptr
} };

void Application::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Application *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->updateAllowedChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 1: _t->globalSettingsAboutToOpen(); break;
        case 2: _t->globalSettingsApplied(); break;
        case 3: { int _r = _t->currentCatChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 4: _t->oauthReplyRecieved((*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[1]))); break;
        case 5: { bool _r = _t->launch((*reinterpret_cast<std::add_pointer_t<BaseInstance*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<LaunchMode>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<std::shared_ptr<MinecraftTarget>>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<shared_qobject_ptr<MinecraftAccount>>>(_a[4])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[5])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 6: { bool _r = _t->launch((*reinterpret_cast<std::add_pointer_t<BaseInstance*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<LaunchMode>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<std::shared_ptr<MinecraftTarget>>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<shared_qobject_ptr<MinecraftAccount>>>(_a[4])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 7: { bool _r = _t->launch((*reinterpret_cast<std::add_pointer_t<BaseInstance*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<LaunchMode>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<std::shared_ptr<MinecraftTarget>>>(_a[3])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 8: { bool _r = _t->launch((*reinterpret_cast<std::add_pointer_t<BaseInstance*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<LaunchMode>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 9: { bool _r = _t->launch((*reinterpret_cast<std::add_pointer_t<BaseInstance*>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 10: { bool _r = _t->kill((*reinterpret_cast<std::add_pointer_t<BaseInstance*>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 11: _t->closeCurrentWindow(); break;
        case 12: _t->on_windowClose(); break;
        case 13: _t->messageReceived((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1]))); break;
        case 14: _t->controllerFinished(); break;
        case 15: _t->setupWizardFinished((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Application::*)(bool )>(_a, &Application::updateAllowedChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Application::*)()>(_a, &Application::globalSettingsAboutToOpen, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Application::*)()>(_a, &Application::globalSettingsApplied, 2))
            return;
        if (QtMocHelpers::indexOfMethod<int (Application::*)(int )>(_a, &Application::currentCatChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (Application::*)(QVariantMap )>(_a, &Application::oauthReplyRecieved, 4))
            return;
    }
}

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

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

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

// SIGNAL 0
void Application::updateAllowedChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Application::globalSettingsAboutToOpen()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void Application::globalSettingsApplied()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
int Application::currentCatChanged(int _t1)
{
    int _t0{};
    QMetaObject::activate<int>(this, &staticMetaObject, 3, std::addressof(_t0), _t1);
    return _t0;
}

// SIGNAL 4
void Application::oauthReplyRecieved(QVariantMap _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}
QT_WARNING_POP
