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

#include "../../../../kdbg/kdbg/dbgdriver.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 'dbgdriver.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.1. 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_ZN14DebuggerDriverE_t {};
} // unnamed namespace

template <> constexpr inline auto DebuggerDriver::qt_create_metaobjectdata<qt_meta_tag_ZN14DebuggerDriverE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "DebuggerDriver",
        "commandReceived",
        "",
        "CmdQueueItem*",
        "cmd",
        "const char*",
        "output",
        "activateFileLine",
        "file",
        "lineNo",
        "DbgAddr",
        "address",
        "inferiorRunning",
        "enterIdleState",
        "dequeueCmdByVar",
        "VarTree*",
        "var",
        "slotReceiveOutput",
        "slotCommandRead",
        "slotExited"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'commandReceived'
        QtMocHelpers::SignalData<void(CmdQueueItem *, const char *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 }, { 0x80000000 | 5, 6 },
        }}),
        // Signal 'activateFileLine'
        QtMocHelpers::SignalData<void(const QString &, int, const DbgAddr &)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 8 }, { QMetaType::Int, 9 }, { 0x80000000 | 10, 11 },
        }}),
        // Signal 'inferiorRunning'
        QtMocHelpers::SignalData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'enterIdleState'
        QtMocHelpers::SignalData<void()>(13, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'dequeueCmdByVar'
        QtMocHelpers::SlotData<void(VarTree *)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 15, 16 },
        }}),
        // Slot 'slotReceiveOutput'
        QtMocHelpers::SlotData<void()>(17, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'slotCommandRead'
        QtMocHelpers::SlotData<void()>(18, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'slotExited'
        QtMocHelpers::SlotData<void()>(19, 2, QMC::AccessProtected, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<DebuggerDriver, qt_meta_tag_ZN14DebuggerDriverE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject DebuggerDriver::staticMetaObject = { {
    QMetaObject::SuperData::link<QProcess::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14DebuggerDriverE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14DebuggerDriverE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN14DebuggerDriverE_t>.metaTypes,
    nullptr
} };

void DebuggerDriver::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<DebuggerDriver *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->commandReceived((*reinterpret_cast<std::add_pointer_t<CmdQueueItem*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<const char*>>(_a[2]))); break;
        case 1: _t->activateFileLine((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<DbgAddr>>(_a[3]))); break;
        case 2: _t->inferiorRunning(); break;
        case 3: _t->enterIdleState(); break;
        case 4: _t->dequeueCmdByVar((*reinterpret_cast<std::add_pointer_t<VarTree*>>(_a[1]))); break;
        case 5: _t->slotReceiveOutput(); break;
        case 6: _t->slotCommandRead(); break;
        case 7: _t->slotExited(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (DebuggerDriver::*)(CmdQueueItem * , const char * )>(_a, &DebuggerDriver::commandReceived, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (DebuggerDriver::*)(const QString & , int , const DbgAddr & )>(_a, &DebuggerDriver::activateFileLine, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (DebuggerDriver::*)()>(_a, &DebuggerDriver::inferiorRunning, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (DebuggerDriver::*)()>(_a, &DebuggerDriver::enterIdleState, 3))
            return;
    }
}

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

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

int DebuggerDriver::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QProcess::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)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 8;
    }
    return _id;
}

// SIGNAL 0
void DebuggerDriver::commandReceived(CmdQueueItem * _t1, const char * _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2);
}

// SIGNAL 1
void DebuggerDriver::activateFileLine(const QString & _t1, int _t2, const DbgAddr & _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2, _t3);
}

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

// SIGNAL 3
void DebuggerDriver::enterIdleState()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}
QT_WARNING_POP
