/****************************************************************************
** Meta object code from reading C++ file 'queuemanager.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/torrent/queuemanager.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#include <QtCore/QList>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'queuemanager.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__QueueManager_t {
    QByteArrayData data[22];
    char stringdata0[307];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_kt__QueueManager_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_kt__QueueManager_t qt_meta_stringdata_kt__QueueManager = {
    {
QT_MOC_LITERAL(0, 0, 16), // "kt::QueueManager"
QT_MOC_LITERAL(1, 17, 18), // "queuingNotPossible"
QT_MOC_LITERAL(2, 36, 0), // ""
QT_MOC_LITERAL(3, 37, 21), // "bt::TorrentInterface*"
QT_MOC_LITERAL(4, 59, 2), // "tc"
QT_MOC_LITERAL(5, 62, 12), // "lowDiskSpace"
QT_MOC_LITERAL(6, 75, 7), // "stopped"
QT_MOC_LITERAL(7, 83, 13), // "orderingQueue"
QT_MOC_LITERAL(8, 97, 12), // "queueOrdered"
QT_MOC_LITERAL(9, 110, 19), // "suspendStateChanged"
QT_MOC_LITERAL(10, 130, 9), // "suspended"
QT_MOC_LITERAL(11, 140, 15), // "torrentFinished"
QT_MOC_LITERAL(12, 156, 12), // "torrentAdded"
QT_MOC_LITERAL(13, 169, 13), // "start_torrent"
QT_MOC_LITERAL(14, 183, 14), // "torrentRemoved"
QT_MOC_LITERAL(15, 198, 15), // "torrentsRemoved"
QT_MOC_LITERAL(16, 214, 29), // "QList<bt::TorrentInterface*>&"
QT_MOC_LITERAL(17, 244, 4), // "tors"
QT_MOC_LITERAL(18, 249, 14), // "torrentStopped"
QT_MOC_LITERAL(19, 264, 14), // "onLowDiskSpace"
QT_MOC_LITERAL(20, 279, 6), // "toStop"
QT_MOC_LITERAL(21, 286, 20) // "onOnlineStateChanged"

    },
    "kt::QueueManager\0queuingNotPossible\0"
    "\0bt::TorrentInterface*\0tc\0lowDiskSpace\0"
    "stopped\0orderingQueue\0queueOrdered\0"
    "suspendStateChanged\0suspended\0"
    "torrentFinished\0torrentAdded\0start_torrent\0"
    "torrentRemoved\0torrentsRemoved\0"
    "QList<bt::TorrentInterface*>&\0tors\0"
    "torrentStopped\0onLowDiskSpace\0toStop\0"
    "onOnlineStateChanged"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_kt__QueueManager[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   74,    2, 0x06 /* Public */,
       5,    2,   77,    2, 0x06 /* Public */,
       7,    0,   82,    2, 0x06 /* Public */,
       8,    0,   83,    2, 0x06 /* Public */,
       9,    1,   84,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      11,    1,   87,    2, 0x0a /* Public */,
      12,    2,   90,    2, 0x0a /* Public */,
      14,    1,   95,    2, 0x0a /* Public */,
      15,    1,   98,    2, 0x0a /* Public */,
      18,    1,  101,    2, 0x0a /* Public */,
      19,    2,  104,    2, 0x0a /* Public */,
      21,    1,  109,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, 0x80000000 | 3, QMetaType::Bool,    4,    6,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,   10,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, 0x80000000 | 3, QMetaType::Bool,    4,   13,
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, 0x80000000 | 16,   17,
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, 0x80000000 | 3, QMetaType::Bool,    4,   20,
    QMetaType::Void, QMetaType::Bool,    2,

       0        // eod
};

void kt::QueueManager::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        QueueManager *_t = static_cast<QueueManager *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->queuingNotPossible((*reinterpret_cast< bt::TorrentInterface*(*)>(_a[1]))); break;
        case 1: _t->lowDiskSpace((*reinterpret_cast< bt::TorrentInterface*(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 2: _t->orderingQueue(); break;
        case 3: _t->queueOrdered(); break;
        case 4: _t->suspendStateChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 5: _t->torrentFinished((*reinterpret_cast< bt::TorrentInterface*(*)>(_a[1]))); break;
        case 6: _t->torrentAdded((*reinterpret_cast< bt::TorrentInterface*(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 7: _t->torrentRemoved((*reinterpret_cast< bt::TorrentInterface*(*)>(_a[1]))); break;
        case 8: _t->torrentsRemoved((*reinterpret_cast< QList<bt::TorrentInterface*>(*)>(_a[1]))); break;
        case 9: _t->torrentStopped((*reinterpret_cast< bt::TorrentInterface*(*)>(_a[1]))); break;
        case 10: _t->onLowDiskSpace((*reinterpret_cast< bt::TorrentInterface*(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 11: _t->onOnlineStateChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            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 1:
            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 5:
            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 6:
            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 7:
            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 9:
            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 10:
            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 (QueueManager::*_t)(bt::TorrentInterface * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QueueManager::queuingNotPossible)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (QueueManager::*_t)(bt::TorrentInterface * , bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QueueManager::lowDiskSpace)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (QueueManager::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QueueManager::orderingQueue)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (QueueManager::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QueueManager::queueOrdered)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (QueueManager::*_t)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QueueManager::suspendStateChanged)) {
                *result = 4;
                return;
            }
        }
    }
}

const QMetaObject kt::QueueManager::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_kt__QueueManager.data,
      qt_meta_data_kt__QueueManager,  qt_static_metacall, nullptr, nullptr}
};


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

void *kt::QueueManager::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_kt__QueueManager.stringdata0))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "bt::QueueManagerInterface"))
        return static_cast< bt::QueueManagerInterface*>(this);
    return QObject::qt_metacast(_clname);
}

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

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

// SIGNAL 1
void kt::QueueManager::lowDiskSpace(bt::TorrentInterface * _t1, bool _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void kt::QueueManager::orderingQueue()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void kt::QueueManager::queueOrdered()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

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