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

#include "../../../src/kross-5.39.0/src/qts-interpreter/script.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'script.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.2. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_Kross__EcmaScript_t {
    QByteArrayData data[10];
    char stringdata0[85];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Kross__EcmaScript_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Kross__EcmaScript_t qt_meta_stringdata_Kross__EcmaScript = {
    {
QT_MOC_LITERAL(0, 0, 17), // "Kross::EcmaScript"
QT_MOC_LITERAL(1, 18, 7), // "execute"
QT_MOC_LITERAL(2, 26, 0), // ""
QT_MOC_LITERAL(3, 27, 13), // "functionNames"
QT_MOC_LITERAL(4, 41, 12), // "callFunction"
QT_MOC_LITERAL(5, 54, 4), // "name"
QT_MOC_LITERAL(6, 59, 4), // "args"
QT_MOC_LITERAL(7, 64, 8), // "evaluate"
QT_MOC_LITERAL(8, 73, 4), // "code"
QT_MOC_LITERAL(9, 78, 6) // "engine"

    },
    "Kross::EcmaScript\0execute\0\0functionNames\0"
    "callFunction\0name\0args\0evaluate\0code\0"
    "engine"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Kross__EcmaScript[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
       6,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       0,       // signalCount

 // slots: name, argc, parameters, tag, flags
       1,    0,   44,    2, 0x0a /* Public */,
       3,    0,   45,    2, 0x0a /* Public */,
       4,    2,   46,    2, 0x0a /* Public */,
       4,    1,   51,    2, 0x2a /* Public | MethodCloned */,
       7,    1,   54,    2, 0x0a /* Public */,
       9,    0,   57,    2, 0x0a /* Public */,

 // slots: parameters
    QMetaType::Void,
    QMetaType::QStringList,
    QMetaType::QVariant, QMetaType::QString, QMetaType::QVariantList,    5,    6,
    QMetaType::QVariant, QMetaType::QString,    5,
    QMetaType::QVariant, QMetaType::QByteArray,    8,
    QMetaType::QObjectStar,

       0        // eod
};

void Kross::EcmaScript::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        EcmaScript *_t = static_cast<EcmaScript *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->execute(); break;
        case 1: { QStringList _r = _t->functionNames();
            if (_a[0]) *reinterpret_cast< QStringList*>(_a[0]) = std::move(_r); }  break;
        case 2: { QVariant _r = _t->callFunction((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QVariantList(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< QVariant*>(_a[0]) = std::move(_r); }  break;
        case 3: { QVariant _r = _t->callFunction((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QVariant*>(_a[0]) = std::move(_r); }  break;
        case 4: { QVariant _r = _t->evaluate((*reinterpret_cast< const QByteArray(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QVariant*>(_a[0]) = std::move(_r); }  break;
        case 5: { QObject* _r = _t->engine();
            if (_a[0]) *reinterpret_cast< QObject**>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
}

const QMetaObject Kross::EcmaScript::staticMetaObject = {
    { &Kross::Script::staticMetaObject, qt_meta_stringdata_Kross__EcmaScript.data,
      qt_meta_data_Kross__EcmaScript,  qt_static_metacall, nullptr, nullptr}
};


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

void *Kross::EcmaScript::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_Kross__EcmaScript.stringdata0))
        return static_cast<void*>(this);
    return Kross::Script::qt_metacast(_clname);
}

int Kross::EcmaScript::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Kross::Script::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;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 6)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 6;
    }
    return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
