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

template <> constexpr inline auto MxcAnimatedImage::qt_create_metaobjectdata<qt_meta_tag_ZN16MxcAnimatedImageE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "MxcAnimatedImage",
        "QML.Element",
        "auto",
        "roomChanged",
        "",
        "eventIdChanged",
        "animatableChanged",
        "loadedChanged",
        "playChanged",
        "startDownload",
        "newFrame",
        "frame",
        "roomm",
        "TimelineModel*",
        "eventId",
        "animatable",
        "loaded",
        "play"
    };

    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 'animatableChanged'
        QtMocHelpers::SignalData<void()>(6, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'loadedChanged'
        QtMocHelpers::SignalData<void()>(7, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'playChanged'
        QtMocHelpers::SignalData<void()>(8, 4, QMC::AccessPublic, QMetaType::Void),
        // Slot 'startDownload'
        QtMocHelpers::SlotData<void()>(9, 4, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'newFrame'
        QtMocHelpers::SlotData<void(int)>(10, 4, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 11 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'roomm'
        QtMocHelpers::PropertyData<TimelineModel*>(12, 0x80000000 | 13, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::Required, 0),
        // property 'eventId'
        QtMocHelpers::PropertyData<QString>(14, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
        // property 'animatable'
        QtMocHelpers::PropertyData<bool>(15, QMetaType::Bool, QMC::DefaultPropertyFlags, 2),
        // property 'loaded'
        QtMocHelpers::PropertyData<bool>(16, QMetaType::Bool, QMC::DefaultPropertyFlags, 3),
        // property 'play'
        QtMocHelpers::PropertyData<bool>(17, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 4),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<MxcAnimatedImage, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject MxcAnimatedImage::staticMetaObject = { {
    QMetaObject::SuperData::link<QQuickItem::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16MxcAnimatedImageE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16MxcAnimatedImageE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN16MxcAnimatedImageE_t>.metaTypes,
    nullptr
} };

void MxcAnimatedImage::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<MxcAnimatedImage *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->roomChanged(); break;
        case 1: _t->eventIdChanged(); break;
        case 2: _t->animatableChanged(); break;
        case 3: _t->loadedChanged(); break;
        case 4: _t->playChanged(); break;
        case 5: _t->startDownload(); break;
        case 6: _t->newFrame((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (MxcAnimatedImage::*)()>(_a, &MxcAnimatedImage::roomChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (MxcAnimatedImage::*)()>(_a, &MxcAnimatedImage::eventIdChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (MxcAnimatedImage::*)()>(_a, &MxcAnimatedImage::animatableChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (MxcAnimatedImage::*)()>(_a, &MxcAnimatedImage::loadedChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (MxcAnimatedImage::*)()>(_a, &MxcAnimatedImage::playChanged, 4))
            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->animatable(); break;
        case 3: *reinterpret_cast<bool*>(_v) = _t->loaded(); break;
        case 4: *reinterpret_cast<bool*>(_v) = _t->play(); 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->setPlay(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

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

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

int MxcAnimatedImage::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QQuickItem::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 7)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 7;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 7)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 7;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 5;
    }
    return _id;
}

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

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

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

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

// SIGNAL 4
void MxcAnimatedImage::playChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}
QT_WARNING_POP
