/****************************************************************************
** Meta object code from reading C++ file 'gui_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 "../../../../../rpcs3/rpcs3/rpcs3qt/gui_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 'gui_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_ZN15gui_applicationE_t {};
} // unnamed namespace

template <> constexpr inline auto gui_application::qt_create_metaobjectdata<qt_meta_tag_ZN15gui_applicationE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "gui_application",
        "OnEmulatorRun",
        "",
        "start_playtime",
        "OnEmulatorPause",
        "OnEmulatorResume",
        "OnEmulatorStop",
        "OnEmulatorReady",
        "OnEnableDiscEject",
        "enabled",
        "OnEnableDiscInsert",
        "RequestCallFromMainThread",
        "std::function<void()>",
        "func",
        "atomic_t<u32>*",
        "wake_up",
        "OnChangeStyleSheetRequest",
        "OnShortcutChange",
        "OnAppStateChanged",
        "Qt::ApplicationState",
        "state",
        "CallFromMainThread"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'OnEmulatorRun'
        QtMocHelpers::SignalData<void(bool)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 3 },
        }}),
        // Signal 'OnEmulatorPause'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'OnEmulatorResume'
        QtMocHelpers::SignalData<void(bool)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 3 },
        }}),
        // Signal 'OnEmulatorStop'
        QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'OnEmulatorReady'
        QtMocHelpers::SignalData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'OnEnableDiscEject'
        QtMocHelpers::SignalData<void(bool)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 9 },
        }}),
        // Signal 'OnEnableDiscInsert'
        QtMocHelpers::SignalData<void(bool)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 9 },
        }}),
        // Signal 'RequestCallFromMainThread'
        QtMocHelpers::SignalData<void(std::function<void()>, atomic_t<u32> *)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 12, 13 }, { 0x80000000 | 14, 15 },
        }}),
        // Slot 'OnChangeStyleSheetRequest'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'OnShortcutChange'
        QtMocHelpers::SlotData<void()>(17, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'OnAppStateChanged'
        QtMocHelpers::SlotData<void(Qt::ApplicationState)>(18, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 19, 20 },
        }}),
        // Slot 'CallFromMainThread'
        QtMocHelpers::SlotData<void(const std::function<void()> &, atomic_t<u32> *)>(21, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 12, 13 }, { 0x80000000 | 14, 15 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<gui_application, qt_meta_tag_ZN15gui_applicationE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject gui_application::staticMetaObject = { {
    QMetaObject::SuperData::link<QApplication::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15gui_applicationE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15gui_applicationE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN15gui_applicationE_t>.metaTypes,
    nullptr
} };

void gui_application::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<gui_application *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->OnEmulatorRun((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 1: _t->OnEmulatorPause(); break;
        case 2: _t->OnEmulatorResume((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 3: _t->OnEmulatorStop(); break;
        case 4: _t->OnEmulatorReady(); break;
        case 5: _t->OnEnableDiscEject((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 6: _t->OnEnableDiscInsert((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 7: _t->RequestCallFromMainThread((*reinterpret_cast<std::add_pointer_t<std::function<void()>>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<atomic_t<u32>*>>(_a[2]))); break;
        case 8: _t->OnChangeStyleSheetRequest(); break;
        case 9: _t->OnShortcutChange(); break;
        case 10: _t->OnAppStateChanged((*reinterpret_cast<std::add_pointer_t<Qt::ApplicationState>>(_a[1]))); break;
        case 11: _t->CallFromMainThread((*reinterpret_cast<std::add_pointer_t<std::function<void()>>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<atomic_t<u32>*>>(_a[2]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (gui_application::*)(bool )>(_a, &gui_application::OnEmulatorRun, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (gui_application::*)()>(_a, &gui_application::OnEmulatorPause, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (gui_application::*)(bool )>(_a, &gui_application::OnEmulatorResume, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (gui_application::*)()>(_a, &gui_application::OnEmulatorStop, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (gui_application::*)()>(_a, &gui_application::OnEmulatorReady, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (gui_application::*)(bool )>(_a, &gui_application::OnEnableDiscEject, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (gui_application::*)(bool )>(_a, &gui_application::OnEnableDiscInsert, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (gui_application::*)(std::function<void()> , atomic_t<u32> * )>(_a, &gui_application::RequestCallFromMainThread, 7))
            return;
    }
}

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

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

int gui_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 < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 12)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 12;
    }
    return _id;
}

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

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

// SIGNAL 2
void gui_application::OnEmulatorResume(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void gui_application::OnEmulatorStop()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void gui_application::OnEmulatorReady()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void gui_application::OnEnableDiscEject(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}

// SIGNAL 6
void gui_application::OnEnableDiscInsert(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1);
}

// SIGNAL 7
void gui_application::RequestCallFromMainThread(std::function<void()> _t1, atomic_t<u32> * _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1, _t2);
}
QT_WARNING_POP
