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

#include "../../../../../../../../../mlt/src/modules/glaxnimate/glaxnimate/src/core/glaxnimate/model/animation_container.hpp"
#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 'animation_container.hpp' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.1. 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_ZN10glaxnimate5model18AnimationContainerE_t {};
} // unnamed namespace

template <> constexpr inline auto glaxnimate::model::AnimationContainer::qt_create_metaobjectdata<qt_meta_tag_ZN10glaxnimate5model18AnimationContainerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "glaxnimate::model::AnimationContainer",
        "first_frame",
        "property float",
        "last_frame",
        "first_frame_changed",
        "",
        "last_frame_changed",
        "time_visible_changed",
        "visible",
        "on_first_frame_changed",
        "on_last_frame_changed",
        "time_visible",
        "duration"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'first_frame_changed'
        QtMocHelpers::SignalData<void(float)>(4, 5, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 5 },
        }}),
        // Signal 'last_frame_changed'
        QtMocHelpers::SignalData<void(float)>(6, 5, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 5 },
        }}),
        // Signal 'time_visible_changed'
        QtMocHelpers::SignalData<void(bool)>(7, 5, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 8 },
        }}),
        // Slot 'on_first_frame_changed'
        QtMocHelpers::SlotData<void(float)>(9, 5, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Float, 5 },
        }}),
        // Slot 'on_last_frame_changed'
        QtMocHelpers::SlotData<void(float)>(10, 5, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Float, 5 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'first_frame'
        QtMocHelpers::PropertyData<float>(1, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable),
        // property 'last_frame'
        QtMocHelpers::PropertyData<float>(3, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable),
        // property 'time_visible'
        QtMocHelpers::PropertyData<bool>(11, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'duration'
        QtMocHelpers::PropertyData<float>(12, QMetaType::Float, QMC::DefaultPropertyFlags),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    2 },
    });
    return QtMocHelpers::metaObjectData<AnimationContainer, qt_meta_tag_ZN10glaxnimate5model18AnimationContainerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject glaxnimate::model::AnimationContainer::staticMetaObject = { {
    QMetaObject::SuperData::link<Object::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10glaxnimate5model18AnimationContainerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10glaxnimate5model18AnimationContainerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10glaxnimate5model18AnimationContainerE_t>.metaTypes,
    nullptr
} };

void glaxnimate::model::AnimationContainer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<AnimationContainer *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->first_frame_changed((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 1: _t->last_frame_changed((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 2: _t->time_visible_changed((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 3: _t->on_first_frame_changed((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 4: _t->on_last_frame_changed((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (AnimationContainer::*)(float )>(_a, &AnimationContainer::first_frame_changed, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (AnimationContainer::*)(float )>(_a, &AnimationContainer::last_frame_changed, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (AnimationContainer::*)(bool )>(_a, &AnimationContainer::time_visible_changed, 2))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<float*>(_v) = _t->get_first_frame(); break;
        case 1: *reinterpret_cast<float*>(_v) = _t->get_last_frame(); break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->time_visible(); break;
        case 3: *reinterpret_cast<float*>(_v) = _t->duration(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->set_first_frame(*reinterpret_cast<float*>(_v)); break;
        case 1: _t->set_last_frame(*reinterpret_cast<float*>(_v)); break;
        default: break;
        }
    }
}

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

void *glaxnimate::model::AnimationContainer::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10glaxnimate5model18AnimationContainerE_t>.strings))
        return static_cast<void*>(this);
    return Object::qt_metacast(_clname);
}

int glaxnimate::model::AnimationContainer::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Object::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;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 4;
    }
    return _id;
}

// SIGNAL 0
void glaxnimate::model::AnimationContainer::first_frame_changed(float _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void glaxnimate::model::AnimationContainer::last_frame_changed(float _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void glaxnimate::model::AnimationContainer::time_visible_changed(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}
QT_WARNING_POP
