/****************************************************************************
** Meta object code from reading C++ file 'debugger_frame.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/debugger_frame.h"
#include <QtGui/qtextcursor.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 'debugger_frame.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_ZN14debugger_frameE_t {};
} // unnamed namespace

template <> constexpr inline auto debugger_frame::qt_create_metaobjectdata<qt_meta_tag_ZN14debugger_frameE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "debugger_frame",
        "DebugFrameClosed",
        "",
        "CallStackUpdateRequested",
        "std::vector<std::pair<u32,u32>>",
        "call_stack",
        "DoStep",
        "step_over",
        "OnSelectUnit",
        "OnSelectSPUDisassembler",
        "OnRegsContextMenu",
        "QPoint",
        "pos",
        "ShowPC",
        "user_requested",
        "cpu_thread*",
        "cpu",
        "EnableUpdateTimer",
        "enable",
        "RunBtnPress",
        "RegsShowMemoryViewerAction"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'DebugFrameClosed'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'CallStackUpdateRequested'
        QtMocHelpers::SignalData<void(const std::vector<std::pair<u32,u32>> &)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 5 },
        }}),
        // Slot 'DoStep'
        QtMocHelpers::SlotData<void(bool)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 7 },
        }}),
        // Slot 'DoStep'
        QtMocHelpers::SlotData<void()>(6, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Slot 'OnSelectUnit'
        QtMocHelpers::SlotData<void()>(8, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'OnSelectSPUDisassembler'
        QtMocHelpers::SlotData<void()>(9, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'OnRegsContextMenu'
        QtMocHelpers::SlotData<void(const QPoint &)>(10, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 11, 12 },
        }}),
        // Slot 'ShowPC'
        QtMocHelpers::SlotData<void(bool, cpu_thread *)>(13, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Bool, 14 }, { 0x80000000 | 15, 16 },
        }}),
        // Slot 'ShowPC'
        QtMocHelpers::SlotData<void(bool)>(13, 2, QMC::AccessPrivate | QMC::MethodCloned, QMetaType::Void, {{
            { QMetaType::Bool, 14 },
        }}),
        // Slot 'ShowPC'
        QtMocHelpers::SlotData<void()>(13, 2, QMC::AccessPrivate | QMC::MethodCloned, QMetaType::Void),
        // Slot 'EnableUpdateTimer'
        QtMocHelpers::SlotData<void(bool) const>(17, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Bool, 18 },
        }}),
        // Slot 'RunBtnPress'
        QtMocHelpers::SlotData<void()>(19, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'RegsShowMemoryViewerAction'
        QtMocHelpers::SlotData<void()>(20, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<debugger_frame, qt_meta_tag_ZN14debugger_frameE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject debugger_frame::staticMetaObject = { {
    QMetaObject::SuperData::link<custom_dock_widget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14debugger_frameE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14debugger_frameE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN14debugger_frameE_t>.metaTypes,
    nullptr
} };

void debugger_frame::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<debugger_frame *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->DebugFrameClosed(); break;
        case 1: _t->CallStackUpdateRequested((*reinterpret_cast<std::add_pointer_t<std::vector<std::pair<u32,u32>>>>(_a[1]))); break;
        case 2: _t->DoStep((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 3: _t->DoStep(); break;
        case 4: _t->OnSelectUnit(); break;
        case 5: _t->OnSelectSPUDisassembler(); break;
        case 6: _t->OnRegsContextMenu((*reinterpret_cast<std::add_pointer_t<QPoint>>(_a[1]))); break;
        case 7: _t->ShowPC((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<cpu_thread*>>(_a[2]))); break;
        case 8: _t->ShowPC((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 9: _t->ShowPC(); break;
        case 10: _t->EnableUpdateTimer((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 11: _t->RunBtnPress(); break;
        case 12: _t->RegsShowMemoryViewerAction(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (debugger_frame::*)()>(_a, &debugger_frame::DebugFrameClosed, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (debugger_frame::*)(const std::vector<std::pair<u32,u32>> & )>(_a, &debugger_frame::CallStackUpdateRequested, 1))
            return;
    }
}

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

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

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

// SIGNAL 0
void debugger_frame::DebugFrameClosed()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void debugger_frame::CallStackUpdateRequested(const std::vector<std::pair<u32,u32>> & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}
QT_WARNING_POP
