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

template <> constexpr inline auto QtGui::AppService::qt_create_metaobjectdata<qt_meta_tag_ZN5QtGui10AppServiceE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "QtGui::AppService",
        "launcherStatusChanged",
        "",
        "QVariant",
        "status",
        "logsAvailable",
        "newLogMessages",
        "handleConnectionError",
        "errorMessage",
        "Data::SyncthingErrorCategory",
        "category",
        "networkError",
        "QNetworkRequest",
        "request",
        "response",
        "invalidateStatus",
        "gatherLogsFromString",
        "newOutput",
        "gatherLogsFromBytes",
        "handleRunningChanged",
        "isRunning",
        "handleChangedDevices",
        "handleNewErrors",
        "std::vector<Data::SyncthingError>",
        "errors",
        "handleConnectionStatusChanged",
        "Data::SyncthingStatus",
        "newStatus",
        "handleSyncthingError",
        "QProcess::ProcessError",
        "error",
        "broadcastLauncherStatus",
        "applyLauncherSettings",
        "reloadSettings",
        "terminateSyncthing",
        "stopLibSyncthing",
        "restartSyncthing",
        "shutdownSyncthing",
        "clearLog",
        "replayLog",
        "launcher",
        "Data::SyncthingLauncher*",
        "syncthingRunning"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'launcherStatusChanged'
        QtMocHelpers::SignalData<void(const QVariant &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'logsAvailable'
        QtMocHelpers::SignalData<void(const QString &)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 6 },
        }}),
        // Slot 'handleConnectionError'
        QtMocHelpers::SlotData<void(const QString &, Data::SyncthingErrorCategory, int, const QNetworkRequest &, const QByteArray &)>(7, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 8 }, { 0x80000000 | 9, 10 }, { QMetaType::Int, 11 }, { 0x80000000 | 12, 13 },
            { QMetaType::QByteArray, 14 },
        }}),
        // Slot 'invalidateStatus'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'gatherLogsFromString'
        QtMocHelpers::SlotData<void(const QString &)>(16, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 17 },
        }}),
        // Slot 'gatherLogsFromBytes'
        QtMocHelpers::SlotData<void(const QByteArray &)>(18, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QByteArray, 17 },
        }}),
        // Slot 'handleRunningChanged'
        QtMocHelpers::SlotData<void(bool)>(19, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Bool, 20 },
        }}),
        // Slot 'handleChangedDevices'
        QtMocHelpers::SlotData<void()>(21, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'handleNewErrors'
        QtMocHelpers::SlotData<void(const std::vector<Data::SyncthingError> &)>(22, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 23, 24 },
        }}),
        // Slot 'handleConnectionStatusChanged'
        QtMocHelpers::SlotData<void(Data::SyncthingStatus)>(25, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 26, 27 },
        }}),
        // Slot 'handleSyncthingError'
        QtMocHelpers::SlotData<void(QProcess::ProcessError)>(28, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 29, 30 },
        }}),
        // Method 'broadcastLauncherStatus'
        QtMocHelpers::MethodData<void()>(31, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'applyLauncherSettings'
        QtMocHelpers::MethodData<bool()>(32, 2, QMC::AccessPublic, QMetaType::Bool),
        // Method 'reloadSettings'
        QtMocHelpers::MethodData<bool()>(33, 2, QMC::AccessPublic, QMetaType::Bool),
        // Method 'terminateSyncthing'
        QtMocHelpers::MethodData<void()>(34, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'stopLibSyncthing'
        QtMocHelpers::MethodData<void()>(35, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'restartSyncthing'
        QtMocHelpers::MethodData<void()>(36, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'shutdownSyncthing'
        QtMocHelpers::MethodData<void()>(37, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'clearLog'
        QtMocHelpers::MethodData<void()>(38, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'replayLog'
        QtMocHelpers::MethodData<void()>(39, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'launcher'
        QtMocHelpers::PropertyData<Data::SyncthingLauncher*>(40, 0x80000000 | 41, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'syncthingRunning'
        QtMocHelpers::PropertyData<bool>(42, QMetaType::Bool, QMC::DefaultPropertyFlags),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<AppService, qt_meta_tag_ZN5QtGui10AppServiceE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject QtGui::AppService::staticMetaObject = { {
    QMetaObject::SuperData::link<AppBase::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5QtGui10AppServiceE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5QtGui10AppServiceE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN5QtGui10AppServiceE_t>.metaTypes,
    nullptr
} };

void QtGui::AppService::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<AppService *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->launcherStatusChanged((*reinterpret_cast<std::add_pointer_t<QVariant>>(_a[1]))); break;
        case 1: _t->logsAvailable((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 2: _t->handleConnectionError((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Data::SyncthingErrorCategory>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<QNetworkRequest>>(_a[4])),(*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[5]))); break;
        case 3: _t->invalidateStatus(); break;
        case 4: _t->gatherLogsFromString((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 5: _t->gatherLogsFromBytes((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1]))); break;
        case 6: _t->handleRunningChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 7: _t->handleChangedDevices(); break;
        case 8: _t->handleNewErrors((*reinterpret_cast<std::add_pointer_t<std::vector<Data::SyncthingError>>>(_a[1]))); break;
        case 9: _t->handleConnectionStatusChanged((*reinterpret_cast<std::add_pointer_t<Data::SyncthingStatus>>(_a[1]))); break;
        case 10: _t->handleSyncthingError((*reinterpret_cast<std::add_pointer_t<QProcess::ProcessError>>(_a[1]))); break;
        case 11: _t->broadcastLauncherStatus(); break;
        case 12: { bool _r = _t->applyLauncherSettings();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 13: { bool _r = _t->reloadSettings();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 14: _t->terminateSyncthing(); break;
        case 15: _t->stopLibSyncthing(); break;
        case 16: _t->restartSyncthing(); break;
        case 17: _t->shutdownSyncthing(); break;
        case 18: _t->clearLog(); break;
        case 19: _t->replayLog(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 3:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QNetworkRequest >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (AppService::*)(const QVariant & )>(_a, &AppService::launcherStatusChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (AppService::*)(const QString & )>(_a, &AppService::logsAvailable, 1))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Data::SyncthingLauncher* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<Data::SyncthingLauncher**>(_v) = _t->launcher(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->isSyncthingRunning(); break;
        default: break;
        }
    }
}

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

void *QtGui::AppService::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5QtGui10AppServiceE_t>.strings))
        return static_cast<void*>(this);
    return AppBase::qt_metacast(_clname);
}

int QtGui::AppService::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = AppBase::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)
            qt_static_metacall(this, _c, _id, _a);
        _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 -= 2;
    }
    return _id;
}

// SIGNAL 0
void QtGui::AppService::launcherStatusChanged(const QVariant & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void QtGui::AppService::logsAvailable(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}
QT_WARNING_POP
