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

#include "qml_material/anim/linear_indicator_updator.hpp"
#include <QtCore/qmetatype.h>
#include <QtCore/QList>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'linear_indicator_updator.hpp' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.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_ZN12qml_material25LinearActiveIndicatorDataE_t {};
} // unnamed namespace

template <> constexpr inline auto qml_material::LinearActiveIndicatorData::qt_create_metaobjectdata<qt_meta_tag_ZN12qml_material25LinearActiveIndicatorDataE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "qml_material::LinearActiveIndicatorData",
        "QML.Element",
        "auto",
        "updated",
        "",
        "startFraction",
        "endFraction",
        "color",
        "QColor",
        "gapSize"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'updated'
        QtMocHelpers::SignalData<void()>(3, 4, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'startFraction'
        QtMocHelpers::PropertyData<double>(5, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Final, 0),
        // property 'endFraction'
        QtMocHelpers::PropertyData<double>(6, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Final, 0),
        // property 'color'
        QtMocHelpers::PropertyData<QColor>(7, 0x80000000 | 8, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Final, 0),
        // property 'gapSize'
        QtMocHelpers::PropertyData<qint32>(9, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Final, 0),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<LinearActiveIndicatorData, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject qml_material::LinearActiveIndicatorData::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12qml_material25LinearActiveIndicatorDataE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12qml_material25LinearActiveIndicatorDataE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12qml_material25LinearActiveIndicatorDataE_t>.metaTypes,
    nullptr
} };

void qml_material::LinearActiveIndicatorData::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<LinearActiveIndicatorData *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->updated(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (LinearActiveIndicatorData::*)()>(_a, &LinearActiveIndicatorData::updated, 0))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<double*>(_v) = _t->startFraction(); break;
        case 1: *reinterpret_cast<double*>(_v) = _t->endFraction(); break;
        case 2: *reinterpret_cast<QColor*>(_v) = _t->getColor(); break;
        case 3: *reinterpret_cast<qint32*>(_v) = _t->getGapSize(); break;
        default: break;
        }
    }
}

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

void *qml_material::LinearActiveIndicatorData::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12qml_material25LinearActiveIndicatorDataE_t>.strings))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int qml_material::LinearActiveIndicatorData::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 1)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 1;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 1)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 1;
    }
    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 qml_material::LinearActiveIndicatorData::updated()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}
namespace {
struct qt_meta_tag_ZN12qml_material22LinearIndicatorUpdatorE_t {};
} // unnamed namespace

template <> constexpr inline auto qml_material::LinearIndicatorUpdator::qt_create_metaobjectdata<qt_meta_tag_ZN12qml_material22LinearIndicatorUpdatorE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "qml_material::LinearIndicatorUpdator",
        "QML.Element",
        "auto",
        "updated",
        "",
        "indeterminateAnimationTypeChanged",
        "colorsChanged",
        "initIndicatorDatas",
        "update",
        "progress",
        "updateCompleteEndProgress",
        "colors",
        "QList<QColor>",
        "activeIndicators",
        "QList<qml_material::LinearActiveIndicatorData*>",
        "completeEndProgress",
        "duration",
        "completeEndDuration",
        "indeterminateAnimationType",
        "IndeterminateAnimationType",
        "DisJoint",
        "Contiguous"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'updated'
        QtMocHelpers::SignalData<void()>(3, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'indeterminateAnimationTypeChanged'
        QtMocHelpers::SignalData<void()>(5, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'colorsChanged'
        QtMocHelpers::SignalData<void()>(6, 4, QMC::AccessPublic, QMetaType::Void),
        // Slot 'initIndicatorDatas'
        QtMocHelpers::SlotData<void()>(7, 4, QMC::AccessPublic, QMetaType::Void),
        // Slot 'update'
        QtMocHelpers::SlotData<void(double)>(8, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Double, 9 },
        }}),
        // Slot 'updateCompleteEndProgress'
        QtMocHelpers::SlotData<void(double)>(10, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Double, 9 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'colors'
        QtMocHelpers::PropertyData<QList<QColor>>(11, 0x80000000 | 12, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet | QMC::Final, 2),
        // property 'activeIndicators'
        QtMocHelpers::PropertyData<QList<qml_material::LinearActiveIndicatorData*>>(13, 0x80000000 | 14, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Final, 1),
        // property 'progress'
        QtMocHelpers::PropertyData<double>(9, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Writable | QMC::Final, 0),
        // property 'completeEndProgress'
        QtMocHelpers::PropertyData<double>(15, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Writable | QMC::Final, 0),
        // property 'duration'
        QtMocHelpers::PropertyData<double>(16, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Final, 1),
        // property 'completeEndDuration'
        QtMocHelpers::PropertyData<double>(17, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Final, 1),
        // property 'indeterminateAnimationType'
        QtMocHelpers::PropertyData<enum IndeterminateAnimationType>(18, 0x80000000 | 19, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet | QMC::Final, 1),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'IndeterminateAnimationType'
        QtMocHelpers::EnumData<enum IndeterminateAnimationType>(19, 19, QMC::EnumIsScoped).add({
            {   20, IndeterminateAnimationType::DisJoint },
            {   21, IndeterminateAnimationType::Contiguous },
        }),
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<LinearIndicatorUpdator, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject qml_material::LinearIndicatorUpdator::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12qml_material22LinearIndicatorUpdatorE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12qml_material22LinearIndicatorUpdatorE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12qml_material22LinearIndicatorUpdatorE_t>.metaTypes,
    nullptr
} };

void qml_material::LinearIndicatorUpdator::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<LinearIndicatorUpdator *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->updated(); break;
        case 1: _t->indeterminateAnimationTypeChanged(); break;
        case 2: _t->colorsChanged(); break;
        case 3: _t->initIndicatorDatas(); break;
        case 4: _t->update((*reinterpret_cast<std::add_pointer_t<double>>(_a[1]))); break;
        case 5: _t->updateCompleteEndProgress((*reinterpret_cast<std::add_pointer_t<double>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (LinearIndicatorUpdator::*)()>(_a, &LinearIndicatorUpdator::updated, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (LinearIndicatorUpdator::*)()>(_a, &LinearIndicatorUpdator::indeterminateAnimationTypeChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (LinearIndicatorUpdator::*)()>(_a, &LinearIndicatorUpdator::colorsChanged, 2))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 1:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QList<qml_material::LinearActiveIndicatorData*> >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QList<QColor>*>(_v) = _t->colors(); break;
        case 1: *reinterpret_cast<QList<qml_material::LinearActiveIndicatorData*>*>(_v) = _t->activeIndicators(); break;
        case 2: *reinterpret_cast<double*>(_v) = _t->progress(); break;
        case 3: *reinterpret_cast<double*>(_v) = _t->completeEndProgress(); break;
        case 4: *reinterpret_cast<double*>(_v) = _t->duration(); break;
        case 5: *reinterpret_cast<double*>(_v) = _t->completeEndDuration(); break;
        case 6: *reinterpret_cast<enum IndeterminateAnimationType*>(_v) = _t->indeterminateAnimationType(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setColors(*reinterpret_cast<QList<QColor>*>(_v)); break;
        case 2: _t->update(*reinterpret_cast<double*>(_v)); break;
        case 3: _t->updateCompleteEndProgress(*reinterpret_cast<double*>(_v)); break;
        case 6: _t->setIndeterminateAnimationType(*reinterpret_cast<enum IndeterminateAnimationType*>(_v)); break;
        default: break;
        }
    }
}

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

void *qml_material::LinearIndicatorUpdator::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12qml_material22LinearIndicatorUpdatorE_t>.strings))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

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

// SIGNAL 0
void qml_material::LinearIndicatorUpdator::updated()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void qml_material::LinearIndicatorUpdator::indeterminateAnimationTypeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void qml_material::LinearIndicatorUpdator::colorsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}
QT_WARNING_POP
