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

#include <memory>
#include "../../syncthingprocess.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'syncthingprocess.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.19. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_Data__SyncthingProcess_t {
    QByteArrayData data[36];
    char stringdata0[491];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Data__SyncthingProcess_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Data__SyncthingProcess_t qt_meta_stringdata_Data__SyncthingProcess = {
    {
QT_MOC_LITERAL(0, 0, 22), // "Data::SyncthingProcess"
QT_MOC_LITERAL(1, 23, 7), // "started"
QT_MOC_LITERAL(2, 31, 0), // ""
QT_MOC_LITERAL(3, 32, 8), // "finished"
QT_MOC_LITERAL(4, 41, 8), // "exitCode"
QT_MOC_LITERAL(5, 50, 20), // "QProcess::ExitStatus"
QT_MOC_LITERAL(6, 71, 10), // "exitStatus"
QT_MOC_LITERAL(7, 82, 13), // "errorOccurred"
QT_MOC_LITERAL(8, 96, 22), // "QProcess::ProcessError"
QT_MOC_LITERAL(9, 119, 5), // "error"
QT_MOC_LITERAL(10, 125, 12), // "stateChanged"
QT_MOC_LITERAL(11, 138, 22), // "QProcess::ProcessState"
QT_MOC_LITERAL(12, 161, 8), // "newState"
QT_MOC_LITERAL(13, 170, 11), // "confirmKill"
QT_MOC_LITERAL(14, 182, 16), // "restartSyncthing"
QT_MOC_LITERAL(15, 199, 7), // "program"
QT_MOC_LITERAL(16, 207, 9), // "arguments"
QT_MOC_LITERAL(17, 217, 26), // "Data::SyncthingConnection*"
QT_MOC_LITERAL(18, 244, 17), // "currentConnection"
QT_MOC_LITERAL(19, 262, 14), // "startSyncthing"
QT_MOC_LITERAL(20, 277, 13), // "stopSyncthing"
QT_MOC_LITERAL(21, 291, 13), // "killSyncthing"
QT_MOC_LITERAL(22, 305, 9), // "terminate"
QT_MOC_LITERAL(23, 315, 4), // "kill"
QT_MOC_LITERAL(24, 320, 13), // "handleStarted"
QT_MOC_LITERAL(25, 334, 14), // "handleFinished"
QT_MOC_LITERAL(26, 349, 13), // "killToRestart"
QT_MOC_LITERAL(27, 363, 11), // "handleError"
QT_MOC_LITERAL(28, 375, 12), // "errorMessage"
QT_MOC_LITERAL(29, 388, 6), // "closed"
QT_MOC_LITERAL(30, 395, 12), // "bufferOutput"
QT_MOC_LITERAL(31, 408, 23), // "handleLeftoverProcesses"
QT_MOC_LITERAL(32, 432, 7), // "running"
QT_MOC_LITERAL(33, 440, 11), // "activeSince"
QT_MOC_LITERAL(34, 452, 22), // "CppUtilities::DateTime"
QT_MOC_LITERAL(35, 475, 15) // "manuallyStopped"

    },
    "Data::SyncthingProcess\0started\0\0"
    "finished\0exitCode\0QProcess::ExitStatus\0"
    "exitStatus\0errorOccurred\0"
    "QProcess::ProcessError\0error\0stateChanged\0"
    "QProcess::ProcessState\0newState\0"
    "confirmKill\0restartSyncthing\0program\0"
    "arguments\0Data::SyncthingConnection*\0"
    "currentConnection\0startSyncthing\0"
    "stopSyncthing\0killSyncthing\0terminate\0"
    "kill\0handleStarted\0handleFinished\0"
    "killToRestart\0handleError\0errorMessage\0"
    "closed\0bufferOutput\0handleLeftoverProcesses\0"
    "running\0activeSince\0CppUtilities::DateTime\0"
    "manuallyStopped"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Data__SyncthingProcess[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      19,   14, // methods
       3,  162, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       5,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,  109,    2, 0x06 /* Public */,
       3,    2,  110,    2, 0x06 /* Public */,
       7,    1,  115,    2, 0x06 /* Public */,
      10,    1,  118,    2, 0x06 /* Public */,
      13,    0,  121,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      14,    3,  122,    2, 0x0a /* Public */,
      14,    2,  129,    2, 0x2a /* Public | MethodCloned */,
      19,    2,  134,    2, 0x0a /* Public */,
      20,    1,  139,    2, 0x0a /* Public */,
      20,    0,  142,    2, 0x2a /* Public | MethodCloned */,
      21,    0,  143,    2, 0x0a /* Public */,
      22,    0,  144,    2, 0x0a /* Public */,
      23,    0,  145,    2, 0x0a /* Public */,
      24,    0,  146,    2, 0x08 /* Private */,
      25,    2,  147,    2, 0x08 /* Private */,
      26,    0,  152,    2, 0x08 /* Private */,
      27,    3,  153,    2, 0x08 /* Private */,
      30,    0,  160,    2, 0x08 /* Private */,
      31,    0,  161,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int, 0x80000000 | 5,    4,    6,
    QMetaType::Void, 0x80000000 | 8,    9,
    QMetaType::Void, 0x80000000 | 11,   12,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void, QMetaType::QString, QMetaType::QStringList, 0x80000000 | 17,   15,   16,   18,
    QMetaType::Void, QMetaType::QString, QMetaType::QStringList,   15,   16,
    QMetaType::Void, QMetaType::QString, QMetaType::QStringList,   15,   16,
    QMetaType::Void, 0x80000000 | 17,   18,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int, 0x80000000 | 5,    4,    6,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int, QMetaType::QString, QMetaType::Bool,    9,   28,   29,
    QMetaType::Void,
    QMetaType::Void,

 // properties: name, type, flags
      32, QMetaType::Bool, 0x00095001,
      33, 0x80000000 | 34, 0x00095009,
      35, QMetaType::Bool, 0x00095001,

       0        // eod
};

void Data::SyncthingProcess::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<SyncthingProcess *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->started(); break;
        case 1: _t->finished((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< QProcess::ExitStatus(*)>(_a[2]))); break;
        case 2: _t->errorOccurred((*reinterpret_cast< QProcess::ProcessError(*)>(_a[1]))); break;
        case 3: _t->stateChanged((*reinterpret_cast< QProcess::ProcessState(*)>(_a[1]))); break;
        case 4: _t->confirmKill(); break;
        case 5: _t->restartSyncthing((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QStringList(*)>(_a[2])),(*reinterpret_cast< Data::SyncthingConnection*(*)>(_a[3]))); break;
        case 6: _t->restartSyncthing((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QStringList(*)>(_a[2]))); break;
        case 7: _t->startSyncthing((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QStringList(*)>(_a[2]))); break;
        case 8: _t->stopSyncthing((*reinterpret_cast< 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< int(*)>(_a[1])),(*reinterpret_cast< QProcess::ExitStatus(*)>(_a[2]))); break;
        case 15: _t->killToRestart(); break;
        case 16: _t->handleError((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< bool(*)>(_a[3]))); break;
        case 17: _t->bufferOutput(); break;
        case 18: _t->handleLeftoverProcesses(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (SyncthingProcess::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SyncthingProcess::started)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (SyncthingProcess::*)(int , QProcess::ExitStatus );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SyncthingProcess::finished)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (SyncthingProcess::*)(QProcess::ProcessError );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SyncthingProcess::errorOccurred)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (SyncthingProcess::*)(QProcess::ProcessState );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SyncthingProcess::stateChanged)) {
                *result = 3;
                return;
            }
        }
        {
            using _t = void (SyncthingProcess::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SyncthingProcess::confirmKill)) {
                *result = 4;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<SyncthingProcess *>(_o);
        (void)_t;
        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;
        }
    } else if (_c == QMetaObject::WriteProperty) {
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject Data::SyncthingProcess::staticMetaObject = { {
    QMetaObject::SuperData::link<SyncthingProcessBase::staticMetaObject>(),
    qt_meta_stringdata_Data__SyncthingProcess.data,
    qt_meta_data_Data__SyncthingProcess,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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_meta_stringdata_Data__SyncthingProcess.stringdata0))
        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;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 19)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 19;
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 3;
    }
#endif // QT_NO_PROPERTIES
    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)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void Data::SyncthingProcess::errorOccurred(QProcess::ProcessError _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void Data::SyncthingProcess::stateChanged(QProcess::ProcessState _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}

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