/****************************************************************************
** Meta object code from reading C++ file 'syncthinglauncher.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 "../../misc/syncthinglauncher.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'syncthinglauncher.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__SyncthingLauncher_t {
    QByteArrayData data[54];
    char stringdata0[804];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Data__SyncthingLauncher_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Data__SyncthingLauncher_t qt_meta_stringdata_Data__SyncthingLauncher = {
    {
QT_MOC_LITERAL(0, 0, 23), // "Data::SyncthingLauncher"
QT_MOC_LITERAL(1, 24, 11), // "confirmKill"
QT_MOC_LITERAL(2, 36, 0), // ""
QT_MOC_LITERAL(3, 37, 14), // "runningChanged"
QT_MOC_LITERAL(4, 52, 9), // "isRunning"
QT_MOC_LITERAL(5, 62, 15), // "startingChanged"
QT_MOC_LITERAL(6, 78, 15), // "outputAvailable"
QT_MOC_LITERAL(7, 94, 4), // "data"
QT_MOC_LITERAL(8, 99, 10), // "exitLogged"
QT_MOC_LITERAL(9, 110, 16), // "std::string_view"
QT_MOC_LITERAL(10, 127, 11), // "exitMessage"
QT_MOC_LITERAL(11, 139, 6), // "exited"
QT_MOC_LITERAL(12, 146, 8), // "exitCode"
QT_MOC_LITERAL(13, 155, 20), // "QProcess::ExitStatus"
QT_MOC_LITERAL(14, 176, 10), // "exitStatus"
QT_MOC_LITERAL(15, 187, 13), // "errorOccurred"
QT_MOC_LITERAL(16, 201, 22), // "QProcess::ProcessError"
QT_MOC_LITERAL(17, 224, 5), // "error"
QT_MOC_LITERAL(18, 230, 13), // "guiUrlChanged"
QT_MOC_LITERAL(19, 244, 6), // "newUrl"
QT_MOC_LITERAL(20, 251, 31), // "networkConnectionMeteredChanged"
QT_MOC_LITERAL(21, 283, 19), // "std::optional<bool>"
QT_MOC_LITERAL(22, 303, 9), // "isMetered"
QT_MOC_LITERAL(23, 313, 6), // "launch"
QT_MOC_LITERAL(24, 320, 7), // "program"
QT_MOC_LITERAL(25, 328, 9), // "arguments"
QT_MOC_LITERAL(26, 338, 18), // "Settings::Launcher"
QT_MOC_LITERAL(27, 357, 16), // "launcherSettings"
QT_MOC_LITERAL(28, 374, 9), // "terminate"
QT_MOC_LITERAL(29, 384, 26), // "Data::SyncthingConnection*"
QT_MOC_LITERAL(30, 411, 18), // "relevantConnection"
QT_MOC_LITERAL(31, 430, 4), // "kill"
QT_MOC_LITERAL(32, 435, 20), // "tearDownLibSyncthing"
QT_MOC_LITERAL(33, 456, 16), // "stopLibSyncthing"
QT_MOC_LITERAL(34, 473, 22), // "handleProcessReadyRead"
QT_MOC_LITERAL(35, 496, 25), // "handleProcessStateChanged"
QT_MOC_LITERAL(36, 522, 22), // "QProcess::ProcessState"
QT_MOC_LITERAL(37, 545, 8), // "newState"
QT_MOC_LITERAL(38, 554, 21), // "handleProcessFinished"
QT_MOC_LITERAL(39, 576, 21), // "handleOutputAvailable"
QT_MOC_LITERAL(40, 598, 8), // "logLevel"
QT_MOC_LITERAL(41, 607, 7), // "running"
QT_MOC_LITERAL(42, 615, 8), // "starting"
QT_MOC_LITERAL(43, 624, 11), // "activeSince"
QT_MOC_LITERAL(44, 636, 22), // "CppUtilities::DateTime"
QT_MOC_LITERAL(45, 659, 15), // "manuallyStopped"
QT_MOC_LITERAL(46, 675, 14), // "emittingOutput"
QT_MOC_LITERAL(47, 690, 24), // "networkConnectionMetered"
QT_MOC_LITERAL(48, 715, 13), // "meteredStatus"
QT_MOC_LITERAL(49, 729, 13), // "runningStatus"
QT_MOC_LITERAL(50, 743, 27), // "stoppingOnMeteredConnection"
QT_MOC_LITERAL(51, 771, 6), // "guiUrl"
QT_MOC_LITERAL(52, 778, 7), // "process"
QT_MOC_LITERAL(53, 786, 17) // "SyncthingProcess*"

    },
    "Data::SyncthingLauncher\0confirmKill\0"
    "\0runningChanged\0isRunning\0startingChanged\0"
    "outputAvailable\0data\0exitLogged\0"
    "std::string_view\0exitMessage\0exited\0"
    "exitCode\0QProcess::ExitStatus\0exitStatus\0"
    "errorOccurred\0QProcess::ProcessError\0"
    "error\0guiUrlChanged\0newUrl\0"
    "networkConnectionMeteredChanged\0"
    "std::optional<bool>\0isMetered\0launch\0"
    "program\0arguments\0Settings::Launcher\0"
    "launcherSettings\0terminate\0"
    "Data::SyncthingConnection*\0"
    "relevantConnection\0kill\0tearDownLibSyncthing\0"
    "stopLibSyncthing\0handleProcessReadyRead\0"
    "handleProcessStateChanged\0"
    "QProcess::ProcessState\0newState\0"
    "handleProcessFinished\0handleOutputAvailable\0"
    "logLevel\0running\0starting\0activeSince\0"
    "CppUtilities::DateTime\0manuallyStopped\0"
    "emittingOutput\0networkConnectionMetered\0"
    "meteredStatus\0runningStatus\0"
    "stoppingOnMeteredConnection\0guiUrl\0"
    "process\0SyncthingProcess*"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Data__SyncthingLauncher[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      20,   14, // methods
      11,  168, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       9,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,  114,    2, 0x06 /* Public */,
       3,    1,  115,    2, 0x06 /* Public */,
       5,    0,  118,    2, 0x06 /* Public */,
       6,    1,  119,    2, 0x06 /* Public */,
       8,    1,  122,    2, 0x06 /* Public */,
      11,    2,  125,    2, 0x06 /* Public */,
      15,    1,  130,    2, 0x06 /* Public */,
      18,    1,  133,    2, 0x06 /* Public */,
      20,    1,  136,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      23,    2,  139,    2, 0x0a /* Public */,
      23,    1,  144,    2, 0x0a /* Public */,
      28,    1,  147,    2, 0x0a /* Public */,
      28,    0,  150,    2, 0x2a /* Public | MethodCloned */,
      31,    0,  151,    2, 0x0a /* Public */,
      32,    0,  152,    2, 0x0a /* Public */,
      33,    0,  153,    2, 0x0a /* Public */,
      34,    0,  154,    2, 0x08 /* Private */,
      35,    1,  155,    2, 0x08 /* Private */,
      38,    2,  158,    2, 0x08 /* Private */,
      39,    2,  163,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,    4,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QByteArray,    7,
    QMetaType::Void, 0x80000000 | 9,   10,
    QMetaType::Void, QMetaType::Int, 0x80000000 | 13,   12,   14,
    QMetaType::Void, 0x80000000 | 16,   17,
    QMetaType::Void, QMetaType::QUrl,   19,
    QMetaType::Void, 0x80000000 | 21,   22,

 // slots: parameters
    QMetaType::Void, QMetaType::QString, QMetaType::QStringList,   24,   25,
    QMetaType::Void, 0x80000000 | 26,   27,
    QMetaType::Void, 0x80000000 | 29,   30,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 36,   37,
    QMetaType::Void, QMetaType::Int, 0x80000000 | 13,   12,   14,
    QMetaType::Void, QMetaType::Int, QMetaType::QByteArray,   40,    7,

 // properties: name, type, flags
      41, QMetaType::Bool, 0x00495001,
      42, QMetaType::Bool, 0x00495001,
      43, 0x80000000 | 44, 0x00095009,
      45, QMetaType::Bool, 0x00095103,
      46, QMetaType::Bool, 0x00095103,
      47, 0x80000000 | 21, 0x0049510b,
      48, QMetaType::QString, 0x00495001,
      49, QMetaType::QString, 0x00495001,
      50, QMetaType::Bool, 0x00095103,
      51, QMetaType::QUrl, 0x00495001,
      52, 0x80000000 | 53, 0x00095009,

 // properties: notify_signal_id
       1,
       2,
       0,
       0,
       0,
       8,
       8,
       1,
       0,
       7,
       0,

       0        // eod
};

void Data::SyncthingLauncher::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<SyncthingLauncher *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->confirmKill(); break;
        case 1: _t->runningChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 2: _t->startingChanged(); break;
        case 3: _t->outputAvailable((*reinterpret_cast< const QByteArray(*)>(_a[1]))); break;
        case 4: _t->exitLogged((*reinterpret_cast< std::string_view(*)>(_a[1]))); break;
        case 5: _t->exited((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< QProcess::ExitStatus(*)>(_a[2]))); break;
        case 6: _t->errorOccurred((*reinterpret_cast< QProcess::ProcessError(*)>(_a[1]))); break;
        case 7: _t->guiUrlChanged((*reinterpret_cast< const QUrl(*)>(_a[1]))); break;
        case 8: _t->networkConnectionMeteredChanged((*reinterpret_cast< std::optional<bool>(*)>(_a[1]))); break;
        case 9: _t->launch((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QStringList(*)>(_a[2]))); break;
        case 10: _t->launch((*reinterpret_cast< const Settings::Launcher(*)>(_a[1]))); break;
        case 11: _t->terminate((*reinterpret_cast< Data::SyncthingConnection*(*)>(_a[1]))); break;
        case 12: _t->terminate(); break;
        case 13: _t->kill(); break;
        case 14: _t->tearDownLibSyncthing(); break;
        case 15: _t->stopLibSyncthing(); break;
        case 16: _t->handleProcessReadyRead(); break;
        case 17: _t->handleProcessStateChanged((*reinterpret_cast< QProcess::ProcessState(*)>(_a[1]))); break;
        case 18: _t->handleProcessFinished((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< QProcess::ExitStatus(*)>(_a[2]))); break;
        case 19: _t->handleOutputAvailable((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QByteArray(*)>(_a[2]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (SyncthingLauncher::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SyncthingLauncher::confirmKill)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (SyncthingLauncher::*)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SyncthingLauncher::runningChanged)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (SyncthingLauncher::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SyncthingLauncher::startingChanged)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (SyncthingLauncher::*)(const QByteArray & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SyncthingLauncher::outputAvailable)) {
                *result = 3;
                return;
            }
        }
        {
            using _t = void (SyncthingLauncher::*)(std::string_view );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SyncthingLauncher::exitLogged)) {
                *result = 4;
                return;
            }
        }
        {
            using _t = void (SyncthingLauncher::*)(int , QProcess::ExitStatus );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SyncthingLauncher::exited)) {
                *result = 5;
                return;
            }
        }
        {
            using _t = void (SyncthingLauncher::*)(QProcess::ProcessError );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SyncthingLauncher::errorOccurred)) {
                *result = 6;
                return;
            }
        }
        {
            using _t = void (SyncthingLauncher::*)(const QUrl & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SyncthingLauncher::guiUrlChanged)) {
                *result = 7;
                return;
            }
        }
        {
            using _t = void (SyncthingLauncher::*)(std::optional<bool> );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SyncthingLauncher::networkConnectionMeteredChanged)) {
                *result = 8;
                return;
            }
        }
    } else if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 10:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< SyncthingProcess* >(); break;
        }
    }

#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<SyncthingLauncher *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< bool*>(_v) = _t->isRunning(); break;
        case 1: *reinterpret_cast< bool*>(_v) = _t->isStarting(); break;
        case 2: *reinterpret_cast< CppUtilities::DateTime*>(_v) = _t->activeSince(); break;
        case 3: *reinterpret_cast< bool*>(_v) = _t->isManuallyStopped(); break;
        case 4: *reinterpret_cast< bool*>(_v) = _t->isEmittingOutput(); break;
        case 5: *reinterpret_cast< std::optional<bool>*>(_v) = _t->isNetworkConnectionMetered(); break;
        case 6: *reinterpret_cast< QString*>(_v) = _t->meteredStatus(); break;
        case 7: *reinterpret_cast< QString*>(_v) = _t->runningStatus(); break;
        case 8: *reinterpret_cast< bool*>(_v) = _t->isStoppingOnMeteredConnection(); break;
        case 9: *reinterpret_cast< QUrl*>(_v) = _t->guiUrl(); break;
        case 10: *reinterpret_cast< SyncthingProcess**>(_v) = _t->process(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<SyncthingLauncher *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 3: _t->setManuallyStopped(*reinterpret_cast< bool*>(_v)); break;
        case 4: _t->setEmittingOutput(*reinterpret_cast< bool*>(_v)); break;
        case 5: _t->setNetworkConnectionMetered(*reinterpret_cast< std::optional<bool>*>(_v)); break;
        case 8: _t->setStoppingOnMeteredConnection(*reinterpret_cast< bool*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject Data::SyncthingLauncher::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_Data__SyncthingLauncher.data,
    qt_meta_data_Data__SyncthingLauncher,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *Data::SyncthingLauncher::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_Data__SyncthingLauncher.stringdata0))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int Data::SyncthingLauncher::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 < 20)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 20;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 20)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 20;
    }
#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 -= 11;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 11;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 11;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 11;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 11;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 11;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

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

// SIGNAL 1
void Data::SyncthingLauncher::runningChanged(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void Data::SyncthingLauncher::startingChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

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

// SIGNAL 4
void Data::SyncthingLauncher::exitLogged(std::string_view _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 4, _a);
}

// SIGNAL 5
void Data::SyncthingLauncher::exited(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, 5, _a);
}

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

// SIGNAL 7
void Data::SyncthingLauncher::guiUrlChanged(const QUrl & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 7, _a);
}

// SIGNAL 8
void Data::SyncthingLauncher::networkConnectionMeteredChanged(std::optional<bool> _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 8, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
