/****************************************************************************
** Meta object code from reading C++ file 'qsceneloader.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/render/io/qsceneloader.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 'qsceneloader.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_ZN10Qt3DRender12QSceneLoaderE_t {};
} // unnamed namespace

template <> constexpr inline auto Qt3DRender::QSceneLoader::qt_create_metaobjectdata<qt_meta_tag_ZN10Qt3DRender12QSceneLoaderE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Qt3DRender::QSceneLoader",
        "sourceChanged",
        "",
        "QUrl",
        "source",
        "statusChanged",
        "Status",
        "status",
        "setSource",
        "arg",
        "entity",
        "Qt3DCore::QEntity*",
        "entityName",
        "entityNames",
        "component",
        "Qt3DCore::QComponent*",
        "ComponentType",
        "componentType",
        "None",
        "Loading",
        "Ready",
        "Error",
        "UnknownComponent",
        "GeometryRendererComponent",
        "TransformComponent",
        "MaterialComponent",
        "LightComponent",
        "CameraLensComponent"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'sourceChanged'
        QtMocHelpers::SignalData<void(const QUrl &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'statusChanged'
        QtMocHelpers::SignalData<void(enum Status)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
        // Slot 'setSource'
        QtMocHelpers::SlotData<void(const QUrl &)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 9 },
        }}),
        // Method 'entity'
        QtMocHelpers::RevisionedMethodData<Qt3DCore::QEntity *(const QString &) const>(10, 2, QMC::AccessPublic, 0x209, 0x80000000 | 11, {{
            { QMetaType::QString, 12 },
        }}),
        // Method 'entityNames'
        QtMocHelpers::RevisionedMethodData<QStringList() const>(13, 2, QMC::AccessPublic, 0x209, QMetaType::QStringList),
        // Method 'component'
        QtMocHelpers::RevisionedMethodData<Qt3DCore::QComponent *(const QString &, enum ComponentType) const>(14, 2, QMC::AccessPublic, 0x209, 0x80000000 | 15, {{
            { QMetaType::QString, 12 }, { 0x80000000 | 16, 17 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'source'
        QtMocHelpers::PropertyData<QUrl>(4, 0x80000000 | 3, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
        // property 'status'
        QtMocHelpers::PropertyData<enum Status>(7, 0x80000000 | 6, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 1),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'Status'
        QtMocHelpers::EnumData<enum Status>(6, 6, QMC::EnumFlags{}).add({
            {   18, Status::None },
            {   19, Status::Loading },
            {   20, Status::Ready },
            {   21, Status::Error },
        }),
        // enum 'ComponentType'
        QtMocHelpers::EnumData<enum ComponentType>(16, 16, QMC::EnumFlags{}).add({
            {   22, ComponentType::UnknownComponent },
            {   23, ComponentType::GeometryRendererComponent },
            {   24, ComponentType::TransformComponent },
            {   25, ComponentType::MaterialComponent },
            {   26, ComponentType::LightComponent },
            {   27, ComponentType::CameraLensComponent },
        }),
    };
    return QtMocHelpers::metaObjectData<QSceneLoader, qt_meta_tag_ZN10Qt3DRender12QSceneLoaderE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Qt3DRender::QSceneLoader::staticMetaObject = { {
    QMetaObject::SuperData::link<Qt3DCore::QComponent::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender12QSceneLoaderE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender12QSceneLoaderE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10Qt3DRender12QSceneLoaderE_t>.metaTypes,
    nullptr
} };

void Qt3DRender::QSceneLoader::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QSceneLoader *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->sourceChanged((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1]))); break;
        case 1: _t->statusChanged((*reinterpret_cast<std::add_pointer_t<enum Status>>(_a[1]))); break;
        case 2: _t->setSource((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1]))); break;
        case 3: { Qt3DCore::QEntity* _r = _t->entity((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<Qt3DCore::QEntity**>(_a[0]) = std::move(_r); }  break;
        case 4: { QStringList _r = _t->entityNames();
            if (_a[0]) *reinterpret_cast<QStringList*>(_a[0]) = std::move(_r); }  break;
        case 5: { Qt3DCore::QComponent* _r = _t->component((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<enum ComponentType>>(_a[2])));
            if (_a[0]) *reinterpret_cast<Qt3DCore::QComponent**>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QSceneLoader::*)(const QUrl & )>(_a, &QSceneLoader::sourceChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (QSceneLoader::*)(Status )>(_a, &QSceneLoader::statusChanged, 1))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QUrl*>(_v) = _t->source(); break;
        case 1: *reinterpret_cast<enum Status*>(_v) = _t->status(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setSource(*reinterpret_cast<QUrl*>(_v)); break;
        default: break;
        }
    }
}

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

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

int Qt3DRender::QSceneLoader::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 < 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 -= 2;
    }
    return _id;
}

// SIGNAL 0
void Qt3DRender::QSceneLoader::sourceChanged(const QUrl & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Qt3DRender::QSceneLoader::statusChanged(Status _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}
QT_WARNING_POP
