/****************************************************************************
** Meta object code from reading C++ file 'conegeometry_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 "../../../../../qtquick3d/src/helpers/conegeometry_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 'conegeometry_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_ZN12ConeGeometryE_t {};
} // unnamed namespace

template <> constexpr inline auto ConeGeometry::qt_create_metaobjectdata<qt_meta_tag_ZN12ConeGeometryE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "ConeGeometry",
        "QML.Element",
        "auto",
        "QML.AddedInVersion",
        "1545",
        "topRadiusChanged",
        "",
        "bottomRadiusChanged",
        "lengthChanged",
        "ringsChanged",
        "segmentsChanged",
        "asynchronousChanged",
        "statusChanged",
        "doUpdateGeometry",
        "requestFinished",
        "topRadius",
        "bottomRadius",
        "length",
        "rings",
        "segments",
        "asynchronous",
        "status",
        "Status",
        "Null",
        "Ready",
        "Loading",
        "Error"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'topRadiusChanged'
        QtMocHelpers::SignalData<void()>(5, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'bottomRadiusChanged'
        QtMocHelpers::SignalData<void()>(7, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'lengthChanged'
        QtMocHelpers::SignalData<void()>(8, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'ringsChanged'
        QtMocHelpers::SignalData<void()>(9, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'segmentsChanged'
        QtMocHelpers::SignalData<void()>(10, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'asynchronousChanged'
        QtMocHelpers::SignalData<void()>(11, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'statusChanged'
        QtMocHelpers::SignalData<void()>(12, 6, QMC::AccessPublic, QMetaType::Void),
        // Slot 'doUpdateGeometry'
        QtMocHelpers::SlotData<void()>(13, 6, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'requestFinished'
        QtMocHelpers::SlotData<void()>(14, 6, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'topRadius'
        QtMocHelpers::PropertyData<float>(15, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet | QMC::Final, 0),
        // property 'bottomRadius'
        QtMocHelpers::PropertyData<float>(16, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet | QMC::Final, 1),
        // property 'length'
        QtMocHelpers::PropertyData<float>(17, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet | QMC::Final, 2),
        // property 'rings'
        QtMocHelpers::PropertyData<int>(18, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet | QMC::Final, 3),
        // property 'segments'
        QtMocHelpers::PropertyData<int>(19, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet | QMC::Final, 4),
        // property 'asynchronous'
        QtMocHelpers::PropertyData<bool>(20, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 5),
        // property 'status'
        QtMocHelpers::PropertyData<enum Status>(21, 0x80000000 | 22, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 6),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'Status'
        QtMocHelpers::EnumData<enum Status>(22, 22, QMC::EnumFlags{}).add({
            {   23, Status::Null },
            {   24, Status::Ready },
            {   25, Status::Loading },
            {   26, Status::Error },
        }),
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
    });
    return QtMocHelpers::metaObjectData<ConeGeometry, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject ConeGeometry::staticMetaObject = { {
    QMetaObject::SuperData::link<QQuick3DGeometry::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12ConeGeometryE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12ConeGeometryE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12ConeGeometryE_t>.metaTypes,
    nullptr
} };

void ConeGeometry::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ConeGeometry *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->topRadiusChanged(); break;
        case 1: _t->bottomRadiusChanged(); break;
        case 2: _t->lengthChanged(); break;
        case 3: _t->ringsChanged(); break;
        case 4: _t->segmentsChanged(); break;
        case 5: _t->asynchronousChanged(); break;
        case 6: _t->statusChanged(); break;
        case 7: _t->doUpdateGeometry(); break;
        case 8: _t->requestFinished(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ConeGeometry::*)()>(_a, &ConeGeometry::topRadiusChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (ConeGeometry::*)()>(_a, &ConeGeometry::bottomRadiusChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (ConeGeometry::*)()>(_a, &ConeGeometry::lengthChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (ConeGeometry::*)()>(_a, &ConeGeometry::ringsChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (ConeGeometry::*)()>(_a, &ConeGeometry::segmentsChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (ConeGeometry::*)()>(_a, &ConeGeometry::asynchronousChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (ConeGeometry::*)()>(_a, &ConeGeometry::statusChanged, 6))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<float*>(_v) = _t->topRadius(); break;
        case 1: *reinterpret_cast<float*>(_v) = _t->bottomRadius(); break;
        case 2: *reinterpret_cast<float*>(_v) = _t->length(); break;
        case 3: *reinterpret_cast<int*>(_v) = _t->rings(); break;
        case 4: *reinterpret_cast<int*>(_v) = _t->segments(); break;
        case 5: *reinterpret_cast<bool*>(_v) = _t->asynchronous(); break;
        case 6: *reinterpret_cast<enum Status*>(_v) = _t->status(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setTopRadius(*reinterpret_cast<float*>(_v)); break;
        case 1: _t->setBottomRadius(*reinterpret_cast<float*>(_v)); break;
        case 2: _t->setLength(*reinterpret_cast<float*>(_v)); break;
        case 3: _t->setRings(*reinterpret_cast<int*>(_v)); break;
        case 4: _t->setSegments(*reinterpret_cast<int*>(_v)); break;
        case 5: _t->setAsynchronous(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

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

void *ConeGeometry::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12ConeGeometryE_t>.strings))
        return static_cast<void*>(this);
    return QQuick3DGeometry::qt_metacast(_clname);
}

int ConeGeometry::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QQuick3DGeometry::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 9)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 9)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 9;
    }
    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 ConeGeometry::topRadiusChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void ConeGeometry::bottomRadiusChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void ConeGeometry::lengthChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void ConeGeometry::ringsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void ConeGeometry::segmentsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

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

// SIGNAL 6
void ConeGeometry::statusChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}
QT_WARNING_POP
