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

#include "../../src/stellarium-0.14.3/src/scripting/StelScriptMgr.hpp"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'StelScriptMgr.hpp' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.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
struct qt_meta_stringdata_StelScriptMgr_t {
    QByteArrayData data[28];
    char stringdata0[305];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_StelScriptMgr_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_StelScriptMgr_t qt_meta_stringdata_StelScriptMgr = {
    {
QT_MOC_LITERAL(0, 0, 13), // "StelScriptMgr"
QT_MOC_LITERAL(1, 14, 13), // "scriptRunning"
QT_MOC_LITERAL(2, 28, 0), // ""
QT_MOC_LITERAL(3, 29, 13), // "scriptStopped"
QT_MOC_LITERAL(4, 43, 11), // "scriptDebug"
QT_MOC_LITERAL(5, 55, 12), // "scriptOutput"
QT_MOC_LITERAL(6, 68, 7), // "getName"
QT_MOC_LITERAL(7, 76, 1), // "s"
QT_MOC_LITERAL(8, 78, 9), // "getAuthor"
QT_MOC_LITERAL(9, 88, 10), // "getLicense"
QT_MOC_LITERAL(10, 99, 14), // "getDescription"
QT_MOC_LITERAL(11, 114, 11), // "getShortcut"
QT_MOC_LITERAL(12, 126, 21), // "runPreprocessedScript"
QT_MOC_LITERAL(13, 148, 18), // "preprocessedScript"
QT_MOC_LITERAL(14, 167, 9), // "runScript"
QT_MOC_LITERAL(15, 177, 8), // "fileName"
QT_MOC_LITERAL(16, 186, 11), // "includePath"
QT_MOC_LITERAL(17, 198, 10), // "stopScript"
QT_MOC_LITERAL(18, 209, 13), // "setScriptRate"
QT_MOC_LITERAL(19, 223, 1), // "r"
QT_MOC_LITERAL(20, 225, 13), // "getScriptRate"
QT_MOC_LITERAL(21, 239, 5), // "debug"
QT_MOC_LITERAL(22, 245, 3), // "msg"
QT_MOC_LITERAL(23, 249, 6), // "output"
QT_MOC_LITERAL(24, 256, 11), // "resetOutput"
QT_MOC_LITERAL(25, 268, 11), // "pauseScript"
QT_MOC_LITERAL(26, 280, 12), // "resumeScript"
QT_MOC_LITERAL(27, 293, 11) // "scriptEnded"

    },
    "StelScriptMgr\0scriptRunning\0\0scriptStopped\0"
    "scriptDebug\0scriptOutput\0getName\0s\0"
    "getAuthor\0getLicense\0getDescription\0"
    "getShortcut\0runPreprocessedScript\0"
    "preprocessedScript\0runScript\0fileName\0"
    "includePath\0stopScript\0setScriptRate\0"
    "r\0getScriptRate\0debug\0msg\0output\0"
    "resetOutput\0pauseScript\0resumeScript\0"
    "scriptEnded"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_StelScriptMgr[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,  119,    2, 0x06 /* Public */,
       3,    0,  120,    2, 0x06 /* Public */,
       4,    1,  121,    2, 0x06 /* Public */,
       5,    1,  124,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       6,    1,  127,    2, 0x0a /* Public */,
       8,    1,  130,    2, 0x0a /* Public */,
       9,    1,  133,    2, 0x0a /* Public */,
      10,    1,  136,    2, 0x0a /* Public */,
      11,    1,  139,    2, 0x0a /* Public */,
      12,    1,  142,    2, 0x0a /* Public */,
      14,    2,  145,    2, 0x0a /* Public */,
      14,    1,  150,    2, 0x2a /* Public | MethodCloned */,
      17,    0,  153,    2, 0x0a /* Public */,
      18,    1,  154,    2, 0x0a /* Public */,
      20,    0,  157,    2, 0x0a /* Public */,
      21,    1,  158,    2, 0x0a /* Public */,
      23,    1,  161,    2, 0x0a /* Public */,
      24,    0,  164,    2, 0x0a /* Public */,
      25,    0,  165,    2, 0x0a /* Public */,
      26,    0,  166,    2, 0x0a /* Public */,
      27,    0,  167,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,    2,
    QMetaType::Void, QMetaType::QString,    2,

 // slots: parameters
    QMetaType::QString, QMetaType::QString,    7,
    QMetaType::QString, QMetaType::QString,    7,
    QMetaType::QString, QMetaType::QString,    7,
    QMetaType::QString, QMetaType::QString,    7,
    QMetaType::QString, QMetaType::QString,    7,
    QMetaType::Bool, QMetaType::QString,   13,
    QMetaType::Bool, QMetaType::QString, QMetaType::QString,   15,   16,
    QMetaType::Bool, QMetaType::QString,   15,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Float,   19,
    QMetaType::Double,
    QMetaType::Void, QMetaType::QString,   22,
    QMetaType::Void, QMetaType::QString,   22,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

void StelScriptMgr::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        StelScriptMgr *_t = static_cast<StelScriptMgr *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->scriptRunning(); break;
        case 1: _t->scriptStopped(); break;
        case 2: _t->scriptDebug((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 3: _t->scriptOutput((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 4: { QString _r = _t->getName((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; }  break;
        case 5: { QString _r = _t->getAuthor((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; }  break;
        case 6: { QString _r = _t->getLicense((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; }  break;
        case 7: { QString _r = _t->getDescription((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; }  break;
        case 8: { QString _r = _t->getShortcut((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; }  break;
        case 9: { bool _r = _t->runPreprocessedScript((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; }  break;
        case 10: { bool _r = _t->runScript((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; }  break;
        case 11: { bool _r = _t->runScript((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; }  break;
        case 12: _t->stopScript(); break;
        case 13: _t->setScriptRate((*reinterpret_cast< float(*)>(_a[1]))); break;
        case 14: { double _r = _t->getScriptRate();
            if (_a[0]) *reinterpret_cast< double*>(_a[0]) = _r; }  break;
        case 15: _t->debug((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 16: _t->output((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 17: _t->resetOutput(); break;
        case 18: _t->pauseScript(); break;
        case 19: _t->resumeScript(); break;
        case 20: _t->scriptEnded(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (StelScriptMgr::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&StelScriptMgr::scriptRunning)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (StelScriptMgr::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&StelScriptMgr::scriptStopped)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (StelScriptMgr::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&StelScriptMgr::scriptDebug)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (StelScriptMgr::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&StelScriptMgr::scriptOutput)) {
                *result = 3;
                return;
            }
        }
    }
}

const QMetaObject StelScriptMgr::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_StelScriptMgr.data,
      qt_meta_data_StelScriptMgr,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *StelScriptMgr::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_StelScriptMgr.stringdata0))
        return static_cast<void*>(const_cast< StelScriptMgr*>(this));
    return QObject::qt_metacast(_clname);
}

int StelScriptMgr::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 < 21)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 21;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 21)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 21;
    }
    return _id;
}

// SIGNAL 0
void StelScriptMgr::scriptRunning()
{
    QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
}

// SIGNAL 1
void StelScriptMgr::scriptStopped()
{
    QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
}

// SIGNAL 2
void StelScriptMgr::scriptDebug(const QString & _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void StelScriptMgr::scriptOutput(const QString & _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}
QT_END_MOC_NAMESPACE
