/****************************************************************************
** Meta object code from reading C++ file 'box2djoint.h'
**
** Created by: The Qt Meta Object Compiler version 69 (Qt 6.10.1)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../../box2djoint.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 'box2djoint.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.10.1. 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_ZN10Box2DJointE_t {};
} // unnamed namespace

template <> constexpr inline auto Box2DJoint::qt_create_metaobjectdata<qt_meta_tag_ZN10Box2DJointE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Box2DJoint",
        "collideConnectedChanged",
        "",
        "bodyAChanged",
        "bodyBChanged",
        "created",
        "bodyACreated",
        "bodyBCreated",
        "jointType",
        "JointType",
        "collideConnected",
        "bodyA",
        "Box2DBody*",
        "bodyB",
        "UnknownJoint",
        "RevoluteJoint",
        "PrismaticJoint",
        "DistanceJoint",
        "PulleyJoint",
        "MouseJoint",
        "GearJoint",
        "WheelJoint",
        "WeldJoint",
        "FrictionJoint",
        "RopeJoint",
        "MotorJoint"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'collideConnectedChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'bodyAChanged'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'bodyBChanged'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'created'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'bodyACreated'
        QtMocHelpers::SlotData<void()>(6, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'bodyBCreated'
        QtMocHelpers::SlotData<void()>(7, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'jointType'
        QtMocHelpers::PropertyData<enum JointType>(8, 0x80000000 | 9, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'collideConnected'
        QtMocHelpers::PropertyData<bool>(10, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 0),
        // property 'bodyA'
        QtMocHelpers::PropertyData<Box2DBody*>(11, 0x80000000 | 12, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 1),
        // property 'bodyB'
        QtMocHelpers::PropertyData<Box2DBody*>(13, 0x80000000 | 12, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 2),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'JointType'
        QtMocHelpers::EnumData<enum JointType>(9, 9, QMC::EnumFlags{}).add({
            {   14, JointType::UnknownJoint },
            {   15, JointType::RevoluteJoint },
            {   16, JointType::PrismaticJoint },
            {   17, JointType::DistanceJoint },
            {   18, JointType::PulleyJoint },
            {   19, JointType::MouseJoint },
            {   20, JointType::GearJoint },
            {   21, JointType::WheelJoint },
            {   22, JointType::WeldJoint },
            {   23, JointType::FrictionJoint },
            {   24, JointType::RopeJoint },
            {   25, JointType::MotorJoint },
        }),
    };
    return QtMocHelpers::metaObjectData<Box2DJoint, qt_meta_tag_ZN10Box2DJointE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Box2DJoint::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Box2DJointE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Box2DJointE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10Box2DJointE_t>.metaTypes,
    nullptr
} };

void Box2DJoint::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Box2DJoint *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->collideConnectedChanged(); break;
        case 1: _t->bodyAChanged(); break;
        case 2: _t->bodyBChanged(); break;
        case 3: _t->created(); break;
        case 4: _t->bodyACreated(); break;
        case 5: _t->bodyBCreated(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Box2DJoint::*)()>(_a, &Box2DJoint::collideConnectedChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Box2DJoint::*)()>(_a, &Box2DJoint::bodyAChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Box2DJoint::*)()>(_a, &Box2DJoint::bodyBChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (Box2DJoint::*)()>(_a, &Box2DJoint::created, 3))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<enum JointType*>(_v) = _t->jointType(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->collideConnected(); break;
        case 2: *reinterpret_cast<Box2DBody**>(_v) = _t->bodyA(); break;
        case 3: *reinterpret_cast<Box2DBody**>(_v) = _t->bodyB(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 1: _t->setCollideConnected(*reinterpret_cast<bool*>(_v)); break;
        case 2: _t->setBodyA(*reinterpret_cast<Box2DBody**>(_v)); break;
        case 3: _t->setBodyB(*reinterpret_cast<Box2DBody**>(_v)); break;
        default: break;
        }
    }
}

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

void *Box2DJoint::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Box2DJointE_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 QObject::qt_metacast(_clname);
}

int Box2DJoint::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 < 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 -= 4;
    }
    return _id;
}

// SIGNAL 0
void Box2DJoint::collideConnectedChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

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

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

// SIGNAL 3
void Box2DJoint::created()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}
QT_WARNING_POP
