/****************************************************************************
** Meta object code from reading C++ file 'pacmanexec.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 "../../../octopi-0.18.1/src/pacmanexec.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 'pacmanexec.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_ZN10PacmanExecE_t {};
} // unnamed namespace

template <> constexpr inline auto PacmanExec::qt_create_metaobjectdata<qt_meta_tag_ZN10PacmanExecE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "PacmanExec",
        "percentage",
        "",
        "started",
        "readOutput",
        "readOutputError",
        "finished",
        "exitCode",
        "QProcess::ExitStatus",
        "textToPrintExt",
        "m_textToPrint",
        "canStopTransaction",
        "yesNo",
        "commandToExecInQTermWidget",
        "onStarted",
        "onReadOutput",
        "onReadOutputError",
        "onFinished"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'percentage'
        QtMocHelpers::SignalData<void(int)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Signal 'started'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'readOutput'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'readOutputError'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'finished'
        QtMocHelpers::SignalData<void(int, QProcess::ExitStatus)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 7 }, { 0x80000000 | 8, 2 },
        }}),
        // Signal 'textToPrintExt'
        QtMocHelpers::SignalData<void(QString)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 10 },
        }}),
        // Signal 'canStopTransaction'
        QtMocHelpers::SignalData<void(bool)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 12 },
        }}),
        // Signal 'commandToExecInQTermWidget'
        QtMocHelpers::SignalData<void(QString)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 2 },
        }}),
        // Slot 'onStarted'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onReadOutput'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onReadOutputError'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onFinished'
        QtMocHelpers::SlotData<void(int, QProcess::ExitStatus)>(17, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 7 }, { 0x80000000 | 8, 2 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<PacmanExec, qt_meta_tag_ZN10PacmanExecE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject PacmanExec::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10PacmanExecE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10PacmanExecE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10PacmanExecE_t>.metaTypes,
    nullptr
} };

void PacmanExec::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<PacmanExec *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->percentage((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 1: _t->started(); break;
        case 2: _t->readOutput(); break;
        case 3: _t->readOutputError(); break;
        case 4: _t->finished((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QProcess::ExitStatus>>(_a[2]))); break;
        case 5: _t->textToPrintExt((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 6: _t->canStopTransaction((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 7: _t->commandToExecInQTermWidget((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 8: _t->onStarted(); break;
        case 9: _t->onReadOutput(); break;
        case 10: _t->onReadOutputError(); break;
        case 11: _t->onFinished((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QProcess::ExitStatus>>(_a[2]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (PacmanExec::*)(int )>(_a, &PacmanExec::percentage, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (PacmanExec::*)()>(_a, &PacmanExec::started, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (PacmanExec::*)()>(_a, &PacmanExec::readOutput, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (PacmanExec::*)()>(_a, &PacmanExec::readOutputError, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (PacmanExec::*)(int , QProcess::ExitStatus )>(_a, &PacmanExec::finished, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (PacmanExec::*)(QString )>(_a, &PacmanExec::textToPrintExt, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (PacmanExec::*)(bool )>(_a, &PacmanExec::canStopTransaction, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (PacmanExec::*)(QString )>(_a, &PacmanExec::commandToExecInQTermWidget, 7))
            return;
    }
}

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

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

int PacmanExec::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::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 PacmanExec::percentage(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

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

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

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

// SIGNAL 4
void PacmanExec::finished(int _t1, QProcess::ExitStatus _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1, _t2);
}

// SIGNAL 5
void PacmanExec::textToPrintExt(QString _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}

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

// SIGNAL 7
void PacmanExec::commandToExecInQTermWidget(QString _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1);
}
QT_WARNING_POP
