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

#include "../../misc/syncthingdata.h"
#include <QtNetwork/QSslError>
#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 'syncthingdata.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.2. 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_ZN5QtGui13SyncthingDataE_t {};
} // unnamed namespace

template <> constexpr inline auto QtGui::SyncthingData::qt_create_metaobjectdata<qt_meta_tag_ZN5QtGui13SyncthingDataE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "QtGui::SyncthingData",
        "QML.Element",
        "auto",
        "QML.Singleton",
        "true",
        "updateStatusInfo",
        "",
        "configurationName",
        "updateDeviceInfo",
        "formatIncomingTraffic",
        "formatOutgoingTraffic",
        "connection",
        "Data::SyncthingConnection*",
        "notifier",
        "Data::SyncthingNotifier*",
        "statusInfo",
        "StatusInfo*",
        "syncthingVersion",
        "qtVersion",
        "readmeUrl",
        "documentationUrl",
        "website"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'updateStatusInfo'
        QtMocHelpers::SlotData<void(const QString &)>(5, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 7 },
        }}),
        // Slot 'updateStatusInfo'
        QtMocHelpers::SlotData<void()>(5, 6, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Slot 'updateDeviceInfo'
        QtMocHelpers::SlotData<void()>(8, 6, QMC::AccessPublic, QMetaType::Void),
        // Method 'formatIncomingTraffic'
        QtMocHelpers::MethodData<QString() const>(9, 6, QMC::AccessPublic, QMetaType::QString),
        // Method 'formatOutgoingTraffic'
        QtMocHelpers::MethodData<QString() const>(10, 6, QMC::AccessPublic, QMetaType::QString),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'connection'
        QtMocHelpers::PropertyData<Data::SyncthingConnection*>(11, 0x80000000 | 12, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'notifier'
        QtMocHelpers::PropertyData<Data::SyncthingNotifier*>(13, 0x80000000 | 14, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'statusInfo'
        QtMocHelpers::PropertyData<StatusInfo*>(15, 0x80000000 | 16, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'syncthingVersion'
        QtMocHelpers::PropertyData<QString>(17, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'qtVersion'
        QtMocHelpers::PropertyData<QString>(18, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'readmeUrl'
        QtMocHelpers::PropertyData<QString>(19, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'documentationUrl'
        QtMocHelpers::PropertyData<QString>(20, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'website'
        QtMocHelpers::PropertyData<QString>(21, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
    });
    return QtMocHelpers::metaObjectData<SyncthingData, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject QtGui::SyncthingData::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5QtGui13SyncthingDataE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5QtGui13SyncthingDataE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN5QtGui13SyncthingDataE_t>.metaTypes,
    nullptr
} };

void QtGui::SyncthingData::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<SyncthingData *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->updateStatusInfo((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 1: _t->updateStatusInfo(); break;
        case 2: _t->updateDeviceInfo(); break;
        case 3: { QString _r = _t->formatIncomingTraffic();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 4: { QString _r = _t->formatOutgoingTraffic();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Data::SyncthingConnection* >(); break;
        case 1:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Data::SyncthingNotifier* >(); break;
        case 2:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< StatusInfo* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<Data::SyncthingConnection**>(_v) = _t->connection(); break;
        case 1: *reinterpret_cast<Data::SyncthingNotifier**>(_v) = _t->notifier(); break;
        case 2: *reinterpret_cast<StatusInfo**>(_v) = _t->statusInfo(); break;
        case 3: *reinterpret_cast<QString*>(_v) = _t->syncthingVersion(); break;
        case 4: *reinterpret_cast<QString*>(_v) = _t->qtVersion(); break;
        case 5: *reinterpret_cast<QString*>(_v) = _t->readmeUrl(); break;
        case 6: *reinterpret_cast<QString*>(_v) = _t->documentationUrl(); break;
        case 7: *reinterpret_cast<QString*>(_v) = _t->website(); break;
        default: break;
        }
    }
}

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

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

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