/****************************************************************************
** Meta object code from reading C++ file 'MxcMediaProxy.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/ui/MxcMediaProxy.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 'MxcMediaProxy.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_ZN13MxcMediaProxyE_t {};
} // unnamed namespace

template <> constexpr inline auto MxcMediaProxy::qt_create_metaobjectdata<qt_meta_tag_ZN13MxcMediaProxyE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "MxcMediaProxy",
        "QML.Element",
        "MxcMedia",
        "roomChanged",
        "",
        "eventIdChanged",
        "loadedChanged",
        "newBuffer",
        "QUrl",
        "QIODevice*",
        "buf",
        "orientationChanged",
        "volumeChanged",
        "mutedChanged",
        "startDownload",
        "onlyCached",
        "roomm",
        "TimelineModel*",
        "eventId",
        "loaded",
        "orientation",
        "volume",
        "muted"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'roomChanged'
        QtMocHelpers::SignalData<void()>(3, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'eventIdChanged'
        QtMocHelpers::SignalData<void()>(5, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'loadedChanged'
        QtMocHelpers::SignalData<void()>(6, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'newBuffer'
        QtMocHelpers::SignalData<void(QUrl, QIODevice *)>(7, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 4 }, { 0x80000000 | 9, 10 },
        }}),
        // Signal 'orientationChanged'
        QtMocHelpers::SignalData<void()>(11, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'volumeChanged'
        QtMocHelpers::SignalData<void()>(12, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'mutedChanged'
        QtMocHelpers::SignalData<void()>(13, 4, QMC::AccessPublic, QMetaType::Void),
        // Slot 'startDownload'
        QtMocHelpers::SlotData<void(bool)>(14, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 15 },
        }}),
        // Slot 'startDownload'
        QtMocHelpers::SlotData<void()>(14, 4, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'roomm'
        QtMocHelpers::PropertyData<TimelineModel*>(16, 0x80000000 | 17, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::Required, 0),
        // property 'eventId'
        QtMocHelpers::PropertyData<QString>(18, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
        // property 'loaded'
        QtMocHelpers::PropertyData<bool>(19, QMetaType::Bool, QMC::DefaultPropertyFlags, 2),
        // property 'orientation'
        QtMocHelpers::PropertyData<int>(20, QMetaType::Int, QMC::DefaultPropertyFlags, 4),
        // property 'volume'
        QtMocHelpers::PropertyData<float>(21, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 5),
        // property 'muted'
        QtMocHelpers::PropertyData<bool>(22, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 6),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<MxcMediaProxy, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject MxcMediaProxy::staticMetaObject = { {
    QMetaObject::SuperData::link<QMediaPlayer::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13MxcMediaProxyE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13MxcMediaProxyE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN13MxcMediaProxyE_t>.metaTypes,
    nullptr
} };

void MxcMediaProxy::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<MxcMediaProxy *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->roomChanged(); break;
        case 1: _t->eventIdChanged(); break;
        case 2: _t->loadedChanged(); break;
        case 3: _t->newBuffer((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QIODevice*>>(_a[2]))); break;
        case 4: _t->orientationChanged(); break;
        case 5: _t->volumeChanged(); break;
        case 6: _t->mutedChanged(); break;
        case 7: _t->startDownload((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 8: _t->startDownload(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QIODevice* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (MxcMediaProxy::*)()>(_a, &MxcMediaProxy::roomChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (MxcMediaProxy::*)()>(_a, &MxcMediaProxy::eventIdChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (MxcMediaProxy::*)()>(_a, &MxcMediaProxy::loadedChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (MxcMediaProxy::*)(QUrl , QIODevice * )>(_a, &MxcMediaProxy::newBuffer, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (MxcMediaProxy::*)()>(_a, &MxcMediaProxy::orientationChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (MxcMediaProxy::*)()>(_a, &MxcMediaProxy::volumeChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (MxcMediaProxy::*)()>(_a, &MxcMediaProxy::mutedChanged, 6))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<TimelineModel**>(_v) = _t->room(); break;
        case 1: *reinterpret_cast<QString*>(_v) = _t->eventId(); break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->loaded(); break;
        case 3: *reinterpret_cast<int*>(_v) = _t->orientation(); break;
        case 4: *reinterpret_cast<float*>(_v) = _t->volume(); break;
        case 5: *reinterpret_cast<bool*>(_v) = _t->muted(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setRoom(*reinterpret_cast<TimelineModel**>(_v)); break;
        case 1: _t->setEventId(*reinterpret_cast<QString*>(_v)); break;
        case 4: _t->setVolume(*reinterpret_cast<float*>(_v)); break;
        case 5: _t->setMuted(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

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

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

int MxcMediaProxy::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QMediaPlayer::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)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 6;
    }
    return _id;
}

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

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

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

// SIGNAL 3
void MxcMediaProxy::newBuffer(QUrl _t1, QIODevice * _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1, _t2);
}

// SIGNAL 4
void MxcMediaProxy::orientationChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void MxcMediaProxy::volumeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void MxcMediaProxy::mutedChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}
QT_WARNING_POP
