/****************************************************************************
** Meta object code from reading C++ file 'qbuffer.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/core/geometry/qbuffer.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 'qbuffer.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_ZN8Qt3DCore7QBufferE_t {};
} // unnamed namespace

template <> constexpr inline auto Qt3DCore::QBuffer::qt_create_metaobjectdata<qt_meta_tag_ZN8Qt3DCore7QBufferE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Qt3DCore::QBuffer",
        "dataChanged",
        "",
        "bytes",
        "usageChanged",
        "UsageType",
        "usage",
        "accessTypeChanged",
        "AccessType",
        "access",
        "dataAvailable",
        "setUsage",
        "setAccessType",
        "updateData",
        "offset",
        "accessType",
        "StreamDraw",
        "StreamRead",
        "StreamCopy",
        "StaticDraw",
        "StaticRead",
        "StaticCopy",
        "DynamicDraw",
        "DynamicRead",
        "DynamicCopy",
        "Write",
        "Read",
        "ReadWrite"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'dataChanged'
        QtMocHelpers::SignalData<void(const QByteArray &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QByteArray, 3 },
        }}),
        // Signal 'usageChanged'
        QtMocHelpers::SignalData<void(enum UsageType)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 6 },
        }}),
        // Signal 'accessTypeChanged'
        QtMocHelpers::SignalData<void(enum AccessType)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 },
        }}),
        // Signal 'dataAvailable'
        QtMocHelpers::SignalData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setUsage'
        QtMocHelpers::SlotData<void(enum UsageType)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 6 },
        }}),
        // Slot 'setAccessType'
        QtMocHelpers::SlotData<void(enum AccessType)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 },
        }}),
        // Method 'updateData'
        QtMocHelpers::MethodData<void(int, const QByteArray &)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 14 }, { QMetaType::QByteArray, 3 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'usage'
        QtMocHelpers::PropertyData<enum UsageType>(6, 0x80000000 | 5, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 1),
        // property 'accessType'
        QtMocHelpers::PropertyData<enum AccessType>(15, 0x80000000 | 8, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 2, 0x209),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'UsageType'
        QtMocHelpers::EnumData<enum UsageType>(5, 5, QMC::EnumFlags{}).add({
            {   16, UsageType::StreamDraw },
            {   17, UsageType::StreamRead },
            {   18, UsageType::StreamCopy },
            {   19, UsageType::StaticDraw },
            {   20, UsageType::StaticRead },
            {   21, UsageType::StaticCopy },
            {   22, UsageType::DynamicDraw },
            {   23, UsageType::DynamicRead },
            {   24, UsageType::DynamicCopy },
        }),
        // enum 'AccessType'
        QtMocHelpers::EnumData<enum AccessType>(8, 8, QMC::EnumFlags{}).add({
            {   25, AccessType::Write },
            {   26, AccessType::Read },
            {   27, AccessType::ReadWrite },
        }),
    };
    return QtMocHelpers::metaObjectData<QBuffer, qt_meta_tag_ZN8Qt3DCore7QBufferE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Qt3DCore::QBuffer::staticMetaObject = { {
    QMetaObject::SuperData::link<Qt3DCore::QNode::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Qt3DCore7QBufferE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Qt3DCore7QBufferE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8Qt3DCore7QBufferE_t>.metaTypes,
    nullptr
} };

void Qt3DCore::QBuffer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QBuffer *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->dataChanged((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1]))); break;
        case 1: _t->usageChanged((*reinterpret_cast<std::add_pointer_t<enum UsageType>>(_a[1]))); break;
        case 2: _t->accessTypeChanged((*reinterpret_cast<std::add_pointer_t<enum AccessType>>(_a[1]))); break;
        case 3: _t->dataAvailable(); break;
        case 4: _t->setUsage((*reinterpret_cast<std::add_pointer_t<enum UsageType>>(_a[1]))); break;
        case 5: _t->setAccessType((*reinterpret_cast<std::add_pointer_t<enum AccessType>>(_a[1]))); break;
        case 6: _t->updateData((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[2]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QBuffer::*)(const QByteArray & )>(_a, &QBuffer::dataChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (QBuffer::*)(UsageType )>(_a, &QBuffer::usageChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (QBuffer::*)(AccessType )>(_a, &QBuffer::accessTypeChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (QBuffer::*)()>(_a, &QBuffer::dataAvailable, 3))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<enum UsageType*>(_v) = _t->usage(); break;
        case 1: *reinterpret_cast<enum AccessType*>(_v) = _t->accessType(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setUsage(*reinterpret_cast<enum UsageType*>(_v)); break;
        case 1: _t->setAccessType(*reinterpret_cast<enum AccessType*>(_v)); break;
        default: break;
        }
    }
}

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

void *Qt3DCore::QBuffer::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Qt3DCore7QBufferE_t>.strings))
        return static_cast<void*>(this);
    return Qt3DCore::QNode::qt_metacast(_clname);
}

int Qt3DCore::QBuffer::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Qt3DCore::QNode::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 7)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 7;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 7)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 7;
    }
    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 Qt3DCore::QBuffer::dataChanged(const QByteArray & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Qt3DCore::QBuffer::usageChanged(UsageType _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Qt3DCore::QBuffer::accessTypeChanged(AccessType _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void Qt3DCore::QBuffer::dataAvailable()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}
QT_WARNING_POP
