/****************************************************************************
** Meta object code from reading C++ file 'sharedservicesadapter.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 "../../../jami-client-qt/src/app/sharedservicesadapter.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 'sharedservicesadapter.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_ZN21SharedServicesAdapterE_t {};
} // unnamed namespace

template <> constexpr inline auto SharedServicesAdapter::qt_create_metaobjectdata<qt_meta_tag_ZN21SharedServicesAdapterE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "SharedServicesAdapter",
        "QML.Singleton",
        "true",
        "peerServicesReceived",
        "",
        "requestId",
        "accountId",
        "peerUri",
        "status",
        "QVariantList",
        "services",
        "tunnelOpened",
        "tunnelId",
        "localPort",
        "tunnelClosed",
        "reason",
        "refreshSharedServices",
        "getSharedServices",
        "addSharedService",
        "QVariantMap",
        "service",
        "updateSharedService",
        "removeSharedService",
        "serviceId",
        "queryPeerServices",
        "openServiceTunnel",
        "peerDevice",
        "serviceName",
        "closeServiceTunnel",
        "getActiveTunnels",
        "PeerServicesStatus",
        "OK",
        "NoDevices",
        "Unreachable",
        "Timeout",
        "InternalError"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'peerServicesReceived'
        QtMocHelpers::SignalData<void(quint32, const QString &, const QString &, int, const QVariantList &)>(3, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 5 }, { QMetaType::QString, 6 }, { QMetaType::QString, 7 }, { QMetaType::Int, 8 },
            { 0x80000000 | 9, 10 },
        }}),
        // Signal 'tunnelOpened'
        QtMocHelpers::SignalData<void(const QString &, const QString &, quint16)>(11, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 6 }, { QMetaType::QString, 12 }, { QMetaType::UShort, 13 },
        }}),
        // Signal 'tunnelClosed'
        QtMocHelpers::SignalData<void(const QString &, const QString &, const QString &)>(14, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 6 }, { QMetaType::QString, 12 }, { QMetaType::QString, 15 },
        }}),
        // Signal 'refreshSharedServices'
        QtMocHelpers::SignalData<void()>(16, 4, QMC::AccessPublic, QMetaType::Void),
        // Method 'getSharedServices'
        QtMocHelpers::MethodData<QVariantList(const QString &)>(17, 4, QMC::AccessPublic, 0x80000000 | 9, {{
            { QMetaType::QString, 6 },
        }}),
        // Method 'getSharedServices'
        QtMocHelpers::MethodData<QVariantList()>(17, 4, QMC::AccessPublic | QMC::MethodCloned, 0x80000000 | 9),
        // Method 'addSharedService'
        QtMocHelpers::MethodData<QString(const QString &, const QVariantMap &)>(18, 4, QMC::AccessPublic, QMetaType::QString, {{
            { QMetaType::QString, 6 }, { 0x80000000 | 19, 20 },
        }}),
        // Method 'updateSharedService'
        QtMocHelpers::MethodData<bool(const QString &, const QVariantMap &)>(21, 4, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 6 }, { 0x80000000 | 19, 20 },
        }}),
        // Method 'removeSharedService'
        QtMocHelpers::MethodData<bool(const QString &, const QString &)>(22, 4, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 6 }, { QMetaType::QString, 23 },
        }}),
        // Method 'queryPeerServices'
        QtMocHelpers::MethodData<quint32(const QString &, const QString &)>(24, 4, QMC::AccessPublic, QMetaType::UInt, {{
            { QMetaType::QString, 6 }, { QMetaType::QString, 7 },
        }}),
        // Method 'openServiceTunnel'
        QtMocHelpers::MethodData<QString(const QString &, const QString &, const QString &, const QString &, const QString &, quint16)>(25, 4, QMC::AccessPublic, QMetaType::QString, {{
            { QMetaType::QString, 6 }, { QMetaType::QString, 7 }, { QMetaType::QString, 26 }, { QMetaType::QString, 23 },
            { QMetaType::QString, 27 }, { QMetaType::UShort, 13 },
        }}),
        // Method 'openServiceTunnel'
        QtMocHelpers::MethodData<QString(const QString &, const QString &, const QString &, const QString &, const QString &)>(25, 4, QMC::AccessPublic | QMC::MethodCloned, QMetaType::QString, {{
            { QMetaType::QString, 6 }, { QMetaType::QString, 7 }, { QMetaType::QString, 26 }, { QMetaType::QString, 23 },
            { QMetaType::QString, 27 },
        }}),
        // Method 'closeServiceTunnel'
        QtMocHelpers::MethodData<bool(const QString &, const QString &)>(28, 4, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 6 }, { QMetaType::QString, 12 },
        }}),
        // Method 'getActiveTunnels'
        QtMocHelpers::MethodData<QVariantList(const QString &) const>(29, 4, QMC::AccessPublic, 0x80000000 | 9, {{
            { QMetaType::QString, 6 },
        }}),
        // Method 'getActiveTunnels'
        QtMocHelpers::MethodData<QVariantList() const>(29, 4, QMC::AccessPublic | QMC::MethodCloned, 0x80000000 | 9),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'PeerServicesStatus'
        QtMocHelpers::EnumData<enum PeerServicesStatus>(30, 30, QMC::EnumIsScoped).add({
            {   31, PeerServicesStatus::OK },
            {   32, PeerServicesStatus::NoDevices },
            {   33, PeerServicesStatus::Unreachable },
            {   34, PeerServicesStatus::Timeout },
            {   35, PeerServicesStatus::InternalError },
        }),
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<SharedServicesAdapter, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject SharedServicesAdapter::staticMetaObject = { {
    QMetaObject::SuperData::link<QmlAdapterBase::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN21SharedServicesAdapterE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN21SharedServicesAdapterE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN21SharedServicesAdapterE_t>.metaTypes,
    nullptr
} };

void SharedServicesAdapter::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<SharedServicesAdapter *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->peerServicesReceived((*reinterpret_cast<std::add_pointer_t<quint32>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[4])),(*reinterpret_cast<std::add_pointer_t<QVariantList>>(_a[5]))); break;
        case 1: _t->tunnelOpened((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<quint16>>(_a[3]))); break;
        case 2: _t->tunnelClosed((*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 3: _t->refreshSharedServices(); break;
        case 4: { QVariantList _r = _t->getSharedServices((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QVariantList*>(_a[0]) = std::move(_r); }  break;
        case 5: { QVariantList _r = _t->getSharedServices();
            if (_a[0]) *reinterpret_cast<QVariantList*>(_a[0]) = std::move(_r); }  break;
        case 6: { QString _r = _t->addSharedService((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 7: { bool _r = _t->updateSharedService((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 8: { bool _r = _t->removeSharedService((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 9: { quint32 _r = _t->queryPeerServices((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])));
            if (_a[0]) *reinterpret_cast<quint32*>(_a[0]) = std::move(_r); }  break;
        case 10: { QString _r = _t->openServiceTunnel((*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])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[4])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[5])),(*reinterpret_cast<std::add_pointer_t<quint16>>(_a[6])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 11: { QString _r = _t->openServiceTunnel((*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])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[4])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[5])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 12: { bool _r = _t->closeServiceTunnel((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 13: { QVariantList _r = _t->getActiveTunnels((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QVariantList*>(_a[0]) = std::move(_r); }  break;
        case 14: { QVariantList _r = _t->getActiveTunnels();
            if (_a[0]) *reinterpret_cast<QVariantList*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (SharedServicesAdapter::*)(quint32 , const QString & , const QString & , int , const QVariantList & )>(_a, &SharedServicesAdapter::peerServicesReceived, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (SharedServicesAdapter::*)(const QString & , const QString & , quint16 )>(_a, &SharedServicesAdapter::tunnelOpened, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (SharedServicesAdapter::*)(const QString & , const QString & , const QString & )>(_a, &SharedServicesAdapter::tunnelClosed, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (SharedServicesAdapter::*)()>(_a, &SharedServicesAdapter::refreshSharedServices, 3))
            return;
    }
}

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

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

int SharedServicesAdapter::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QmlAdapterBase::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 15)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 15;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 15)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 15;
    }
    return _id;
}

// SIGNAL 0
void SharedServicesAdapter::peerServicesReceived(quint32 _t1, const QString & _t2, const QString & _t3, int _t4, const QVariantList & _t5)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2, _t3, _t4, _t5);
}

// SIGNAL 1
void SharedServicesAdapter::tunnelOpened(const QString & _t1, const QString & _t2, quint16 _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2, _t3);
}

// SIGNAL 2
void SharedServicesAdapter::tunnelClosed(const QString & _t1, const QString & _t2, const QString & _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1, _t2, _t3);
}

// SIGNAL 3
void SharedServicesAdapter::refreshSharedServices()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}
QT_WARNING_POP
