/****************************************************************************
** Meta object code from reading C++ file 'dbus.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/libktcore/dbus/dbus.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'dbus.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__DBus_t {
    QByteArrayData data[48];
    char stringdata0[494];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_kt__DBus_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_kt__DBus_t qt_meta_stringdata_kt__DBus = {
    {
QT_MOC_LITERAL(0, 0, 8), // "kt::DBus"
QT_MOC_LITERAL(1, 9, 15), // "D-Bus Interface"
QT_MOC_LITERAL(2, 25, 17), // "org.ktorrent.core"
QT_MOC_LITERAL(3, 43, 12), // "torrentAdded"
QT_MOC_LITERAL(4, 56, 0), // ""
QT_MOC_LITERAL(5, 57, 3), // "tor"
QT_MOC_LITERAL(6, 61, 14), // "torrentRemoved"
QT_MOC_LITERAL(7, 76, 8), // "finished"
QT_MOC_LITERAL(8, 85, 21), // "torrentStoppedByError"
QT_MOC_LITERAL(9, 107, 3), // "msg"
QT_MOC_LITERAL(10, 111, 15), // "settingsChanged"
QT_MOC_LITERAL(11, 127, 19), // "suspendStateChanged"
QT_MOC_LITERAL(12, 147, 9), // "suspended"
QT_MOC_LITERAL(13, 157, 8), // "torrents"
QT_MOC_LITERAL(14, 166, 5), // "start"
QT_MOC_LITERAL(15, 172, 9), // "info_hash"
QT_MOC_LITERAL(16, 182, 4), // "stop"
QT_MOC_LITERAL(17, 187, 8), // "startAll"
QT_MOC_LITERAL(18, 196, 7), // "stopAll"
QT_MOC_LITERAL(19, 204, 4), // "load"
QT_MOC_LITERAL(20, 209, 3), // "url"
QT_MOC_LITERAL(21, 213, 5), // "group"
QT_MOC_LITERAL(22, 219, 12), // "loadSilently"
QT_MOC_LITERAL(23, 232, 6), // "remove"
QT_MOC_LITERAL(24, 239, 7), // "data_to"
QT_MOC_LITERAL(25, 247, 13), // "removeDelayed"
QT_MOC_LITERAL(26, 261, 12), // "setSuspended"
QT_MOC_LITERAL(27, 274, 7), // "suspend"
QT_MOC_LITERAL(28, 282, 10), // "orderQueue"
QT_MOC_LITERAL(29, 293, 12), // "reindexQueue"
QT_MOC_LITERAL(30, 306, 6), // "groups"
QT_MOC_LITERAL(31, 313, 8), // "addGroup"
QT_MOC_LITERAL(32, 322, 11), // "removeGroup"
QT_MOC_LITERAL(33, 334, 7), // "torrent"
QT_MOC_LITERAL(34, 342, 4), // "name"
QT_MOC_LITERAL(35, 347, 8), // "settings"
QT_MOC_LITERAL(36, 356, 3), // "log"
QT_MOC_LITERAL(37, 360, 4), // "line"
QT_MOC_LITERAL(38, 365, 18), // "numTorrentsRunning"
QT_MOC_LITERAL(39, 384, 21), // "numTorrentsNotRunning"
QT_MOC_LITERAL(40, 406, 7), // "dataDir"
QT_MOC_LITERAL(41, 414, 21), // "bt::TorrentInterface*"
QT_MOC_LITERAL(42, 436, 2), // "tc"
QT_MOC_LITERAL(43, 439, 10), // "groupAdded"
QT_MOC_LITERAL(44, 450, 6), // "Group*"
QT_MOC_LITERAL(45, 457, 1), // "g"
QT_MOC_LITERAL(46, 459, 12), // "groupRemoved"
QT_MOC_LITERAL(47, 472, 21) // "delayedTorrentRemoval"

    },
    "kt::DBus\0D-Bus Interface\0org.ktorrent.core\0"
    "torrentAdded\0\0tor\0torrentRemoved\0"
    "finished\0torrentStoppedByError\0msg\0"
    "settingsChanged\0suspendStateChanged\0"
    "suspended\0torrents\0start\0info_hash\0"
    "stop\0startAll\0stopAll\0load\0url\0group\0"
    "loadSilently\0remove\0data_to\0removeDelayed\0"
    "setSuspended\0suspend\0orderQueue\0"
    "reindexQueue\0groups\0addGroup\0removeGroup\0"
    "torrent\0name\0settings\0log\0line\0"
    "numTorrentsRunning\0numTorrentsNotRunning\0"
    "dataDir\0bt::TorrentInterface*\0tc\0"
    "groupAdded\0Group*\0g\0groupRemoved\0"
    "delayedTorrentRemoval"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_kt__DBus[] = {

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

 // classinfo: key, value
       1,    2,

 // signals: name, argc, parameters, tag, flags
       3,    1,  196,    4, 0x46 /* Public | isScriptable */,
       6,    1,  199,    4, 0x46 /* Public | isScriptable */,
       7,    1,  202,    4, 0x46 /* Public | isScriptable */,
       8,    2,  205,    4, 0x46 /* Public | isScriptable */,
      10,    0,  210,    4, 0x46 /* Public | isScriptable */,
      11,    1,  211,    4, 0x46 /* Public | isScriptable */,

 // slots: name, argc, parameters, tag, flags
      13,    0,  214,    4, 0x4a /* Public | isScriptable */,
      14,    1,  215,    4, 0x4a /* Public | isScriptable */,
      16,    1,  218,    4, 0x4a /* Public | isScriptable */,
      17,    0,  221,    4, 0x4a /* Public | isScriptable */,
      18,    0,  222,    4, 0x4a /* Public | isScriptable */,
      19,    2,  223,    4, 0x4a /* Public | isScriptable */,
      22,    2,  228,    4, 0x4a /* Public | isScriptable */,
      23,    2,  233,    4, 0x4a /* Public | isScriptable */,
      25,    2,  238,    4, 0x4a /* Public | isScriptable */,
      26,    1,  243,    4, 0x4a /* Public | isScriptable */,
      12,    0,  246,    4, 0x4a /* Public | isScriptable */,
      28,    0,  247,    4, 0x4a /* Public | isScriptable */,
      29,    0,  248,    4, 0x4a /* Public | isScriptable */,
      30,    0,  249,    4, 0x4a /* Public | isScriptable */,
      31,    1,  250,    4, 0x4a /* Public | isScriptable */,
      32,    1,  253,    4, 0x4a /* Public | isScriptable */,
      33,    1,  256,    4, 0x4a /* Public | isScriptable */,
      21,    1,  259,    4, 0x4a /* Public | isScriptable */,
      35,    0,  262,    4, 0x4a /* Public | isScriptable */,
      36,    1,  263,    4, 0x4a /* Public | isScriptable */,
      38,    0,  266,    4, 0x4a /* Public | isScriptable */,
      39,    0,  267,    4, 0x4a /* Public | isScriptable */,
      40,    0,  268,    4, 0x4a /* Public | isScriptable */,
       3,    1,  269,    4, 0x08 /* Private */,
       6,    1,  272,    4, 0x08 /* Private */,
       7,    1,  275,    4, 0x08 /* Private */,
       8,    2,  278,    4, 0x08 /* Private */,
      43,    1,  283,    4, 0x08 /* Private */,
      46,    1,  286,    4, 0x08 /* Private */,
      47,    0,  289,    4, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, QMetaType::QString,    5,
    QMetaType::Void, QMetaType::QString,    5,
    QMetaType::Void, QMetaType::QString,    5,
    QMetaType::Void, QMetaType::QString, QMetaType::QString,    5,    9,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,   12,

 // slots: parameters
    QMetaType::QStringList,
    QMetaType::Void, QMetaType::QString,   15,
    QMetaType::Void, QMetaType::QString,   15,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString, QMetaType::QString,   20,   21,
    QMetaType::Void, QMetaType::QString, QMetaType::QString,   20,   21,
    QMetaType::Void, QMetaType::QString, QMetaType::Bool,   15,   24,
    QMetaType::Void, QMetaType::QString, QMetaType::Bool,   15,   24,
    QMetaType::Void, QMetaType::Bool,   27,
    QMetaType::Bool,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::QStringList,
    QMetaType::Bool, QMetaType::QString,   21,
    QMetaType::Bool, QMetaType::QString,   21,
    QMetaType::QObjectStar, QMetaType::QString,   15,
    QMetaType::QObjectStar, QMetaType::QString,   34,
    QMetaType::QObjectStar,
    QMetaType::Void, QMetaType::QString,   37,
    QMetaType::UInt,
    QMetaType::UInt,
    QMetaType::QString,
    QMetaType::Void, 0x80000000 | 41,   42,
    QMetaType::Void, 0x80000000 | 41,   42,
    QMetaType::Void, 0x80000000 | 41,   42,
    QMetaType::Void, 0x80000000 | 41, QMetaType::QString,   42,    9,
    QMetaType::Void, 0x80000000 | 44,   45,
    QMetaType::Void, 0x80000000 | 44,   45,
    QMetaType::Void,

       0        // eod
};

void kt::DBus::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        DBus *_t = static_cast<DBus *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->torrentAdded((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 1: _t->torrentRemoved((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 2: _t->finished((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 3: _t->torrentStoppedByError((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 4: _t->settingsChanged(); break;
        case 5: _t->suspendStateChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 6: { QStringList _r = _t->torrents();
            if (_a[0]) *reinterpret_cast< QStringList*>(_a[0]) = std::move(_r); }  break;
        case 7: _t->start((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 8: _t->stop((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 9: _t->startAll(); break;
        case 10: _t->stopAll(); break;
        case 11: _t->load((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 12: _t->loadSilently((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 13: _t->remove((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 14: _t->removeDelayed((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 15: _t->setSuspended((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 16: { bool _r = _t->suspended();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 17: _t->orderQueue(); break;
        case 18: _t->reindexQueue(); break;
        case 19: { QStringList _r = _t->groups();
            if (_a[0]) *reinterpret_cast< QStringList*>(_a[0]) = std::move(_r); }  break;
        case 20: { bool _r = _t->addGroup((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 21: { bool _r = _t->removeGroup((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 22: { QObject* _r = _t->torrent((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QObject**>(_a[0]) = std::move(_r); }  break;
        case 23: { QObject* _r = _t->group((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QObject**>(_a[0]) = std::move(_r); }  break;
        case 24: { QObject* _r = _t->settings();
            if (_a[0]) *reinterpret_cast< QObject**>(_a[0]) = std::move(_r); }  break;
        case 25: _t->log((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 26: { uint _r = _t->numTorrentsRunning();
            if (_a[0]) *reinterpret_cast< uint*>(_a[0]) = std::move(_r); }  break;
        case 27: { uint _r = _t->numTorrentsNotRunning();
            if (_a[0]) *reinterpret_cast< uint*>(_a[0]) = std::move(_r); }  break;
        case 28: { QString _r = _t->dataDir();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); }  break;
        case 29: _t->torrentAdded((*reinterpret_cast< bt::TorrentInterface*(*)>(_a[1]))); break;
        case 30: _t->torrentRemoved((*reinterpret_cast< bt::TorrentInterface*(*)>(_a[1]))); break;
        case 31: _t->finished((*reinterpret_cast< bt::TorrentInterface*(*)>(_a[1]))); break;
        case 32: _t->torrentStoppedByError((*reinterpret_cast< bt::TorrentInterface*(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2]))); break;
        case 33: _t->groupAdded((*reinterpret_cast< Group*(*)>(_a[1]))); break;
        case 34: _t->groupRemoved((*reinterpret_cast< Group*(*)>(_a[1]))); break;
        case 35: _t->delayedTorrentRemoval(); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 29:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< bt::TorrentInterface* >(); break;
            }
            break;
        case 30:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< bt::TorrentInterface* >(); break;
            }
            break;
        case 31:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< bt::TorrentInterface* >(); break;
            }
            break;
        case 32:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< bt::TorrentInterface* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (DBus::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DBus::torrentAdded)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (DBus::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DBus::torrentRemoved)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (DBus::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DBus::finished)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (DBus::*_t)(const QString & , const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DBus::torrentStoppedByError)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (DBus::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DBus::settingsChanged)) {
                *result = 4;
                return;
            }
        }
        {
            typedef void (DBus::*_t)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DBus::suspendStateChanged)) {
                *result = 5;
                return;
            }
        }
    }
}

const QMetaObject kt::DBus::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_kt__DBus.data,
      qt_meta_data_kt__DBus,  qt_static_metacall, nullptr, nullptr}
};


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

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

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

// SIGNAL 0
void kt::DBus::torrentAdded(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void kt::DBus::torrentRemoved(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

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

// SIGNAL 3
void kt::DBus::torrentStoppedByError(const QString & _t1, const QString & _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}

// SIGNAL 4
void kt::DBus::settingsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void kt::DBus::suspendStateChanged(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 5, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
