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

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

template <> constexpr inline auto Data::SyncthingProcess::qt_create_metaobjectdata<qt_meta_tag_ZN4Data16SyncthingProcessE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Data::SyncthingProcess",
        "started",
        "",
        "finished",
        "exitCode",
        "QProcess::ExitStatus",
        "exitStatus",
        "errorOccurred",
        "QProcess::ProcessError",
        "error",
        "stateChanged",
        "QProcess::ProcessState",
        "newState",
        "confirmKill",
        "restartSyncthing",
        "program",
        "arguments",
        "Data::SyncthingConnection*",
        "currentConnection",
        "startSyncthing",
        "stopSyncthing",
        "killSyncthing",
        "terminate",
        "kill",
        "handleStarted",
        "handleFinished",
        "killToRestart",
        "handleError",
        "errorMessage",
        "closed",
        "bufferOutput",
        "handleLeftoverProcesses",
        "running",
        "activeSince",
        "CppUtilities::DateTime",
        "manuallyStopped"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'started'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'finished'
        QtMocHelpers::SignalData<void(int, QProcess::ExitStatus)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 4 }, { 0x80000000 | 5, 6 },
        }}),
        // Signal 'errorOccurred'
        QtMocHelpers::SignalData<void(QProcess::ProcessError)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 },
        }}),
        // Signal 'stateChanged'
        QtMocHelpers::SignalData<void(QProcess::ProcessState)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 11, 12 },
        }}),
        // Signal 'confirmKill'
        QtMocHelpers::SignalData<void()>(13, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'restartSyncthing'
        QtMocHelpers::SlotData<void(const QString &, const QStringList &, Data::SyncthingConnection *)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 15 }, { QMetaType::QStringList, 16 }, { 0x80000000 | 17, 18 },
        }}),
        // Slot 'restartSyncthing'
        QtMocHelpers::SlotData<void(const QString &, const QStringList &)>(14, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { QMetaType::QString, 15 }, { QMetaType::QStringList, 16 },
        }}),
        // Slot 'startSyncthing'
        QtMocHelpers::SlotData<void(const QString &, const QStringList &)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 15 }, { QMetaType::QStringList, 16 },
        }}),
        // Slot 'stopSyncthing'
        QtMocHelpers::SlotData<void(Data::SyncthingConnection *)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 17, 18 },
        }}),
        // Slot 'stopSyncthing'
        QtMocHelpers::SlotData<void()>(20, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Slot 'killSyncthing'
        QtMocHelpers::SlotData<void()>(21, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'terminate'
        QtMocHelpers::SlotData<void()>(22, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'kill'
        QtMocHelpers::SlotData<void()>(23, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'handleStarted'
        QtMocHelpers::SlotData<void()>(24, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'handleFinished'
        QtMocHelpers::SlotData<void(int, QProcess::ExitStatus)>(25, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 4 }, { 0x80000000 | 5, 6 },
        }}),
        // Slot 'killToRestart'
        QtMocHelpers::SlotData<void()>(26, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'handleError'
        QtMocHelpers::SlotData<void(int, const QString &, bool)>(27, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 9 }, { QMetaType::QString, 28 }, { QMetaType::Bool, 29 },
        }}),
        // Slot 'bufferOutput'
        QtMocHelpers::SlotData<void()>(30, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'handleLeftoverProcesses'
        QtMocHelpers::SlotData<void()>(31, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'running'
        QtMocHelpers::PropertyData<bool>(32, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'activeSince'
        QtMocHelpers::PropertyData<CppUtilities::DateTime>(33, 0x80000000 | 34, QMC::DefaultPropertyFlags | QMC::EnumOrFlag),
        // property 'manuallyStopped'
        QtMocHelpers::PropertyData<bool>(35, QMetaType::Bool, QMC::DefaultPropertyFlags),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<SyncthingProcess, qt_meta_tag_ZN4Data16SyncthingProcessE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Data::SyncthingProcess::staticMetaObject = { {
    QMetaObject::SuperData::link<SyncthingProcessBase::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4Data16SyncthingProcessE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4Data16SyncthingProcessE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN4Data16SyncthingProcessE_t>.metaTypes,
    nullptr
} };

void Data::SyncthingProcess::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<SyncthingProcess *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->started(); break;
        case 1: _t->finished((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QProcess::ExitStatus>>(_a[2]))); break;
        case 2: _t->errorOccurred((*reinterpret_cast<std::add_pointer_t<QProcess::ProcessError>>(_a[1]))); break;
        case 3: _t->stateChanged((*reinterpret_cast<std::add_pointer_t<QProcess::ProcessState>>(_a[1]))); break;
        case 4: _t->confirmKill(); break;
        case 5: _t->restartSyncthing((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QStringList>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<Data::SyncthingConnection*>>(_a[3]))); break;
        case 6: _t->restartSyncthing((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QStringList>>(_a[2]))); break;
        case 7: _t->startSyncthing((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QStringList>>(_a[2]))); break;
        case 8: _t->stopSyncthing((*reinterpret_cast<std::add_pointer_t<Data::SyncthingConnection*>>(_a[1]))); break;
        case 9: _t->stopSyncthing(); break;
        case 10: _t->killSyncthing(); break;
        case 11: _t->terminate(); break;
        case 12: _t->kill(); break;
        case 13: _t->handleStarted(); break;
        case 14: _t->handleFinished((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QProcess::ExitStatus>>(_a[2]))); break;
        case 15: _t->killToRestart(); break;
        case 16: _t->handleError((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[3]))); break;
        case 17: _t->bufferOutput(); break;
        case 18: _t->handleLeftoverProcesses(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (SyncthingProcess::*)()>(_a, &SyncthingProcess::started, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (SyncthingProcess::*)(int , QProcess::ExitStatus )>(_a, &SyncthingProcess::finished, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (SyncthingProcess::*)(QProcess::ProcessError )>(_a, &SyncthingProcess::errorOccurred, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (SyncthingProcess::*)(QProcess::ProcessState )>(_a, &SyncthingProcess::stateChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (SyncthingProcess::*)()>(_a, &SyncthingProcess::confirmKill, 4))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->isRunning(); break;
        case 1: *reinterpret_cast<CppUtilities::DateTime*>(_v) = _t->activeSince(); break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->isManuallyStopped(); break;
        default: break;
        }
    }
}

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

void *Data::SyncthingProcess::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4Data16SyncthingProcessE_t>.strings))
        return static_cast<void*>(this);
    return SyncthingProcessBase::qt_metacast(_clname);
}

int Data::SyncthingProcess::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = SyncthingProcessBase::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 19)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 19;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 19)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 19;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    }
    return _id;
}

// SIGNAL 0
void Data::SyncthingProcess::started()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

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

// SIGNAL 2
void Data::SyncthingProcess::errorOccurred(QProcess::ProcessError _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void Data::SyncthingProcess::stateChanged(QProcess::ProcessState _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void Data::SyncthingProcess::confirmKill()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}
QT_WARNING_POP
