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

#include "../../../../../../../syncthingtray/syncthingconnector/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.10.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",
        "confirmKill",
        "",
        "restartSyncthing",
        "program",
        "arguments",
        "Data::SyncthingConnection*",
        "currentConnection",
        "startSyncthing",
        "stopSyncthing",
        "killSyncthing",
        "handleStarted",
        "handleFinished",
        "exitCode",
        "QProcess::ExitStatus",
        "exitStatus",
        "killToRestart",
        "running",
        "activeSince",
        "CppUtilities::DateTime",
        "manuallyStopped"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'confirmKill'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'restartSyncthing'
        QtMocHelpers::SlotData<void(const QString &, const QStringList &, Data::SyncthingConnection *)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 4 }, { QMetaType::QStringList, 5 }, { 0x80000000 | 6, 7 },
        }}),
        // Slot 'restartSyncthing'
        QtMocHelpers::SlotData<void(const QString &, const QStringList &)>(3, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { QMetaType::QString, 4 }, { QMetaType::QStringList, 5 },
        }}),
        // Slot 'startSyncthing'
        QtMocHelpers::SlotData<void(const QString &, const QStringList &)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 4 }, { QMetaType::QStringList, 5 },
        }}),
        // Slot 'stopSyncthing'
        QtMocHelpers::SlotData<void(Data::SyncthingConnection *)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
        // Slot 'stopSyncthing'
        QtMocHelpers::SlotData<void()>(9, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Slot 'killSyncthing'
        QtMocHelpers::SlotData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'handleStarted'
        QtMocHelpers::SlotData<void()>(11, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'handleFinished'
        QtMocHelpers::SlotData<void(int, QProcess::ExitStatus)>(12, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 13 }, { 0x80000000 | 14, 15 },
        }}),
        // Slot 'killToRestart'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'running'
        QtMocHelpers::PropertyData<bool>(17, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'activeSince'
        QtMocHelpers::PropertyData<CppUtilities::DateTime>(18, 0x80000000 | 19, QMC::DefaultPropertyFlags | QMC::EnumOrFlag),
        // property 'manuallyStopped'
        QtMocHelpers::PropertyData<bool>(20, 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->confirmKill(); break;
        case 1: _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 2: _t->restartSyncthing((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QStringList>>(_a[2]))); break;
        case 3: _t->startSyncthing((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QStringList>>(_a[2]))); break;
        case 4: _t->stopSyncthing((*reinterpret_cast<std::add_pointer_t<Data::SyncthingConnection*>>(_a[1]))); break;
        case 5: _t->stopSyncthing(); break;
        case 6: _t->killSyncthing(); break;
        case 7: _t->handleStarted(); break;
        case 8: _t->handleFinished((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QProcess::ExitStatus>>(_a[2]))); break;
        case 9: _t->killToRestart(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (SyncthingProcess::*)()>(_a, &SyncthingProcess::confirmKill, 0))
            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 < 10)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 10)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 10;
    }
    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::confirmKill()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}
QT_WARNING_POP
