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

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

template <> constexpr inline auto Dtk::RfMgr::DRfmanager::qt_create_metaobjectdata<qt_meta_tag_ZN3Dtk5RfMgr10DRfmanagerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Dtk::RfMgr::DRfmanager",
        "bluetoothBlockedChanged",
        "",
        "bluetoothBlocked",
        "wifiBlockedChanged",
        "wifiBlocked",
        "countChanged",
        "count",
        "allBlockedChanged",
        "blockAll",
        "blockedChanged",
        "idx",
        "blockBluetooth",
        "DExpected<bool>",
        "blockWifi",
        "allBlocked",
        "RfOperation",
        "ADD",
        "DEL",
        "CHANGE",
        "CHANGE_ALL",
        "RfType",
        "ALL",
        "WLAN",
        "WIFI",
        "BLUETOOTH",
        "UWB",
        "WIMAX",
        "WWAN",
        "GPS",
        "FM",
        "NFC",
        "NUM_TYPES"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'bluetoothBlockedChanged'
        QtMocHelpers::SignalData<void(bool)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 3 },
        }}),
        // Signal 'wifiBlockedChanged'
        QtMocHelpers::SignalData<void(bool)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 5 },
        }}),
        // Signal 'countChanged'
        QtMocHelpers::SignalData<void(int)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 7 },
        }}),
        // Signal 'allBlockedChanged'
        QtMocHelpers::SignalData<void(bool)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 9 },
        }}),
        // Signal 'blockedChanged'
        QtMocHelpers::SignalData<void(quint32)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 11 },
        }}),
        // Slot 'blockBluetooth'
        QtMocHelpers::SlotData<DExpected<bool>(bool)>(12, 2, QMC::AccessPublic, 0x80000000 | 13, {{
            { QMetaType::Bool, 3 },
        }}),
        // Slot 'blockBluetooth'
        QtMocHelpers::SlotData<DExpected<bool>()>(12, 2, QMC::AccessPublic | QMC::MethodCloned, 0x80000000 | 13),
        // Slot 'blockWifi'
        QtMocHelpers::SlotData<DExpected<bool>(bool)>(14, 2, QMC::AccessPublic, 0x80000000 | 13, {{
            { QMetaType::Bool, 5 },
        }}),
        // Slot 'blockWifi'
        QtMocHelpers::SlotData<DExpected<bool>()>(14, 2, QMC::AccessPublic | QMC::MethodCloned, 0x80000000 | 13),
        // Slot 'blockAll'
        QtMocHelpers::SlotData<DExpected<bool>(bool)>(9, 2, QMC::AccessPublic, 0x80000000 | 13, {{
            { QMetaType::Bool, 9 },
        }}),
        // Slot 'blockAll'
        QtMocHelpers::SlotData<DExpected<bool>()>(9, 2, QMC::AccessPublic | QMC::MethodCloned, 0x80000000 | 13),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'bluetoothBlocked'
        QtMocHelpers::PropertyData<bool>(3, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable, 0),
        // property 'wifiBlocked'
        QtMocHelpers::PropertyData<bool>(5, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable, 1),
        // property 'count'
        QtMocHelpers::PropertyData<int>(7, QMetaType::Int, QMC::DefaultPropertyFlags, 2),
        // property 'allBlocked'
        QtMocHelpers::PropertyData<bool>(15, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable, 3),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'RfOperation'
        QtMocHelpers::EnumData<enum RfOperation>(16, 16, QMC::EnumFlags{}).add({
            {   17, RfOperation::ADD },
            {   18, RfOperation::DEL },
            {   19, RfOperation::CHANGE },
            {   20, RfOperation::CHANGE_ALL },
        }),
        // enum 'RfType'
        QtMocHelpers::EnumData<enum RfType>(21, 21, QMC::EnumFlags{}).add({
            {   22, RfType::ALL },
            {   23, RfType::WLAN },
            {   24, RfType::WIFI },
            {   25, RfType::BLUETOOTH },
            {   26, RfType::UWB },
            {   27, RfType::WIMAX },
            {   28, RfType::WWAN },
            {   29, RfType::GPS },
            {   30, RfType::FM },
            {   31, RfType::NFC },
            {   32, RfType::NUM_TYPES },
        }),
    };
    return QtMocHelpers::metaObjectData<DRfmanager, qt_meta_tag_ZN3Dtk5RfMgr10DRfmanagerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Dtk::RfMgr::DRfmanager::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3Dtk5RfMgr10DRfmanagerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3Dtk5RfMgr10DRfmanagerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN3Dtk5RfMgr10DRfmanagerE_t>.metaTypes,
    nullptr
} };

void Dtk::RfMgr::DRfmanager::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<DRfmanager *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->bluetoothBlockedChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 1: _t->wifiBlockedChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 2: _t->countChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 3: _t->allBlockedChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 4: _t->blockedChanged((*reinterpret_cast<std::add_pointer_t<quint32>>(_a[1]))); break;
        case 5: { DExpected<bool> _r = _t->blockBluetooth((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])));
            if (_a[0]) *reinterpret_cast<DExpected<bool>*>(_a[0]) = std::move(_r); }  break;
        case 6: { DExpected<bool> _r = _t->blockBluetooth();
            if (_a[0]) *reinterpret_cast<DExpected<bool>*>(_a[0]) = std::move(_r); }  break;
        case 7: { DExpected<bool> _r = _t->blockWifi((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])));
            if (_a[0]) *reinterpret_cast<DExpected<bool>*>(_a[0]) = std::move(_r); }  break;
        case 8: { DExpected<bool> _r = _t->blockWifi();
            if (_a[0]) *reinterpret_cast<DExpected<bool>*>(_a[0]) = std::move(_r); }  break;
        case 9: { DExpected<bool> _r = _t->blockAll((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])));
            if (_a[0]) *reinterpret_cast<DExpected<bool>*>(_a[0]) = std::move(_r); }  break;
        case 10: { DExpected<bool> _r = _t->blockAll();
            if (_a[0]) *reinterpret_cast<DExpected<bool>*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (DRfmanager::*)(bool )>(_a, &DRfmanager::bluetoothBlockedChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (DRfmanager::*)(bool )>(_a, &DRfmanager::wifiBlockedChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (DRfmanager::*)(int )>(_a, &DRfmanager::countChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (DRfmanager::*)(bool )>(_a, &DRfmanager::allBlockedChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (DRfmanager::*)(quint32 )>(_a, &DRfmanager::blockedChanged, 4))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->isBluetoothBlocked(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->isWifiBlocked(); break;
        case 2: *reinterpret_cast<int*>(_v) = _t->count(); break;
        case 3: *reinterpret_cast<bool*>(_v) = _t->isAllBlocked(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->blockBluetooth(*reinterpret_cast<bool*>(_v)); break;
        case 1: _t->blockWifi(*reinterpret_cast<bool*>(_v)); break;
        case 3: _t->blockAll(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

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

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

int Dtk::RfMgr::DRfmanager::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 < 11)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 11)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 11;
    }
    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 Dtk::RfMgr::DRfmanager::bluetoothBlockedChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Dtk::RfMgr::DRfmanager::wifiBlockedChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Dtk::RfMgr::DRfmanager::countChanged(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void Dtk::RfMgr::DRfmanager::allBlockedChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void Dtk::RfMgr::DRfmanager::blockedChanged(quint32 _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}
QT_WARNING_POP
