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

template <> constexpr inline auto WebRTCSession::qt_create_metaobjectdata<qt_meta_tag_ZN13WebRTCSessionE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "WebRTCSession",
        "offerCreated",
        "",
        "std::string",
        "sdp",
        "std::vector<mtx::events::voip::CallCandidates::Candidate>",
        "answerCreated",
        "newICECandidate",
        "mtx::events::voip::CallCandidates::Candidate",
        "stateChanged",
        "webrtc::State",
        "setState",
        "state"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'offerCreated'
        QtMocHelpers::SignalData<void(const std::string &, const std::vector<mtx::events::voip::CallCandidates::Candidate> &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 }, { 0x80000000 | 5, 2 },
        }}),
        // Signal 'answerCreated'
        QtMocHelpers::SignalData<void(const std::string &, const std::vector<mtx::events::voip::CallCandidates::Candidate> &)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 }, { 0x80000000 | 5, 2 },
        }}),
        // Signal 'newICECandidate'
        QtMocHelpers::SignalData<void(const mtx::events::voip::CallCandidates::Candidate &)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 2 },
        }}),
        // Signal 'stateChanged'
        QtMocHelpers::SignalData<void(webrtc::State)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 2 },
        }}),
        // Slot 'setState'
        QtMocHelpers::SlotData<void(webrtc::State)>(11, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 10, 12 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<WebRTCSession, qt_meta_tag_ZN13WebRTCSessionE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject WebRTCSession::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13WebRTCSessionE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13WebRTCSessionE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN13WebRTCSessionE_t>.metaTypes,
    nullptr
} };

void WebRTCSession::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<WebRTCSession *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->offerCreated((*reinterpret_cast<std::add_pointer_t<std::string>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<std::vector<mtx::events::voip::CallCandidates::Candidate>>>(_a[2]))); break;
        case 1: _t->answerCreated((*reinterpret_cast<std::add_pointer_t<std::string>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<std::vector<mtx::events::voip::CallCandidates::Candidate>>>(_a[2]))); break;
        case 2: _t->newICECandidate((*reinterpret_cast<std::add_pointer_t<mtx::events::voip::CallCandidates::Candidate>>(_a[1]))); break;
        case 3: _t->stateChanged((*reinterpret_cast<std::add_pointer_t<webrtc::State>>(_a[1]))); break;
        case 4: _t->setState((*reinterpret_cast<std::add_pointer_t<webrtc::State>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (WebRTCSession::*)(const std::string & , const std::vector<mtx::events::voip::CallCandidates::Candidate> & )>(_a, &WebRTCSession::offerCreated, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (WebRTCSession::*)(const std::string & , const std::vector<mtx::events::voip::CallCandidates::Candidate> & )>(_a, &WebRTCSession::answerCreated, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (WebRTCSession::*)(const mtx::events::voip::CallCandidates::Candidate & )>(_a, &WebRTCSession::newICECandidate, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (WebRTCSession::*)(webrtc::State )>(_a, &WebRTCSession::stateChanged, 3))
            return;
    }
}

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

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

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

// SIGNAL 0
void WebRTCSession::offerCreated(const std::string & _t1, const std::vector<mtx::events::voip::CallCandidates::Candidate> & _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2);
}

// SIGNAL 1
void WebRTCSession::answerCreated(const std::string & _t1, const std::vector<mtx::events::voip::CallCandidates::Candidate> & _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2);
}

// SIGNAL 2
void WebRTCSession::newICECandidate(const mtx::events::voip::CallCandidates::Candidate & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void WebRTCSession::stateChanged(webrtc::State _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}
namespace {
struct qt_meta_tag_ZN6webrtcE_t {};
} // unnamed namespace

template <> constexpr inline auto webrtc::qt_create_metaobjectdata<qt_meta_tag_ZN6webrtcE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "webrtc",
        "QML.Element",
        "Voip",
        "CallType",
        "VOICE",
        "VIDEO",
        "SCREEN",
        "ScreenShareType",
        "X11",
        "XDP",
        "D3D11",
        "State",
        "DISCONNECTED",
        "ICEFAILED",
        "INITIATING",
        "INITIATED",
        "OFFERSENT",
        "ANSWERSENT",
        "CONNECTING",
        "CONNECTED"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'CallType'
        QtMocHelpers::EnumData<CallType>(3, 3, QMC::EnumIsScoped).add({
            {    4, CallType::VOICE },
            {    5, CallType::VIDEO },
            {    6, CallType::SCREEN },
        }),
        // enum 'ScreenShareType'
        QtMocHelpers::EnumData<ScreenShareType>(7, 7, QMC::EnumIsScoped).add({
            {    8, ScreenShareType::X11 },
            {    9, ScreenShareType::XDP },
            {   10, ScreenShareType::D3D11 },
        }),
        // enum 'State'
        QtMocHelpers::EnumData<State>(11, 11, QMC::EnumIsScoped).add({
            {   12, State::DISCONNECTED },
            {   13, State::ICEFAILED },
            {   14, State::INITIATING },
            {   15, State::INITIATED },
            {   16, State::OFFERSENT },
            {   17, State::ANSWERSENT },
            {   18, State::CONNECTING },
            {   19, State::CONNECTED },
        }),
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<void, qt_meta_tag_ZN6webrtcE_t>(QMC::PropertyAccessInStaticMetaCall, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}

static constexpr auto qt_staticMetaObjectContent_ZN6webrtcE =
    webrtc::qt_create_metaobjectdata<qt_meta_tag_ZN6webrtcE_t>();
static constexpr auto qt_staticMetaObjectStaticContent_ZN6webrtcE =
    qt_staticMetaObjectContent_ZN6webrtcE.staticData;
static constexpr auto qt_staticMetaObjectRelocatingContent_ZN6webrtcE =
    qt_staticMetaObjectContent_ZN6webrtcE.relocatingData;

Q_CONSTINIT const QMetaObject webrtc::staticMetaObject = { {
    nullptr,
    qt_staticMetaObjectStaticContent_ZN6webrtcE.stringdata,
    qt_staticMetaObjectStaticContent_ZN6webrtcE.data,
    nullptr,
    nullptr,
    qt_staticMetaObjectRelocatingContent_ZN6webrtcE.metaTypes,
    nullptr
} };

QT_WARNING_POP
