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

template <> constexpr inline auto qml_material::State::qt_create_metaobjectdata<qt_meta_tag_ZN12qml_material5StateE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "qml_material::State",
        "QML.Element",
        "MStateImpl",
        "DefaultProperty",
        "datas",
        "stateChanged",
        "",
        "enabledChanged",
        "targetChanged",
        "ctxChanged",
        "elevationChanged",
        "textColorChanged",
        "outlineColorChanged",
        "backgroundColorChanged",
        "supportTextColorChanged",
        "stateLayerColorChanged",
        "stateLayerOpacityChanged",
        "contentOpacityChanged",
        "backgroundOpacityChanged",
        "updateCtx",
        "QQmlListProperty<QObject>",
        "target",
        "enabled",
        "ctx",
        "qml_material::Theme*",
        "elevation",
        "textColor",
        "QColor",
        "backgroundColor",
        "outlineColor",
        "supportTextColor",
        "stateLayerColor",
        "stateLayerOpacity",
        "contentOpacity",
        "backgroundOpacity",
        "state",
        "states",
        "QQmlListProperty<QQuickState>",
        "transitions",
        "QQmlListProperty<QQuickTransition>"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'stateChanged'
        QtMocHelpers::SignalData<void(const QString &)>(5, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 6 },
        }}),
        // Signal 'enabledChanged'
        QtMocHelpers::SignalData<void()>(7, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'targetChanged'
        QtMocHelpers::SignalData<void()>(8, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'ctxChanged'
        QtMocHelpers::SignalData<void()>(9, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'elevationChanged'
        QtMocHelpers::SignalData<void()>(10, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'textColorChanged'
        QtMocHelpers::SignalData<void()>(11, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'outlineColorChanged'
        QtMocHelpers::SignalData<void()>(12, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'backgroundColorChanged'
        QtMocHelpers::SignalData<void()>(13, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'supportTextColorChanged'
        QtMocHelpers::SignalData<void()>(14, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'stateLayerColorChanged'
        QtMocHelpers::SignalData<void()>(15, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'stateLayerOpacityChanged'
        QtMocHelpers::SignalData<void()>(16, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'contentOpacityChanged'
        QtMocHelpers::SignalData<void()>(17, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'backgroundOpacityChanged'
        QtMocHelpers::SignalData<void()>(18, 6, QMC::AccessPublic, QMetaType::Void),
        // Slot 'updateCtx'
        QtMocHelpers::SlotData<void()>(19, 6, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'datas'
        QtMocHelpers::PropertyData<QQmlListProperty<QObject>>(4, 0x80000000 | 20, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Final),
        // property 'target'
        QtMocHelpers::PropertyData<QObject*>(21, QMetaType::QObjectStar, QMC::DefaultPropertyFlags | QMC::Writable | QMC::Final, 2),
        // property 'enabled'
        QtMocHelpers::PropertyData<bool>(22, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::Final, 1),
        // property 'ctx'
        QtMocHelpers::PropertyData<qml_material::Theme*>(23, 0x80000000 | 24, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::Final, 3),
        // property 'elevation'
        QtMocHelpers::PropertyData<qint32>(25, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::Final, 4),
        // property 'textColor'
        QtMocHelpers::PropertyData<QColor>(26, 0x80000000 | 27, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::Final, 5),
        // property 'backgroundColor'
        QtMocHelpers::PropertyData<QColor>(28, 0x80000000 | 27, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::Final, 7),
        // property 'outlineColor'
        QtMocHelpers::PropertyData<QColor>(29, 0x80000000 | 27, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::Final, 6),
        // property 'supportTextColor'
        QtMocHelpers::PropertyData<QColor>(30, 0x80000000 | 27, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::Final, 8),
        // property 'stateLayerColor'
        QtMocHelpers::PropertyData<QColor>(31, 0x80000000 | 27, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::Final, 9),
        // property 'stateLayerOpacity'
        QtMocHelpers::PropertyData<double>(32, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Writable | QMC::Final, 10),
        // property 'contentOpacity'
        QtMocHelpers::PropertyData<double>(33, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Writable | QMC::Final, 11),
        // property 'backgroundOpacity'
        QtMocHelpers::PropertyData<double>(34, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Writable | QMC::Final, 12),
        // property 'state'
        QtMocHelpers::PropertyData<QString>(35, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::Final, 0),
        // property 'states'
        QtMocHelpers::PropertyData<QQmlListProperty<QQuickState>>(36, 0x80000000 | 37, QMC::Readable | QMC::Scriptable | QMC::Stored | QMC::EnumOrFlag),
        // property 'transitions'
        QtMocHelpers::PropertyData<QQmlListProperty<QQuickTransition>>(38, 0x80000000 | 39, QMC::Readable | QMC::Scriptable | QMC::Stored | QMC::EnumOrFlag),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
    });
    return QtMocHelpers::metaObjectData<State, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject qml_material::State::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12qml_material5StateE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12qml_material5StateE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12qml_material5StateE_t>.metaTypes,
    nullptr
} };

void qml_material::State::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<State *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->stateChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 1: _t->enabledChanged(); break;
        case 2: _t->targetChanged(); break;
        case 3: _t->ctxChanged(); break;
        case 4: _t->elevationChanged(); break;
        case 5: _t->textColorChanged(); break;
        case 6: _t->outlineColorChanged(); break;
        case 7: _t->backgroundColorChanged(); break;
        case 8: _t->supportTextColorChanged(); break;
        case 9: _t->stateLayerColorChanged(); break;
        case 10: _t->stateLayerOpacityChanged(); break;
        case 11: _t->contentOpacityChanged(); break;
        case 12: _t->backgroundOpacityChanged(); break;
        case 13: _t->updateCtx(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (State::*)(const QString & )>(_a, &State::stateChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (State::*)()>(_a, &State::enabledChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (State::*)()>(_a, &State::targetChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (State::*)()>(_a, &State::ctxChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (State::*)()>(_a, &State::elevationChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (State::*)()>(_a, &State::textColorChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (State::*)()>(_a, &State::outlineColorChanged, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (State::*)()>(_a, &State::backgroundColorChanged, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (State::*)()>(_a, &State::supportTextColorChanged, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (State::*)()>(_a, &State::stateLayerColorChanged, 9))
            return;
        if (QtMocHelpers::indexOfMethod<void (State::*)()>(_a, &State::stateLayerOpacityChanged, 10))
            return;
        if (QtMocHelpers::indexOfMethod<void (State::*)()>(_a, &State::contentOpacityChanged, 11))
            return;
        if (QtMocHelpers::indexOfMethod<void (State::*)()>(_a, &State::backgroundOpacityChanged, 12))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 3:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< qml_material::Theme* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QQmlListProperty<QObject>*>(_v) = _t->datas(); break;
        case 1: *reinterpret_cast<QObject**>(_v) = _t->target(); break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->enabled(); break;
        case 3: *reinterpret_cast<qml_material::Theme**>(_v) = _t->ctx(); break;
        case 4: *reinterpret_cast<qint32*>(_v) = _t->elevation(); break;
        case 5: *reinterpret_cast<QColor*>(_v) = _t->text_color(); break;
        case 6: *reinterpret_cast<QColor*>(_v) = _t->background_color(); break;
        case 7: *reinterpret_cast<QColor*>(_v) = _t->outline_color(); break;
        case 8: *reinterpret_cast<QColor*>(_v) = _t->support_text_color(); break;
        case 9: *reinterpret_cast<QColor*>(_v) = _t->state_layer_color(); break;
        case 10: *reinterpret_cast<double*>(_v) = _t->state_layer_opacity(); break;
        case 11: *reinterpret_cast<double*>(_v) = _t->content_opacity(); break;
        case 12: *reinterpret_cast<double*>(_v) = _t->background_opacity(); break;
        case 13: *reinterpret_cast<QString*>(_v) = _t->state(); break;
        case 14: *reinterpret_cast<QQmlListProperty<QQuickState>*>(_v) = _t->states(); break;
        case 15: *reinterpret_cast<QQmlListProperty<QQuickTransition>*>(_v) = _t->transitions(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 1: _t->set_target(*reinterpret_cast<QObject**>(_v)); break;
        case 2: _t->set_enabled(*reinterpret_cast<bool*>(_v)); break;
        case 3: _t->set_ctx(*reinterpret_cast<qml_material::Theme**>(_v)); break;
        case 4: _t->set_elevation(*reinterpret_cast<qint32*>(_v)); break;
        case 5: _t->set_text_color(*reinterpret_cast<QColor*>(_v)); break;
        case 6: _t->set_background_color(*reinterpret_cast<QColor*>(_v)); break;
        case 7: _t->set_outline_color(*reinterpret_cast<QColor*>(_v)); break;
        case 8: _t->set_support_text_color(*reinterpret_cast<QColor*>(_v)); break;
        case 9: _t->set_state_layer_color(*reinterpret_cast<QColor*>(_v)); break;
        case 10: _t->set_state_layer_opacity(*reinterpret_cast<double*>(_v)); break;
        case 11: _t->set_content_opacity(*reinterpret_cast<double*>(_v)); break;
        case 12: _t->set_background_opacity(*reinterpret_cast<double*>(_v)); break;
        case 13: _t->set_state(*reinterpret_cast<QString*>(_v)); break;
        default: break;
        }
    }
}

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

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

int qml_material::State::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 < 14)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 14;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 14)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 14;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 16;
    }
    return _id;
}

// SIGNAL 0
void qml_material::State::stateChanged(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

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

// SIGNAL 2
void qml_material::State::targetChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void qml_material::State::ctxChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void qml_material::State::elevationChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void qml_material::State::textColorChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void qml_material::State::outlineColorChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}

// SIGNAL 7
void qml_material::State::backgroundColorChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
}

// SIGNAL 8
void qml_material::State::supportTextColorChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 8, nullptr);
}

// SIGNAL 9
void qml_material::State::stateLayerColorChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 9, nullptr);
}

// SIGNAL 10
void qml_material::State::stateLayerOpacityChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 10, nullptr);
}

// SIGNAL 11
void qml_material::State::contentOpacityChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 11, nullptr);
}

// SIGNAL 12
void qml_material::State::backgroundOpacityChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 12, nullptr);
}
QT_WARNING_POP
