/****************************************************************************
** Meta object code from reading C++ file 'qaxisaccumulator.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 "../../../../../qt3d/src/input/frontend/qaxisaccumulator.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 'qaxisaccumulator.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_ZN9Qt3DInput16QAxisAccumulatorE_t {};
} // unnamed namespace

template <> constexpr inline auto Qt3DInput::QAxisAccumulator::qt_create_metaobjectdata<qt_meta_tag_ZN9Qt3DInput16QAxisAccumulatorE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Qt3DInput::QAxisAccumulator",
        "sourceAxisChanged",
        "",
        "Qt3DInput::QAxis*",
        "sourceAxis",
        "sourceAxisTypeChanged",
        "QAxisAccumulator::SourceAxisType",
        "sourceAxisType",
        "valueChanged",
        "value",
        "velocityChanged",
        "scaleChanged",
        "scale",
        "setSourceAxis",
        "setSourceAxisType",
        "setScale",
        "SourceAxisType",
        "velocity",
        "Velocity",
        "Acceleration"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'sourceAxisChanged'
        QtMocHelpers::SignalData<void(Qt3DInput::QAxis *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'sourceAxisTypeChanged'
        QtMocHelpers::SignalData<void(QAxisAccumulator::SourceAxisType)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
        // Signal 'valueChanged'
        QtMocHelpers::SignalData<void(float)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 9 },
        }}),
        // Signal 'velocityChanged'
        QtMocHelpers::SignalData<void(float)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 9 },
        }}),
        // Signal 'scaleChanged'
        QtMocHelpers::SignalData<void(float)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 12 },
        }}),
        // Slot 'setSourceAxis'
        QtMocHelpers::SlotData<void(Qt3DInput::QAxis *)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Slot 'setSourceAxisType'
        QtMocHelpers::SlotData<void(QAxisAccumulator::SourceAxisType)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
        // Slot 'setScale'
        QtMocHelpers::SlotData<void(float)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 12 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'sourceAxis'
        QtMocHelpers::PropertyData<Qt3DInput::QAxis*>(4, 0x80000000 | 3, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
        // property 'sourceAxisType'
        QtMocHelpers::PropertyData<enum SourceAxisType>(7, 0x80000000 | 16, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 1),
        // property 'scale'
        QtMocHelpers::PropertyData<float>(12, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 4),
        // property 'value'
        QtMocHelpers::PropertyData<float>(9, QMetaType::Float, QMC::DefaultPropertyFlags, 2),
        // property 'velocity'
        QtMocHelpers::PropertyData<float>(17, QMetaType::Float, QMC::DefaultPropertyFlags, 3),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'SourceAxisType'
        QtMocHelpers::EnumData<enum SourceAxisType>(16, 16, QMC::EnumFlags{}).add({
            {   18, SourceAxisType::Velocity },
            {   19, SourceAxisType::Acceleration },
        }),
    };
    return QtMocHelpers::metaObjectData<QAxisAccumulator, qt_meta_tag_ZN9Qt3DInput16QAxisAccumulatorE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Qt3DInput::QAxisAccumulator::staticMetaObject = { {
    QMetaObject::SuperData::link<Qt3DCore::QComponent::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9Qt3DInput16QAxisAccumulatorE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9Qt3DInput16QAxisAccumulatorE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN9Qt3DInput16QAxisAccumulatorE_t>.metaTypes,
    nullptr
} };

void Qt3DInput::QAxisAccumulator::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QAxisAccumulator *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->sourceAxisChanged((*reinterpret_cast<std::add_pointer_t<Qt3DInput::QAxis*>>(_a[1]))); break;
        case 1: _t->sourceAxisTypeChanged((*reinterpret_cast<std::add_pointer_t<QAxisAccumulator::SourceAxisType>>(_a[1]))); break;
        case 2: _t->valueChanged((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 3: _t->velocityChanged((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 4: _t->scaleChanged((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 5: _t->setSourceAxis((*reinterpret_cast<std::add_pointer_t<Qt3DInput::QAxis*>>(_a[1]))); break;
        case 6: _t->setSourceAxisType((*reinterpret_cast<std::add_pointer_t<QAxisAccumulator::SourceAxisType>>(_a[1]))); break;
        case 7: _t->setScale((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Qt3DInput::QAxis* >(); break;
            }
            break;
        case 5:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Qt3DInput::QAxis* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QAxisAccumulator::*)(Qt3DInput::QAxis * )>(_a, &QAxisAccumulator::sourceAxisChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (QAxisAccumulator::*)(QAxisAccumulator::SourceAxisType )>(_a, &QAxisAccumulator::sourceAxisTypeChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (QAxisAccumulator::*)(float )>(_a, &QAxisAccumulator::valueChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (QAxisAccumulator::*)(float )>(_a, &QAxisAccumulator::velocityChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (QAxisAccumulator::*)(float )>(_a, &QAxisAccumulator::scaleChanged, 4))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Qt3DInput::QAxis* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<Qt3DInput::QAxis**>(_v) = _t->sourceAxis(); break;
        case 1: *reinterpret_cast<enum SourceAxisType*>(_v) = _t->sourceAxisType(); break;
        case 2: *reinterpret_cast<float*>(_v) = _t->scale(); break;
        case 3: *reinterpret_cast<float*>(_v) = _t->value(); break;
        case 4: *reinterpret_cast<float*>(_v) = _t->velocity(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setSourceAxis(*reinterpret_cast<Qt3DInput::QAxis**>(_v)); break;
        case 1: _t->setSourceAxisType(*reinterpret_cast<enum SourceAxisType*>(_v)); break;
        case 2: _t->setScale(*reinterpret_cast<float*>(_v)); break;
        default: break;
        }
    }
}

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

void *Qt3DInput::QAxisAccumulator::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9Qt3DInput16QAxisAccumulatorE_t>.strings))
        return static_cast<void*>(this);
    return Qt3DCore::QComponent::qt_metacast(_clname);
}

int Qt3DInput::QAxisAccumulator::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Qt3DCore::QComponent::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 8)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 8)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    }
    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 Qt3DInput::QAxisAccumulator::sourceAxisChanged(Qt3DInput::QAxis * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Qt3DInput::QAxisAccumulator::sourceAxisTypeChanged(QAxisAccumulator::SourceAxisType _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Qt3DInput::QAxisAccumulator::valueChanged(float _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void Qt3DInput::QAxisAccumulator::velocityChanged(float _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void Qt3DInput::QAxisAccumulator::scaleChanged(float _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}
QT_WARNING_POP
