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

#include "../../../../../../../syncthingtray/syncthingconnector/syncthingnotifier.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 'syncthingnotifier.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.1. 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_ZN4Data17SyncthingNotifierE_t {};
} // unnamed namespace

template <> constexpr inline auto Data::SyncthingNotifier::qt_create_metaobjectdata<qt_meta_tag_ZN4Data17SyncthingNotifierE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Data::SyncthingNotifier",
        "statusChanged",
        "",
        "Data::SyncthingStatus",
        "previousStatus",
        "newStatus",
        "connected",
        "disconnected",
        "syncComplete",
        "message",
        "newDevice",
        "devId",
        "newDir",
        "dirId",
        "dirLabel",
        "syncthingProcessError",
        "additionalInfo",
        "setEnabledNotifications",
        "Data::SyncthingHighLevelNotification",
        "enabledNotifications",
        "setConsideredIntegrations",
        "Data::SyncthingStartupIntegration",
        "consideredIntegrations",
        "setIgnoreInavailabilityAfterStart",
        "seconds",
        "setProcess",
        "const Data::SyncthingProcess*",
        "process",
        "handleStatusChangedEvent",
        "handleNewDevEvent",
        "CppUtilities::DateTime",
        "when",
        "address",
        "handleNewDirEvent",
        "const Data::SyncthingDev*",
        "dev",
        "handleSyncthingProcessError",
        "QProcess::ProcessError",
        "SyncthingHighLevelNotification",
        "SyncthingStartupIntegration",
        "ignoreInavailabilityAfterStart",
        "const SyncthingProcess*"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'statusChanged'
        QtMocHelpers::SignalData<void(Data::SyncthingStatus, Data::SyncthingStatus)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 }, { 0x80000000 | 3, 5 },
        }}),
        // Signal 'connected'
        QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'disconnected'
        QtMocHelpers::SignalData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'syncComplete'
        QtMocHelpers::SignalData<void(const QString &)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 9 },
        }}),
        // Signal 'newDevice'
        QtMocHelpers::SignalData<void(const QString &, const QString &)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 11 }, { QMetaType::QString, 9 },
        }}),
        // Signal 'newDir'
        QtMocHelpers::SignalData<void(const QString &, const QString &, const QString &, const QString &)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 11 }, { QMetaType::QString, 13 }, { QMetaType::QString, 14 }, { QMetaType::QString, 9 },
        }}),
        // Signal 'syncthingProcessError'
        QtMocHelpers::SignalData<void(const QString &, const QString &)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 9 }, { QMetaType::QString, 16 },
        }}),
        // Slot 'setEnabledNotifications'
        QtMocHelpers::SlotData<void(Data::SyncthingHighLevelNotification)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 18, 19 },
        }}),
        // Slot 'setConsideredIntegrations'
        QtMocHelpers::SlotData<void(Data::SyncthingStartupIntegration)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 21, 22 },
        }}),
        // Slot 'setIgnoreInavailabilityAfterStart'
        QtMocHelpers::SlotData<void(unsigned int)>(23, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 24 },
        }}),
        // Slot 'setProcess'
        QtMocHelpers::SlotData<void(const Data::SyncthingProcess *)>(25, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 26, 27 },
        }}),
        // Slot 'handleStatusChangedEvent'
        QtMocHelpers::SlotData<void(Data::SyncthingStatus)>(28, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 3, 5 },
        }}),
        // Slot 'handleNewDevEvent'
        QtMocHelpers::SlotData<void(CppUtilities::DateTime, const QString &, const QString &)>(29, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 30, 31 }, { QMetaType::QString, 11 }, { QMetaType::QString, 32 },
        }}),
        // Slot 'handleNewDirEvent'
        QtMocHelpers::SlotData<void(CppUtilities::DateTime, const QString &, const Data::SyncthingDev *, const QString &, const QString &)>(33, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 30, 31 }, { QMetaType::QString, 11 }, { 0x80000000 | 34, 35 }, { QMetaType::QString, 13 },
            { QMetaType::QString, 14 },
        }}),
        // Slot 'handleSyncthingProcessError'
        QtMocHelpers::SlotData<void(QProcess::ProcessError)>(36, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 37, 15 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'enabledNotifications'
        QtMocHelpers::PropertyData<SyncthingHighLevelNotification>(19, 0x80000000 | 38, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'consideredIntegrations'
        QtMocHelpers::PropertyData<SyncthingStartupIntegration>(22, 0x80000000 | 39, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'ignoreInavailabilityAfterStart'
        QtMocHelpers::PropertyData<bool>(40, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'process'
        QtMocHelpers::PropertyData<const SyncthingProcess*>(27, 0x80000000 | 41, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<SyncthingNotifier, qt_meta_tag_ZN4Data17SyncthingNotifierE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Data::SyncthingNotifier::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4Data17SyncthingNotifierE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4Data17SyncthingNotifierE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN4Data17SyncthingNotifierE_t>.metaTypes,
    nullptr
} };

void Data::SyncthingNotifier::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<SyncthingNotifier *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->statusChanged((*reinterpret_cast<std::add_pointer_t<Data::SyncthingStatus>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Data::SyncthingStatus>>(_a[2]))); break;
        case 1: _t->connected(); break;
        case 2: _t->disconnected(); break;
        case 3: _t->syncComplete((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 4: _t->newDevice((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 5: _t->newDir((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[4]))); break;
        case 6: _t->syncthingProcessError((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 7: _t->setEnabledNotifications((*reinterpret_cast<std::add_pointer_t<Data::SyncthingHighLevelNotification>>(_a[1]))); break;
        case 8: _t->setConsideredIntegrations((*reinterpret_cast<std::add_pointer_t<Data::SyncthingStartupIntegration>>(_a[1]))); break;
        case 9: _t->setIgnoreInavailabilityAfterStart((*reinterpret_cast<std::add_pointer_t<uint>>(_a[1]))); break;
        case 10: _t->setProcess((*reinterpret_cast<std::add_pointer_t<const Data::SyncthingProcess*>>(_a[1]))); break;
        case 11: _t->handleStatusChangedEvent((*reinterpret_cast<std::add_pointer_t<Data::SyncthingStatus>>(_a[1]))); break;
        case 12: _t->handleNewDevEvent((*reinterpret_cast<std::add_pointer_t<CppUtilities::DateTime>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3]))); break;
        case 13: _t->handleNewDirEvent((*reinterpret_cast<std::add_pointer_t<CppUtilities::DateTime>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<const Data::SyncthingDev*>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[4])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[5]))); break;
        case 14: _t->handleSyncthingProcessError((*reinterpret_cast<std::add_pointer_t<QProcess::ProcessError>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (SyncthingNotifier::*)(Data::SyncthingStatus , Data::SyncthingStatus )>(_a, &SyncthingNotifier::statusChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (SyncthingNotifier::*)()>(_a, &SyncthingNotifier::connected, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (SyncthingNotifier::*)()>(_a, &SyncthingNotifier::disconnected, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (SyncthingNotifier::*)(const QString & )>(_a, &SyncthingNotifier::syncComplete, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (SyncthingNotifier::*)(const QString & , const QString & )>(_a, &SyncthingNotifier::newDevice, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (SyncthingNotifier::*)(const QString & , const QString & , const QString & , const QString & )>(_a, &SyncthingNotifier::newDir, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (SyncthingNotifier::*)(const QString & , const QString & )>(_a, &SyncthingNotifier::syncthingProcessError, 6))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<SyncthingHighLevelNotification*>(_v) = _t->enabledNotifications(); break;
        case 1: *reinterpret_cast<SyncthingStartupIntegration*>(_v) = _t->consideredIntegrations(); break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->ignoreInavailabilityAfterStart(); break;
        case 3: *reinterpret_cast<const SyncthingProcess**>(_v) = _t->process(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setEnabledNotifications(*reinterpret_cast<SyncthingHighLevelNotification*>(_v)); break;
        case 1: _t->setConsideredIntegrations(*reinterpret_cast<SyncthingStartupIntegration*>(_v)); break;
        case 2: _t->setIgnoreInavailabilityAfterStart(*reinterpret_cast<bool*>(_v)); break;
        case 3: _t->setProcess(*reinterpret_cast<const SyncthingProcess**>(_v)); break;
        default: break;
        }
    }
}

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

void *Data::SyncthingNotifier::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4Data17SyncthingNotifierE_t>.strings))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int Data::SyncthingNotifier::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 < 15)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 15;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 15)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 15;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 4;
    }
    return _id;
}

// SIGNAL 0
void Data::SyncthingNotifier::statusChanged(Data::SyncthingStatus _t1, Data::SyncthingStatus _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2);
}

// SIGNAL 1
void Data::SyncthingNotifier::connected()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

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

// SIGNAL 3
void Data::SyncthingNotifier::syncComplete(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void Data::SyncthingNotifier::newDevice(const QString & _t1, const QString & _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1, _t2);
}

// SIGNAL 5
void Data::SyncthingNotifier::newDir(const QString & _t1, const QString & _t2, const QString & _t3, const QString & _t4)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1, _t2, _t3, _t4);
}

// SIGNAL 6
void Data::SyncthingNotifier::syncthingProcessError(const QString & _t1, const QString & _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1, _t2);
}
QT_WARNING_POP
