/****************************************************************************
** Meta object code from reading C++ file 'qlottieanimation_p.h'
**
** Created by: The Qt Meta Object Compiler version 69 (Qt 6.12.0)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../../../qtlottie/src/qml/qlottieanimation_p.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 'qlottieanimation_p.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.12.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_ZN16QLottieAnimationE_t {};
} // unnamed namespace

template <> constexpr inline auto QLottieAnimation::qt_create_metaobjectdata<qt_meta_tag_ZN16QLottieAnimationE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "QLottieAnimation",
        "QML.Element",
        "LottieAnimation",
        "QML.AddedInVersion",
        "256",
        "statusChanged",
        "",
        "qualityChanged",
        "sourceChanged",
        "finished",
        "frameRateChanged",
        "autoPlayChanged",
        "loopsChanged",
        "directionChanged",
        "startFrameChanged",
        "endFrameChanged",
        "currentFrameChanged",
        "loadFinished",
        "json",
        "renderNextFrame",
        "start",
        "play",
        "pause",
        "togglePause",
        "stop",
        "gotoAndPlay",
        "frame",
        "frameMarker",
        "gotoAndStop",
        "getDuration",
        "inFrames",
        "source",
        "QUrl",
        "frameRate",
        "startFrame",
        "endFrame",
        "currentFrame",
        "status",
        "Status",
        "quality",
        "Quality",
        "autoPlay",
        "loops",
        "direction",
        "Direction",
        "Null",
        "Loading",
        "Ready",
        "Error",
        "LowQuality",
        "MediumQuality",
        "HighQuality",
        "Forward",
        "Reverse",
        "LoopCount",
        "Infinite"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'statusChanged'
        QtMocHelpers::SignalData<void()>(5, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'qualityChanged'
        QtMocHelpers::SignalData<void()>(7, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'sourceChanged'
        QtMocHelpers::SignalData<void()>(8, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'finished'
        QtMocHelpers::SignalData<void()>(9, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'frameRateChanged'
        QtMocHelpers::SignalData<void()>(10, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'autoPlayChanged'
        QtMocHelpers::SignalData<void()>(11, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'loopsChanged'
        QtMocHelpers::SignalData<void()>(12, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'directionChanged'
        QtMocHelpers::SignalData<void()>(13, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'startFrameChanged'
        QtMocHelpers::SignalData<void()>(14, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'endFrameChanged'
        QtMocHelpers::SignalData<void()>(15, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'currentFrameChanged'
        QtMocHelpers::SignalData<void()>(16, 6, QMC::AccessPublic, QMetaType::Void),
        // Slot 'loadFinished'
        QtMocHelpers::SlotData<void(const QByteArray &)>(17, 6, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::QByteArray, 18 },
        }}),
        // Slot 'renderNextFrame'
        QtMocHelpers::SlotData<void()>(19, 6, QMC::AccessProtected, QMetaType::Void),
        // Method 'start'
        QtMocHelpers::MethodData<void()>(20, 6, QMC::AccessPublic, QMetaType::Void),
        // Method 'play'
        QtMocHelpers::MethodData<void()>(21, 6, QMC::AccessPublic, QMetaType::Void),
        // Method 'pause'
        QtMocHelpers::MethodData<void()>(22, 6, QMC::AccessPublic, QMetaType::Void),
        // Method 'togglePause'
        QtMocHelpers::MethodData<void()>(23, 6, QMC::AccessPublic, QMetaType::Void),
        // Method 'stop'
        QtMocHelpers::MethodData<void()>(24, 6, QMC::AccessPublic, QMetaType::Void),
        // Method 'gotoAndPlay'
        QtMocHelpers::MethodData<void(int)>(25, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 26 },
        }}),
        // Method 'gotoAndPlay'
        QtMocHelpers::MethodData<bool(const QString &)>(25, 6, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 27 },
        }}),
        // Method 'gotoAndStop'
        QtMocHelpers::MethodData<void(int)>(28, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 26 },
        }}),
        // Method 'gotoAndStop'
        QtMocHelpers::MethodData<bool(const QString &)>(28, 6, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 27 },
        }}),
        // Method 'getDuration'
        QtMocHelpers::MethodData<double(bool)>(29, 6, QMC::AccessPublic, QMetaType::Double, {{
            { QMetaType::Bool, 30 },
        }}),
        // Method 'getDuration'
        QtMocHelpers::MethodData<double()>(29, 6, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Double),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'source'
        QtMocHelpers::PropertyData<QUrl>(31, 0x80000000 | 32, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 2),
        // property 'frameRate'
        QtMocHelpers::PropertyData<int>(33, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::Resettable | QMC::StdCppSet, 4),
        // property 'startFrame'
        QtMocHelpers::PropertyData<int>(34, QMetaType::Int, QMC::DefaultPropertyFlags, 8),
        // property 'endFrame'
        QtMocHelpers::PropertyData<int>(35, QMetaType::Int, QMC::DefaultPropertyFlags, 9),
        // property 'currentFrame'
        QtMocHelpers::PropertyData<int>(36, QMetaType::Int, QMC::DefaultPropertyFlags, 10, 0x60c),
        // property 'status'
        QtMocHelpers::PropertyData<enum Status>(37, 0x80000000 | 38, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
        // property 'quality'
        QtMocHelpers::PropertyData<enum Quality>(39, 0x80000000 | 40, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 1),
        // property 'autoPlay'
        QtMocHelpers::PropertyData<bool>(41, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable, 5),
        // property 'loops'
        QtMocHelpers::PropertyData<int>(42, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable, 6),
        // property 'direction'
        QtMocHelpers::PropertyData<enum Direction>(43, 0x80000000 | 44, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 7),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'Status'
        QtMocHelpers::EnumData<enum Status>(38, 38, QMC::EnumFlags{}).add({
            {   45, Status::Null },
            {   46, Status::Loading },
            {   47, Status::Ready },
            {   48, Status::Error },
        }),
        // enum 'Quality'
        QtMocHelpers::EnumData<enum Quality>(40, 40, QMC::EnumFlags{}).add({
            {   49, Quality::LowQuality },
            {   50, Quality::MediumQuality },
            {   51, Quality::HighQuality },
        }),
        // enum 'Direction'
        QtMocHelpers::EnumData<enum Direction>(44, 44, QMC::EnumFlags{}).add({
            {   52, Direction::Forward },
            {   53, Direction::Reverse },
        }),
        // enum 'LoopCount'
        QtMocHelpers::EnumData<enum LoopCount>(54, 54, QMC::EnumFlags{}).add({
            {   55, LoopCount::Infinite },
        }),
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
    });
    return QtMocHelpers::metaObjectData<QLottieAnimation, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject QLottieAnimation::staticMetaObject = { {
    QMetaObject::SuperData::link<QQuickPaintedItem::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16QLottieAnimationE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16QLottieAnimationE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN16QLottieAnimationE_t>.metaTypes,
    nullptr
} };

void QLottieAnimation::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QLottieAnimation *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->statusChanged(); break;
        case 1: _t->qualityChanged(); break;
        case 2: _t->sourceChanged(); break;
        case 3: _t->finished(); break;
        case 4: _t->frameRateChanged(); break;
        case 5: _t->autoPlayChanged(); break;
        case 6: _t->loopsChanged(); break;
        case 7: _t->directionChanged(); break;
        case 8: _t->startFrameChanged(); break;
        case 9: _t->endFrameChanged(); break;
        case 10: _t->currentFrameChanged(); break;
        case 11: _t->loadFinished((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1]))); break;
        case 12: _t->renderNextFrame(); break;
        case 13: _t->start(); break;
        case 14: _t->play(); break;
        case 15: _t->pause(); break;
        case 16: _t->togglePause(); break;
        case 17: _t->stop(); break;
        case 18: _t->gotoAndPlay((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 19: { bool _r = _t->gotoAndPlay((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 20: _t->gotoAndStop((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 21: { bool _r = _t->gotoAndStop((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 22: { double _r = _t->getDuration((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])));
            if (_a[0]) *reinterpret_cast<double*>(_a[0]) = std::move(_r); }  break;
        case 23: { double _r = _t->getDuration();
            if (_a[0]) *reinterpret_cast<double*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QLottieAnimation::*)()>(_a, &QLottieAnimation::statusChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (QLottieAnimation::*)()>(_a, &QLottieAnimation::qualityChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (QLottieAnimation::*)()>(_a, &QLottieAnimation::sourceChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (QLottieAnimation::*)()>(_a, &QLottieAnimation::finished, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (QLottieAnimation::*)()>(_a, &QLottieAnimation::frameRateChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (QLottieAnimation::*)()>(_a, &QLottieAnimation::autoPlayChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (QLottieAnimation::*)()>(_a, &QLottieAnimation::loopsChanged, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (QLottieAnimation::*)()>(_a, &QLottieAnimation::directionChanged, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (QLottieAnimation::*)()>(_a, &QLottieAnimation::startFrameChanged, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (QLottieAnimation::*)()>(_a, &QLottieAnimation::endFrameChanged, 9))
            return;
        if (QtMocHelpers::indexOfMethod<void (QLottieAnimation::*)()>(_a, &QLottieAnimation::currentFrameChanged, 10))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QUrl*>(_v) = _t->source(); break;
        case 1: *reinterpret_cast<int*>(_v) = _t->frameRate(); break;
        case 2: *reinterpret_cast<int*>(_v) = _t->startFrame(); break;
        case 3: *reinterpret_cast<int*>(_v) = _t->endFrame(); break;
        case 4: *reinterpret_cast<int*>(_v) = _t->currentFrame(); break;
        case 5: *reinterpret_cast<enum Status*>(_v) = _t->status(); break;
        case 6: *reinterpret_cast<enum Quality*>(_v) = _t->quality(); break;
        case 7: *reinterpret_cast<bool*>(_v) = _t->m_autoPlay; break;
        case 8: *reinterpret_cast<int*>(_v) = _t->m_loops; break;
        case 9: *reinterpret_cast<enum Direction*>(_v) = _t->direction(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setSource(*reinterpret_cast<QUrl*>(_v)); break;
        case 1: _t->setFrameRate(*reinterpret_cast<int*>(_v)); break;
        case 5: _t->setStatus(*reinterpret_cast<enum Status*>(_v)); break;
        case 6: _t->setQuality(*reinterpret_cast<enum Quality*>(_v)); break;
        case 7:
            if (QtMocHelpers::setProperty(_t->m_autoPlay, *reinterpret_cast<bool*>(_v)))
                Q_EMIT _t->autoPlayChanged();
            break;
        case 8:
            if (QtMocHelpers::setProperty(_t->m_loops, *reinterpret_cast<int*>(_v)))
                Q_EMIT _t->loopsChanged();
            break;
        case 9: _t->setDirection(*reinterpret_cast<enum Direction*>(_v)); break;
        default: break;
        }
    }
    if (_c == QMetaObject::ResetProperty) {
        switch (_id) {
        case 1: _t->resetFrameRate(); break;
        default: break;
        }
    }
}

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

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

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

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

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

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

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

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

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

// SIGNAL 6
void QLottieAnimation::loopsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}

// SIGNAL 7
void QLottieAnimation::directionChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
}

// SIGNAL 8
void QLottieAnimation::startFrameChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 8, nullptr);
}

// SIGNAL 9
void QLottieAnimation::endFrameChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 9, nullptr);
}

// SIGNAL 10
void QLottieAnimation::currentFrameChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 10, nullptr);
}
QT_WARNING_POP
