/****************************************************************************
** Meta object code from reading C++ file 'lib.cxxqt.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 "../../../../../../../../cxxqt/crates/idescriptor_rust_codebase/include/idescriptor_rust_codebase/src/lib.cxxqt.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 'lib.cxxqt.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_ZN3CXX4CoreE_t {};
} // unnamed namespace

template <> constexpr inline auto CXX::Core::qt_create_metaobjectdata<qt_meta_tag_ZN3CXX4CoreE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "CXX::Core",
        "device_event",
        "",
        "::std::uint32_t",
        "event_type",
        "udid",
        "info",
        "init_failed",
        "mac_address",
        "no_pairing_file",
        "sleepy_time_detected",
        "device_became_wired",
        "init",
        "init_wireless_device",
        "ip",
        "pairing_file",
        "get_pairing_files",
        "QMap_QString_QVariant",
        "remove_device"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'device_event'
        QtMocHelpers::SignalData<void(::std::uint32_t, QString const &, QString const &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 }, { QMetaType::QString, 5 }, { QMetaType::QString, 6 },
        }}),
        // Signal 'init_failed'
        QtMocHelpers::SignalData<void(QString const &)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 8 },
        }}),
        // Signal 'no_pairing_file'
        QtMocHelpers::SignalData<void(QString const &)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 8 },
        }}),
        // Signal 'sleepy_time_detected'
        QtMocHelpers::SignalData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'device_became_wired'
        QtMocHelpers::SignalData<void(QString const &)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 5 },
        }}),
        // Method 'init'
        QtMocHelpers::MethodData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'init_wireless_device'
        QtMocHelpers::MethodData<void(QString const &, QString const &, QString const &)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 14 }, { QMetaType::QString, 15 }, { QMetaType::QString, 8 },
        }}),
        // Method 'get_pairing_files'
        QtMocHelpers::MethodData<QMap_QString_QVariant()>(16, 2, QMC::AccessPublic, 0x80000000 | 17),
        // Method 'remove_device'
        QtMocHelpers::MethodData<void(QString const &)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 5 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<Core, qt_meta_tag_ZN3CXX4CoreE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject CXX::Core::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3CXX4CoreE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3CXX4CoreE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN3CXX4CoreE_t>.metaTypes,
    nullptr
} };

void CXX::Core::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Core *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->device_event((*reinterpret_cast<std::add_pointer_t<::std::uint32_t>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3]))); break;
        case 1: _t->init_failed((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 2: _t->no_pairing_file((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 3: _t->sleepy_time_detected(); break;
        case 4: _t->device_became_wired((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 5: _t->init(); break;
        case 6: _t->init_wireless_device((*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]))); break;
        case 7: { QMap_QString_QVariant _r = _t->get_pairing_files();
            if (_a[0]) *reinterpret_cast<QMap_QString_QVariant*>(_a[0]) = std::move(_r); }  break;
        case 8: _t->remove_device((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Core::*)(::std::uint32_t , QString const & , QString const & )>(_a, &Core::device_event, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Core::*)(QString const & )>(_a, &Core::init_failed, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Core::*)(QString const & )>(_a, &Core::no_pairing_file, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (Core::*)()>(_a, &Core::sleepy_time_detected, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (Core::*)(QString const & )>(_a, &Core::device_became_wired, 4))
            return;
    }
}

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

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

int CXX::Core::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 < 9)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 9)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 9;
    }
    return _id;
}

// SIGNAL 0
void CXX::Core::device_event(::std::uint32_t _t1, QString const & _t2, QString const & _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2, _t3);
}

// SIGNAL 1
void CXX::Core::init_failed(QString const & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void CXX::Core::no_pairing_file(QString const & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void CXX::Core::sleepy_time_detected()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void CXX::Core::device_became_wired(QString const & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}
QT_WARNING_POP
