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

template <> constexpr inline auto QtScriptBackend::qt_create_metaobjectdata<qt_meta_tag_ZN15QtScriptBackendE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "QtScriptBackend",
        "threadError",
        "",
        "message",
        "commandDone",
        "result",
        "needData",
        "identifier",
        "hint"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'threadError'
        QtMocHelpers::SlotData<void(const QString &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 },
        }}),
        // Slot 'commandDone'
        QtMocHelpers::SlotData<void(const QString &)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 5 },
        }}),
        // Slot 'needData'
        QtMocHelpers::SlotData<void(const QString &, const int)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 7 }, { QMetaType::Int, 8 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<QtScriptBackend, qt_meta_tag_ZN15QtScriptBackendE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject QtScriptBackend::staticMetaObject = { {
    QMetaObject::SuperData::link<ScriptBackend::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15QtScriptBackendE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15QtScriptBackendE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN15QtScriptBackendE_t>.metaTypes,
    nullptr
} };

void QtScriptBackend::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QtScriptBackend *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->threadError((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 1: _t->commandDone((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 2: _t->needData((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        default: ;
        }
    }
}

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

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

int QtScriptBackend::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = ScriptBackend::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 3)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 3)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 3;
    }
    return _id;
}
namespace {
struct qt_meta_tag_ZN21QtScriptBackendThreadE_t {};
} // unnamed namespace

template <> constexpr inline auto QtScriptBackendThread::qt_create_metaobjectdata<qt_meta_tag_ZN21QtScriptBackendThreadE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "QtScriptBackendThread",
        "commandDone",
        "",
        "result",
        "needData",
        "identifier",
        "hint",
        "error",
        "getValue",
        "QVariant",
        "getList",
        "getString",
        "getBoolean",
        "getUiLabelPair",
        "includeFile",
        "filename"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'commandDone'
        QtMocHelpers::SignalData<void(const QString &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 },
        }}),
        // Signal 'needData'
        QtMocHelpers::SignalData<void(const QString &, const int)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 5 }, { QMetaType::Int, 6 },
        }}),
        // Signal 'error'
        QtMocHelpers::SignalData<void(const QString &)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 7 },
        }}),
        // Slot 'getValue'
        QtMocHelpers::SlotData<QVariant(const QString &)>(8, 2, QMC::AccessProtected, 0x80000000 | 9, {{
            { QMetaType::QString, 5 },
        }}),
        // Slot 'getList'
        QtMocHelpers::SlotData<QVariant(const QString &)>(10, 2, QMC::AccessProtected, 0x80000000 | 9, {{
            { QMetaType::QString, 5 },
        }}),
        // Slot 'getString'
        QtMocHelpers::SlotData<QVariant(const QString &)>(11, 2, QMC::AccessProtected, 0x80000000 | 9, {{
            { QMetaType::QString, 5 },
        }}),
        // Slot 'getBoolean'
        QtMocHelpers::SlotData<QVariant(const QString &)>(12, 2, QMC::AccessProtected, 0x80000000 | 9, {{
            { QMetaType::QString, 5 },
        }}),
        // Slot 'getUiLabelPair'
        QtMocHelpers::SlotData<QVariant(const QString &)>(13, 2, QMC::AccessProtected, 0x80000000 | 9, {{
            { QMetaType::QString, 5 },
        }}),
        // Slot 'includeFile'
        QtMocHelpers::SlotData<bool(const QString &)>(14, 2, QMC::AccessProtected, QMetaType::Bool, {{
            { QMetaType::QString, 15 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<QtScriptBackendThread, qt_meta_tag_ZN21QtScriptBackendThreadE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject QtScriptBackendThread::staticMetaObject = { {
    QMetaObject::SuperData::link<QThread::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN21QtScriptBackendThreadE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN21QtScriptBackendThreadE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN21QtScriptBackendThreadE_t>.metaTypes,
    nullptr
} };

void QtScriptBackendThread::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QtScriptBackendThread *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->commandDone((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 1: _t->needData((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 2: _t->error((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 3: { 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 4: { 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 5: { 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 6: { 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 7: { QVariant _r = _t->getUiLabelPair((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QVariant*>(_a[0]) = std::move(_r); }  break;
        case 8: { bool _r = _t->includeFile((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QtScriptBackendThread::*)(const QString & )>(_a, &QtScriptBackendThread::commandDone, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (QtScriptBackendThread::*)(const QString & , const int )>(_a, &QtScriptBackendThread::needData, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (QtScriptBackendThread::*)(const QString & )>(_a, &QtScriptBackendThread::error, 2))
            return;
    }
}

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

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

int QtScriptBackendThread::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QThread::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;
    }
    return _id;
}

// SIGNAL 0
void QtScriptBackendThread::commandDone(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void QtScriptBackendThread::needData(const QString & _t1, const int _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2);
}

// SIGNAL 2
void QtScriptBackendThread::error(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}
QT_WARNING_POP
