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

#include "../../../src/ktorrent-5.1.0/plugins/scripting/scriptmanager.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'scriptmanager.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.4. 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_kt__ScriptManager_t {
    QByteArrayData data[18];
    char stringdata0[194];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_kt__ScriptManager_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_kt__ScriptManager_t qt_meta_stringdata_kt__ScriptManager = {
    {
QT_MOC_LITERAL(0, 0, 17), // "kt::ScriptManager"
QT_MOC_LITERAL(1, 18, 9), // "addScript"
QT_MOC_LITERAL(2, 28, 0), // ""
QT_MOC_LITERAL(3, 29, 12), // "removeScript"
QT_MOC_LITERAL(4, 42, 18), // "onSelectionChanged"
QT_MOC_LITERAL(5, 61, 14), // "QItemSelection"
QT_MOC_LITERAL(6, 76, 8), // "selected"
QT_MOC_LITERAL(7, 85, 10), // "deselected"
QT_MOC_LITERAL(8, 96, 15), // "showContextMenu"
QT_MOC_LITERAL(9, 112, 1), // "p"
QT_MOC_LITERAL(10, 114, 11), // "dataChanged"
QT_MOC_LITERAL(11, 126, 1), // "f"
QT_MOC_LITERAL(12, 128, 2), // "to"
QT_MOC_LITERAL(13, 131, 9), // "runScript"
QT_MOC_LITERAL(14, 141, 10), // "stopScript"
QT_MOC_LITERAL(15, 152, 10), // "editScript"
QT_MOC_LITERAL(16, 163, 15), // "configureScript"
QT_MOC_LITERAL(17, 179, 14) // "showProperties"

    },
    "kt::ScriptManager\0addScript\0\0removeScript\0"
    "onSelectionChanged\0QItemSelection\0"
    "selected\0deselected\0showContextMenu\0"
    "p\0dataChanged\0f\0to\0runScript\0stopScript\0"
    "editScript\0configureScript\0showProperties"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_kt__ScriptManager[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,   64,    2, 0x06 /* Public */,
       3,    0,   65,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       4,    2,   66,    2, 0x08 /* Private */,
       8,    1,   71,    2, 0x08 /* Private */,
      10,    2,   74,    2, 0x08 /* Private */,
      13,    0,   79,    2, 0x08 /* Private */,
      14,    0,   80,    2, 0x08 /* Private */,
      15,    0,   81,    2, 0x08 /* Private */,
      16,    0,   82,    2, 0x08 /* Private */,
      17,    0,   83,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 5, 0x80000000 | 5,    6,    7,
    QMetaType::Void, QMetaType::QPoint,    9,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::QModelIndex,   11,   12,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

void kt::ScriptManager::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        ScriptManager *_t = static_cast<ScriptManager *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->addScript(); break;
        case 1: _t->removeScript(); break;
        case 2: _t->onSelectionChanged((*reinterpret_cast< const QItemSelection(*)>(_a[1])),(*reinterpret_cast< const QItemSelection(*)>(_a[2]))); break;
        case 3: _t->showContextMenu((*reinterpret_cast< const QPoint(*)>(_a[1]))); break;
        case 4: _t->dataChanged((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< const QModelIndex(*)>(_a[2]))); break;
        case 5: _t->runScript(); break;
        case 6: _t->stopScript(); break;
        case 7: _t->editScript(); break;
        case 8: _t->configureScript(); break;
        case 9: _t->showProperties(); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 1:
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QItemSelection >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (ScriptManager::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ScriptManager::addScript)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (ScriptManager::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ScriptManager::removeScript)) {
                *result = 1;
                return;
            }
        }
    }
}

const QMetaObject kt::ScriptManager::staticMetaObject = {
    { &Activity::staticMetaObject, qt_meta_stringdata_kt__ScriptManager.data,
      qt_meta_data_kt__ScriptManager,  qt_static_metacall, nullptr, nullptr}
};


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

void *kt::ScriptManager::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_kt__ScriptManager.stringdata0))
        return static_cast<void*>(this);
    return Activity::qt_metacast(_clname);
}

int kt::ScriptManager::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Activity::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 10)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 10)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    }
    return _id;
}

// SIGNAL 0
void kt::ScriptManager::addScript()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void kt::ScriptManager::removeScript()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
