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

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

template <> constexpr inline auto RKComponentScriptingProxy::qt_create_metaobjectdata<qt_meta_tag_ZN25RKComponentScriptingProxyE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "RKComponentScriptingProxy",
        "haveError",
        "",
        "scriptRCommandFinished",
        "RCommand*",
        "command",
        "include",
        "filename",
        "addChangeCommand",
        "changed_ids",
        "QJSValue",
        "doRCommand",
        "QVariant",
        "callback",
        "doRCommand2",
        "id",
        "resolve",
        "reject",
        "getValue",
        "getString",
        "getBoolean",
        "getList",
        "setValue",
        "value",
        "setListValue",
        "getObjectInfo",
        "QVariantList",
        "name",
        "getObjectParent",
        "getObjectChild"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'haveError'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'scriptRCommandFinished'
        QtMocHelpers::SlotData<void(RCommand *)>(3, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 4, 5 },
        }}),
        // Method 'include'
        QtMocHelpers::MethodData<void(const QString &)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 7 },
        }}),
        // Method 'addChangeCommand'
        QtMocHelpers::MethodData<void(const QStringList &, const QJSValue &)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QStringList, 9 }, { 0x80000000 | 10, 5 },
        }}),
        // Method 'doRCommand'
        QtMocHelpers::MethodData<QVariant(const QString &, const QString &)>(11, 2, QMC::AccessPublic, 0x80000000 | 12, {{
            { QMetaType::QString, 5 }, { QMetaType::QString, 13 },
        }}),
        // Method 'doRCommand2'
        QtMocHelpers::MethodData<void(const QString &, const QString &, const QJSValue, const QJSValue)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 5 }, { QMetaType::QString, 15 }, { 0x80000000 | 10, 16 }, { 0x80000000 | 10, 17 },
        }}),
        // Method 'getValue'
        QtMocHelpers::MethodData<QVariant(const QString &) const>(18, 2, QMC::AccessPublic, 0x80000000 | 12, {{
            { QMetaType::QString, 15 },
        }}),
        // Method 'getString'
        QtMocHelpers::MethodData<QVariant(const QString &) const>(19, 2, QMC::AccessPublic, 0x80000000 | 12, {{
            { QMetaType::QString, 15 },
        }}),
        // Method 'getBoolean'
        QtMocHelpers::MethodData<QVariant(const QString &) const>(20, 2, QMC::AccessPublic, 0x80000000 | 12, {{
            { QMetaType::QString, 15 },
        }}),
        // Method 'getList'
        QtMocHelpers::MethodData<QVariant(const QString &) const>(21, 2, QMC::AccessPublic, 0x80000000 | 12, {{
            { QMetaType::QString, 15 },
        }}),
        // Method 'setValue'
        QtMocHelpers::MethodData<void(const QString &, const QString &)>(22, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 23 }, { QMetaType::QString, 15 },
        }}),
        // Method 'setListValue'
        QtMocHelpers::MethodData<void(const QStringList &, const QString &)>(24, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QStringList, 23 }, { QMetaType::QString, 15 },
        }}),
        // Method 'getObjectInfo'
        QtMocHelpers::MethodData<QVariantList(const QString &)>(25, 2, QMC::AccessPublic, 0x80000000 | 26, {{
            { QMetaType::QString, 27 },
        }}),
        // Method 'getObjectParent'
        QtMocHelpers::MethodData<QString(const QString &)>(28, 2, QMC::AccessPublic, QMetaType::QString, {{
            { QMetaType::QString, 27 },
        }}),
        // Method 'getObjectChild'
        QtMocHelpers::MethodData<QString(const QString &)>(29, 2, QMC::AccessPublic, QMetaType::QString, {{
            { QMetaType::QString, 27 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<RKComponentScriptingProxy, qt_meta_tag_ZN25RKComponentScriptingProxyE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject RKComponentScriptingProxy::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN25RKComponentScriptingProxyE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN25RKComponentScriptingProxyE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN25RKComponentScriptingProxyE_t>.metaTypes,
    nullptr
} };

void RKComponentScriptingProxy::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<RKComponentScriptingProxy *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->haveError(); break;
        case 1: _t->scriptRCommandFinished((*reinterpret_cast<std::add_pointer_t<RCommand*>>(_a[1]))); break;
        case 2: _t->include((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 3: _t->addChangeCommand((*reinterpret_cast<std::add_pointer_t<QStringList>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QJSValue>>(_a[2]))); break;
        case 4: { QVariant _r = _t->doRCommand((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QVariant*>(_a[0]) = std::move(_r); }  break;
        case 5: _t->doRCommand2((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QJSValue>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<QJSValue>>(_a[4]))); break;
        case 6: { QVariant _r = _t->getValue((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QVariant*>(_a[0]) = std::move(_r); }  break;
        case 7: { QVariant _r = _t->getString((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QVariant*>(_a[0]) = std::move(_r); }  break;
        case 8: { QVariant _r = _t->getBoolean((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QVariant*>(_a[0]) = std::move(_r); }  break;
        case 9: { QVariant _r = _t->getList((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QVariant*>(_a[0]) = std::move(_r); }  break;
        case 10: _t->setValue((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 11: _t->setListValue((*reinterpret_cast<std::add_pointer_t<QStringList>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 12: { QVariantList _r = _t->getObjectInfo((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QVariantList*>(_a[0]) = std::move(_r); }  break;
        case 13: { QString _r = _t->getObjectParent((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 14: { QString _r = _t->getObjectChild((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QJSValue >(); break;
            }
            break;
        case 5:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 3:
            case 2:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QJSValue >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (RKComponentScriptingProxy::*)()>(_a, &RKComponentScriptingProxy::haveError, 0))
            return;
    }
}

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

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

int RKComponentScriptingProxy::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 < 15)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 15;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 15)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 15;
    }
    return _id;
}

// SIGNAL 0
void RKComponentScriptingProxy::haveError()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}
QT_WARNING_POP
