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

template <> constexpr inline auto NetworkDeviceProvider::qt_create_metaobjectdata<qt_meta_tag_ZN21NetworkDeviceProviderE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "NetworkDeviceProvider",
        "stateChanged",
        "",
        "loadingChanged",
        "startedChanged",
        "started",
        "failed",
        "message",
        "deviceAdded",
        "QVariantMap",
        "device",
        "deviceRemoved",
        "deviceName",
        "startBrowsing",
        "restartBrowsing",
        "getNetworkDevices",
        "QMap<QString,QVariant>",
        "getNetworkDeviceByMac",
        "NetworkDevice",
        "macAddress",
        "state",
        "BrowsingState",
        "localNetworkPrivacyRequired",
        "Loading",
        "Started",
        "Failed"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'stateChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'loadingChanged'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'startedChanged'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'started'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'failed'
        QtMocHelpers::SignalData<void(const QString &)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 7 },
        }}),
        // Signal 'deviceAdded'
        QtMocHelpers::SignalData<void(const QVariantMap &)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 10 },
        }}),
        // Signal 'deviceRemoved'
        QtMocHelpers::SignalData<void(const QString &)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 12 },
        }}),
        // Method 'startBrowsing'
        QtMocHelpers::MethodData<void()>(13, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'restartBrowsing'
        QtMocHelpers::MethodData<void()>(14, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'getNetworkDevices'
        QtMocHelpers::MethodData<QMap<QString,QVariant>()>(15, 2, QMC::AccessPublic, 0x80000000 | 16),
        // Method 'getNetworkDeviceByMac'
        QtMocHelpers::MethodData<NetworkDevice(const QString &)>(17, 2, QMC::AccessPublic, 0x80000000 | 18, {{
            { QMetaType::QString, 19 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'state'
        QtMocHelpers::PropertyData<enum BrowsingState>(20, 0x80000000 | 21, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 0),
        // property 'localNetworkPrivacyRequired'
        QtMocHelpers::PropertyData<bool>(22, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'BrowsingState'
        QtMocHelpers::EnumData<enum BrowsingState>(21, 21, QMC::EnumFlags{}).add({
            {   23, BrowsingState::Loading },
            {   24, BrowsingState::Started },
            {   25, BrowsingState::Failed },
        }),
    };
    return QtMocHelpers::metaObjectData<NetworkDeviceProvider, qt_meta_tag_ZN21NetworkDeviceProviderE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject NetworkDeviceProvider::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN21NetworkDeviceProviderE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN21NetworkDeviceProviderE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN21NetworkDeviceProviderE_t>.metaTypes,
    nullptr
} };

void NetworkDeviceProvider::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<NetworkDeviceProvider *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->stateChanged(); break;
        case 1: _t->loadingChanged(); break;
        case 2: _t->startedChanged(); break;
        case 3: _t->started(); break;
        case 4: _t->failed((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 5: _t->deviceAdded((*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[1]))); break;
        case 6: _t->deviceRemoved((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 7: _t->startBrowsing(); break;
        case 8: _t->restartBrowsing(); break;
        case 9: { QMap<QString,QVariant> _r = _t->getNetworkDevices();
            if (_a[0]) *reinterpret_cast<QMap<QString,QVariant>*>(_a[0]) = std::move(_r); }  break;
        case 10: { NetworkDevice _r = _t->getNetworkDeviceByMac((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<NetworkDevice*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (NetworkDeviceProvider::*)()>(_a, &NetworkDeviceProvider::stateChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (NetworkDeviceProvider::*)()>(_a, &NetworkDeviceProvider::loadingChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (NetworkDeviceProvider::*)()>(_a, &NetworkDeviceProvider::startedChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (NetworkDeviceProvider::*)()>(_a, &NetworkDeviceProvider::started, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (NetworkDeviceProvider::*)(const QString & )>(_a, &NetworkDeviceProvider::failed, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (NetworkDeviceProvider::*)(const QVariantMap & )>(_a, &NetworkDeviceProvider::deviceAdded, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (NetworkDeviceProvider::*)(const QString & )>(_a, &NetworkDeviceProvider::deviceRemoved, 6))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<enum BrowsingState*>(_v) = _t->state(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->localNetworkPrivacyRequired(); break;
        default: break;
        }
    }
}

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

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

int NetworkDeviceProvider::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 -= 2;
    }
    return _id;
}

// SIGNAL 0
void NetworkDeviceProvider::stateChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

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

// SIGNAL 2
void NetworkDeviceProvider::startedChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void NetworkDeviceProvider::started()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void NetworkDeviceProvider::failed(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void NetworkDeviceProvider::deviceAdded(const QVariantMap & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}

// SIGNAL 6
void NetworkDeviceProvider::deviceRemoved(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1);
}
QT_WARNING_POP
