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

template <> constexpr inline auto ServiceInfo::qt_create_metaobjectdata<qt_meta_tag_ZN11ServiceInfoE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "ServiceInfo",
        "stateUpdated",
        "",
        "serviceUpdated",
        "characteristicsUpdated",
        "serviceDetailsDiscovered",
        "QLowEnergyService::ServiceState",
        "newState",
        "serviceErrorOccured",
        "QLowEnergyService::ServiceError",
        "error",
        "bleReadDone",
        "QLowEnergyCharacteristic",
        "c",
        "value",
        "bleReadNotify",
        "bleWriteDone",
        "bleDescReadDone",
        "QLowEnergyDescriptor",
        "d",
        "bleDescWriteDone",
        "scanComplete",
        "serviceStatus",
        "serviceStatusStr",
        "serviceName",
        "serviceUuid",
        "serviceUuidFull",
        "serviceUuidShort",
        "serviceType",
        "serviceTypeList",
        "characteristicList",
        "QVariant",
        "characteristicsCount"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'stateUpdated'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'serviceUpdated'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'characteristicsUpdated'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'serviceDetailsDiscovered'
        QtMocHelpers::SlotData<void(QLowEnergyService::ServiceState)>(5, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
        // Slot 'serviceErrorOccured'
        QtMocHelpers::SlotData<void(QLowEnergyService::ServiceError)>(8, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 9, 10 },
        }}),
        // Slot 'bleReadDone'
        QtMocHelpers::SlotData<void(const QLowEnergyCharacteristic &, const QByteArray &)>(11, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 12, 13 }, { QMetaType::QByteArray, 14 },
        }}),
        // Slot 'bleReadNotify'
        QtMocHelpers::SlotData<void(const QLowEnergyCharacteristic &, const QByteArray &)>(15, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 12, 13 }, { QMetaType::QByteArray, 14 },
        }}),
        // Slot 'bleWriteDone'
        QtMocHelpers::SlotData<void(const QLowEnergyCharacteristic &, const QByteArray &)>(16, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 12, 13 }, { QMetaType::QByteArray, 14 },
        }}),
        // Slot 'bleDescReadDone'
        QtMocHelpers::SlotData<void(const QLowEnergyDescriptor &, const QByteArray &)>(17, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 18, 19 }, { QMetaType::QByteArray, 14 },
        }}),
        // Slot 'bleDescWriteDone'
        QtMocHelpers::SlotData<void(const QLowEnergyDescriptor &, const QByteArray &)>(20, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 18, 19 }, { QMetaType::QByteArray, 14 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'scanComplete'
        QtMocHelpers::PropertyData<bool>(21, QMetaType::Bool, QMC::DefaultPropertyFlags, 0),
        // property 'serviceStatus'
        QtMocHelpers::PropertyData<int>(22, QMetaType::Int, QMC::DefaultPropertyFlags, 0),
        // property 'serviceStatusStr'
        QtMocHelpers::PropertyData<QString>(23, QMetaType::QString, QMC::DefaultPropertyFlags, 0),
        // property 'serviceName'
        QtMocHelpers::PropertyData<QString>(24, QMetaType::QString, QMC::DefaultPropertyFlags, 1),
        // property 'serviceUuid'
        QtMocHelpers::PropertyData<QString>(25, QMetaType::QString, QMC::DefaultPropertyFlags, 1),
        // property 'serviceUuidFull'
        QtMocHelpers::PropertyData<QString>(26, QMetaType::QString, QMC::DefaultPropertyFlags, 1),
        // property 'serviceUuidShort'
        QtMocHelpers::PropertyData<QString>(27, QMetaType::QString, QMC::DefaultPropertyFlags, 1),
        // property 'serviceType'
        QtMocHelpers::PropertyData<QString>(28, QMetaType::QString, QMC::DefaultPropertyFlags, 1),
        // property 'serviceTypeList'
        QtMocHelpers::PropertyData<QStringList>(29, QMetaType::QStringList, QMC::DefaultPropertyFlags, 1),
        // property 'characteristicList'
        QtMocHelpers::PropertyData<QVariant>(30, 0x80000000 | 31, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 2),
        // property 'characteristicsCount'
        QtMocHelpers::PropertyData<int>(32, QMetaType::Int, QMC::DefaultPropertyFlags, 2),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<ServiceInfo, qt_meta_tag_ZN11ServiceInfoE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject ServiceInfo::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11ServiceInfoE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11ServiceInfoE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN11ServiceInfoE_t>.metaTypes,
    nullptr
} };

void ServiceInfo::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ServiceInfo *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->stateUpdated(); break;
        case 1: _t->serviceUpdated(); break;
        case 2: _t->characteristicsUpdated(); break;
        case 3: _t->serviceDetailsDiscovered((*reinterpret_cast<std::add_pointer_t<QLowEnergyService::ServiceState>>(_a[1]))); break;
        case 4: _t->serviceErrorOccured((*reinterpret_cast<std::add_pointer_t<QLowEnergyService::ServiceError>>(_a[1]))); break;
        case 5: _t->bleReadDone((*reinterpret_cast<std::add_pointer_t<QLowEnergyCharacteristic>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[2]))); break;
        case 6: _t->bleReadNotify((*reinterpret_cast<std::add_pointer_t<QLowEnergyCharacteristic>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[2]))); break;
        case 7: _t->bleWriteDone((*reinterpret_cast<std::add_pointer_t<QLowEnergyCharacteristic>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[2]))); break;
        case 8: _t->bleDescReadDone((*reinterpret_cast<std::add_pointer_t<QLowEnergyDescriptor>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[2]))); break;
        case 9: _t->bleDescWriteDone((*reinterpret_cast<std::add_pointer_t<QLowEnergyDescriptor>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[2]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QLowEnergyService::ServiceState >(); break;
            }
            break;
        case 4:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QLowEnergyService::ServiceError >(); break;
            }
            break;
        case 5:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QLowEnergyCharacteristic >(); break;
            }
            break;
        case 6:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QLowEnergyCharacteristic >(); break;
            }
            break;
        case 7:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QLowEnergyCharacteristic >(); break;
            }
            break;
        case 8:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QLowEnergyDescriptor >(); break;
            }
            break;
        case 9:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QLowEnergyDescriptor >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ServiceInfo::*)()>(_a, &ServiceInfo::stateUpdated, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (ServiceInfo::*)()>(_a, &ServiceInfo::serviceUpdated, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (ServiceInfo::*)()>(_a, &ServiceInfo::characteristicsUpdated, 2))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->getScanComplete(); break;
        case 1: *reinterpret_cast<int*>(_v) = _t->getServiceStatus(); break;
        case 2: *reinterpret_cast<QString*>(_v) = _t->getServiceStatusStr(); break;
        case 3: *reinterpret_cast<QString*>(_v) = _t->getName(); break;
        case 4: *reinterpret_cast<QString*>(_v) = _t->getUuidFull(); break;
        case 5: *reinterpret_cast<QString*>(_v) = _t->getUuidFull(); break;
        case 6: *reinterpret_cast<QString*>(_v) = _t->getUuidShort(); break;
        case 7: *reinterpret_cast<QString*>(_v) = _t->getType(); break;
        case 8: *reinterpret_cast<QStringList*>(_v) = _t->getTypeList(); break;
        case 9: *reinterpret_cast<QVariant*>(_v) = _t->getCharacteristics(); break;
        case 10: *reinterpret_cast<int*>(_v) = _t->getCharacteristicsCount(); break;
        default: break;
        }
    }
}

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

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

int ServiceInfo::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 < 10)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 10)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    }
    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 ServiceInfo::stateUpdated()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void ServiceInfo::serviceUpdated()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void ServiceInfo::characteristicsUpdated()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}
QT_WARNING_POP
