/****************************************************************************
** Meta object code from reading C++ file 'syncthinglauncher.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 "../../misc/syncthinglauncher.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 'syncthinglauncher.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_ZN4Data17SyncthingLauncherE_t {};
} // unnamed namespace

template <> constexpr inline auto Data::SyncthingLauncher::qt_create_metaobjectdata<qt_meta_tag_ZN4Data17SyncthingLauncherE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Data::SyncthingLauncher",
        "confirmKill",
        "",
        "runningChanged",
        "isRunning",
        "startingChanged",
        "outputAvailable",
        "data",
        "exitLogged",
        "std::string_view",
        "exitMessage",
        "exited",
        "exitCode",
        "QProcess::ExitStatus",
        "exitStatus",
        "errorOccurred",
        "QProcess::ProcessError",
        "error",
        "guiUrlChanged",
        "QUrl",
        "newUrl",
        "networkConnectionMeteredChanged",
        "std::optional<bool>",
        "isMetered",
        "launch",
        "program",
        "arguments",
        "Settings::Launcher",
        "launcherSettings",
        "terminate",
        "Data::SyncthingConnection*",
        "relevantConnection",
        "kill",
        "tearDownLibSyncthing",
        "stopLibSyncthing",
        "handleProcessReadyRead",
        "handleProcessStateChanged",
        "QProcess::ProcessState",
        "newState",
        "handleProcessFinished",
        "handleOutputAvailable",
        "logLevel",
        "running",
        "starting",
        "activeSince",
        "CppUtilities::DateTime",
        "manuallyStopped",
        "emittingOutput",
        "networkConnectionMetered",
        "meteredStatus",
        "runningStatus",
        "stoppingOnMeteredConnection",
        "guiUrl",
        "process",
        "SyncthingProcess*"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'confirmKill'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'runningChanged'
        QtMocHelpers::SignalData<void(bool)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 4 },
        }}),
        // Signal 'startingChanged'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'outputAvailable'
        QtMocHelpers::SignalData<void(const QByteArray &)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QByteArray, 7 },
        }}),
        // Signal 'exitLogged'
        QtMocHelpers::SignalData<void(std::string_view)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 10 },
        }}),
        // Signal 'exited'
        QtMocHelpers::SignalData<void(int, QProcess::ExitStatus)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 12 }, { 0x80000000 | 13, 14 },
        }}),
        // Signal 'errorOccurred'
        QtMocHelpers::SignalData<void(QProcess::ProcessError)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 16, 17 },
        }}),
        // Signal 'guiUrlChanged'
        QtMocHelpers::SignalData<void(const QUrl &)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 19, 20 },
        }}),
        // Signal 'networkConnectionMeteredChanged'
        QtMocHelpers::SignalData<void(std::optional<bool>)>(21, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 22, 23 },
        }}),
        // Slot 'launch'
        QtMocHelpers::SlotData<void(const QString &, const QStringList &)>(24, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 25 }, { QMetaType::QStringList, 26 },
        }}),
        // Slot 'launch'
        QtMocHelpers::SlotData<void(const Settings::Launcher &)>(24, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 27, 28 },
        }}),
        // Slot 'terminate'
        QtMocHelpers::SlotData<void(Data::SyncthingConnection *)>(29, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 30, 31 },
        }}),
        // Slot 'terminate'
        QtMocHelpers::SlotData<void()>(29, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Slot 'kill'
        QtMocHelpers::SlotData<void()>(32, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'tearDownLibSyncthing'
        QtMocHelpers::SlotData<void()>(33, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'stopLibSyncthing'
        QtMocHelpers::SlotData<void()>(34, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'handleProcessReadyRead'
        QtMocHelpers::SlotData<void()>(35, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'handleProcessStateChanged'
        QtMocHelpers::SlotData<void(QProcess::ProcessState)>(36, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 37, 38 },
        }}),
        // Slot 'handleProcessFinished'
        QtMocHelpers::SlotData<void(int, QProcess::ExitStatus)>(39, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 12 }, { 0x80000000 | 13, 14 },
        }}),
        // Slot 'handleOutputAvailable'
        QtMocHelpers::SlotData<void(int, const QByteArray &)>(40, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 41 }, { QMetaType::QByteArray, 7 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'running'
        QtMocHelpers::PropertyData<bool>(42, QMetaType::Bool, QMC::DefaultPropertyFlags, 1),
        // property 'starting'
        QtMocHelpers::PropertyData<bool>(43, QMetaType::Bool, QMC::DefaultPropertyFlags, 2),
        // property 'activeSince'
        QtMocHelpers::PropertyData<CppUtilities::DateTime>(44, 0x80000000 | 45, QMC::DefaultPropertyFlags | QMC::EnumOrFlag),
        // property 'manuallyStopped'
        QtMocHelpers::PropertyData<bool>(46, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'emittingOutput'
        QtMocHelpers::PropertyData<bool>(47, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'networkConnectionMetered'
        QtMocHelpers::PropertyData<std::optional<bool>>(48, 0x80000000 | 22, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 8),
        // property 'meteredStatus'
        QtMocHelpers::PropertyData<QString>(49, QMetaType::QString, QMC::DefaultPropertyFlags, 8),
        // property 'runningStatus'
        QtMocHelpers::PropertyData<QString>(50, QMetaType::QString, QMC::DefaultPropertyFlags, 1),
        // property 'stoppingOnMeteredConnection'
        QtMocHelpers::PropertyData<bool>(51, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'guiUrl'
        QtMocHelpers::PropertyData<QUrl>(52, 0x80000000 | 19, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 7),
        // property 'process'
        QtMocHelpers::PropertyData<SyncthingProcess*>(53, 0x80000000 | 54, QMC::DefaultPropertyFlags | QMC::EnumOrFlag),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<SyncthingLauncher, qt_meta_tag_ZN4Data17SyncthingLauncherE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Data::SyncthingLauncher::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4Data17SyncthingLauncherE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4Data17SyncthingLauncherE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN4Data17SyncthingLauncherE_t>.metaTypes,
    nullptr
} };

void Data::SyncthingLauncher::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<SyncthingLauncher *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->confirmKill(); break;
        case 1: _t->runningChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 2: _t->startingChanged(); break;
        case 3: _t->outputAvailable((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1]))); break;
        case 4: _t->exitLogged((*reinterpret_cast<std::add_pointer_t<std::string_view>>(_a[1]))); break;
        case 5: _t->exited((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QProcess::ExitStatus>>(_a[2]))); break;
        case 6: _t->errorOccurred((*reinterpret_cast<std::add_pointer_t<QProcess::ProcessError>>(_a[1]))); break;
        case 7: _t->guiUrlChanged((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1]))); break;
        case 8: _t->networkConnectionMeteredChanged((*reinterpret_cast<std::add_pointer_t<std::optional<bool>>>(_a[1]))); break;
        case 9: _t->launch((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QStringList>>(_a[2]))); break;
        case 10: _t->launch((*reinterpret_cast<std::add_pointer_t<Settings::Launcher>>(_a[1]))); break;
        case 11: _t->terminate((*reinterpret_cast<std::add_pointer_t<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<std::add_pointer_t<QProcess::ProcessState>>(_a[1]))); break;
        case 18: _t->handleProcessFinished((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QProcess::ExitStatus>>(_a[2]))); break;
        case 19: _t->handleOutputAvailable((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[2]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (SyncthingLauncher::*)()>(_a, &SyncthingLauncher::confirmKill, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (SyncthingLauncher::*)(bool )>(_a, &SyncthingLauncher::runningChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (SyncthingLauncher::*)()>(_a, &SyncthingLauncher::startingChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (SyncthingLauncher::*)(const QByteArray & )>(_a, &SyncthingLauncher::outputAvailable, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (SyncthingLauncher::*)(std::string_view )>(_a, &SyncthingLauncher::exitLogged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (SyncthingLauncher::*)(int , QProcess::ExitStatus )>(_a, &SyncthingLauncher::exited, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (SyncthingLauncher::*)(QProcess::ProcessError )>(_a, &SyncthingLauncher::errorOccurred, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (SyncthingLauncher::*)(const QUrl & )>(_a, &SyncthingLauncher::guiUrlChanged, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (SyncthingLauncher::*)(std::optional<bool> )>(_a, &SyncthingLauncher::networkConnectionMeteredChanged, 8))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 10:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< SyncthingProcess* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        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;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        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;
        }
    }
}

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_staticMetaObjectStaticContent<qt_meta_tag_ZN4Data17SyncthingLauncherE_t>.strings))
        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;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 20)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 20;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    }
    return _id;
}

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

// SIGNAL 1
void Data::SyncthingLauncher::runningChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

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

// SIGNAL 3
void Data::SyncthingLauncher::outputAvailable(const QByteArray & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void Data::SyncthingLauncher::exitLogged(std::string_view _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

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

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

// SIGNAL 7
void Data::SyncthingLauncher::guiUrlChanged(const QUrl & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1);
}

// SIGNAL 8
void Data::SyncthingLauncher::networkConnectionMeteredChanged(std::optional<bool> _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 8, nullptr, _t1);
}
QT_WARNING_POP
