/****************************************************************************
** Meta object code from reading C++ file 'quick3dnodeinstantiator_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 "../../../../../../qt3d/src/quick3d/quick3d/items/quick3dnodeinstantiator_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 'quick3dnodeinstantiator_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_ZN8Qt3DCore5Quick23Quick3DNodeInstantiatorE_t {};
} // unnamed namespace

template <> constexpr inline auto Qt3DCore::Quick::Quick3DNodeInstantiator::qt_create_metaobjectdata<qt_meta_tag_ZN8Qt3DCore5Quick23Quick3DNodeInstantiatorE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Qt3DCore::Quick::Quick3DNodeInstantiator",
        "DefaultProperty",
        "delegate",
        "QML.Element",
        "NodeInstantiator",
        "QML.AddedInVersion",
        "512",
        "modelChanged",
        "",
        "delegateChanged",
        "countChanged",
        "objectChanged",
        "activeChanged",
        "asynchronousChanged",
        "objectAdded",
        "index",
        "object",
        "objectRemoved",
        "onParentChanged",
        "parent",
        "_q_createdItem",
        "_q_modelUpdated",
        "QQmlChangeSet",
        "objectAt",
        "active",
        "asynchronous",
        "model",
        "QVariant",
        "count",
        "QQmlComponent*"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'modelChanged'
        QtMocHelpers::SignalData<void()>(7, 8, QMC::AccessPublic, QMetaType::Void),
        // Signal 'delegateChanged'
        QtMocHelpers::SignalData<void()>(9, 8, QMC::AccessPublic, QMetaType::Void),
        // Signal 'countChanged'
        QtMocHelpers::SignalData<void()>(10, 8, QMC::AccessPublic, QMetaType::Void),
        // Signal 'objectChanged'
        QtMocHelpers::SignalData<void()>(11, 8, QMC::AccessPublic, QMetaType::Void),
        // Signal 'activeChanged'
        QtMocHelpers::SignalData<void()>(12, 8, QMC::AccessPublic, QMetaType::Void),
        // Signal 'asynchronousChanged'
        QtMocHelpers::SignalData<void()>(13, 8, QMC::AccessPublic, QMetaType::Void),
        // Signal 'objectAdded'
        QtMocHelpers::SignalData<void(int, QObject *)>(14, 8, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 15 }, { QMetaType::QObjectStar, 16 },
        }}),
        // Signal 'objectRemoved'
        QtMocHelpers::SignalData<void(int, QObject *)>(17, 8, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 15 }, { QMetaType::QObjectStar, 16 },
        }}),
        // Slot 'onParentChanged'
        QtMocHelpers::SlotData<void(QObject *)>(18, 8, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QObjectStar, 19 },
        }}),
        // Slot '_q_createdItem'
        QtMocHelpers::SlotData<void(int, QObject *)>(20, 8, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 8 }, { QMetaType::QObjectStar, 8 },
        }}),
        // Slot '_q_modelUpdated'
        QtMocHelpers::SlotData<void(const QQmlChangeSet &, bool)>(21, 8, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 22, 8 }, { QMetaType::Bool, 8 },
        }}),
        // Method 'objectAt'
        QtMocHelpers::MethodData<QObject *(int) const>(23, 8, QMC::AccessPublic, QMetaType::QObjectStar, {{
            { QMetaType::Int, 15 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'active'
        QtMocHelpers::PropertyData<bool>(24, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 4),
        // property 'asynchronous'
        QtMocHelpers::PropertyData<bool>(25, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable, 5),
        // property 'model'
        QtMocHelpers::PropertyData<QVariant>(26, 0x80000000 | 27, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
        // property 'count'
        QtMocHelpers::PropertyData<int>(28, QMetaType::Int, QMC::DefaultPropertyFlags, 2),
        // property 'delegate'
        QtMocHelpers::PropertyData<QQmlComponent*>(2, 0x80000000 | 29, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 1),
        // property 'object'
        QtMocHelpers::PropertyData<QObject*>(16, QMetaType::QObjectStar, QMC::DefaultPropertyFlags, 3),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
            {    5,    6 },
    });
    return QtMocHelpers::metaObjectData<Quick3DNodeInstantiator, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject Qt3DCore::Quick::Quick3DNodeInstantiator::staticMetaObject = { {
    QMetaObject::SuperData::link<QNode::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Qt3DCore5Quick23Quick3DNodeInstantiatorE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Qt3DCore5Quick23Quick3DNodeInstantiatorE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8Qt3DCore5Quick23Quick3DNodeInstantiatorE_t>.metaTypes,
    nullptr
} };

void Qt3DCore::Quick::Quick3DNodeInstantiator::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Quick3DNodeInstantiator *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->modelChanged(); break;
        case 1: _t->delegateChanged(); break;
        case 2: _t->countChanged(); break;
        case 3: _t->objectChanged(); break;
        case 4: _t->activeChanged(); break;
        case 5: _t->asynchronousChanged(); break;
        case 6: _t->objectAdded((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[2]))); break;
        case 7: _t->objectRemoved((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[2]))); break;
        case 8: _t->onParentChanged((*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[1]))); break;
        case 9: _t->d_func()->_q_createdItem((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[2]))); break;
        case 10: _t->d_func()->_q_modelUpdated((*reinterpret_cast<std::add_pointer_t<QQmlChangeSet>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 11: { QObject* _r = _t->objectAt((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Quick3DNodeInstantiator::*)()>(_a, &Quick3DNodeInstantiator::modelChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Quick3DNodeInstantiator::*)()>(_a, &Quick3DNodeInstantiator::delegateChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Quick3DNodeInstantiator::*)()>(_a, &Quick3DNodeInstantiator::countChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (Quick3DNodeInstantiator::*)()>(_a, &Quick3DNodeInstantiator::objectChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (Quick3DNodeInstantiator::*)()>(_a, &Quick3DNodeInstantiator::activeChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (Quick3DNodeInstantiator::*)()>(_a, &Quick3DNodeInstantiator::asynchronousChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (Quick3DNodeInstantiator::*)(int , QObject * )>(_a, &Quick3DNodeInstantiator::objectAdded, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (Quick3DNodeInstantiator::*)(int , QObject * )>(_a, &Quick3DNodeInstantiator::objectRemoved, 7))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 4:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQmlComponent* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->isActive(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->isAsync(); break;
        case 2: *reinterpret_cast<QVariant*>(_v) = _t->model(); break;
        case 3: *reinterpret_cast<int*>(_v) = _t->count(); break;
        case 4: *reinterpret_cast<QQmlComponent**>(_v) = _t->delegate(); break;
        case 5: *reinterpret_cast<QObject**>(_v) = _t->object(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setActive(*reinterpret_cast<bool*>(_v)); break;
        case 1: _t->setAsync(*reinterpret_cast<bool*>(_v)); break;
        case 2: _t->setModel(*reinterpret_cast<QVariant*>(_v)); break;
        case 4: _t->setDelegate(*reinterpret_cast<QQmlComponent**>(_v)); break;
        default: break;
        }
    }
}

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

void *Qt3DCore::Quick::Quick3DNodeInstantiator::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Qt3DCore5Quick23Quick3DNodeInstantiatorE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "QQmlParserStatus"))
        return static_cast< QQmlParserStatus*>(this);
    if (!strcmp(_clname, "org.qt-project.Qt.QQmlParserStatus"))
        return static_cast< QQmlParserStatus*>(this);
    return QNode::qt_metacast(_clname);
}

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

// SIGNAL 0
void Qt3DCore::Quick::Quick3DNodeInstantiator::modelChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void Qt3DCore::Quick::Quick3DNodeInstantiator::delegateChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void Qt3DCore::Quick::Quick3DNodeInstantiator::countChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void Qt3DCore::Quick::Quick3DNodeInstantiator::objectChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void Qt3DCore::Quick::Quick3DNodeInstantiator::activeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void Qt3DCore::Quick::Quick3DNodeInstantiator::asynchronousChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void Qt3DCore::Quick::Quick3DNodeInstantiator::objectAdded(int _t1, QObject * _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1, _t2);
}

// SIGNAL 7
void Qt3DCore::Quick::Quick3DNodeInstantiator::objectRemoved(int _t1, QObject * _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1, _t2);
}
QT_WARNING_POP
