/****************************************************************************
** Meta object code from reading C++ file 'magnetmanager.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/magnetmanager.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'magnetmanager.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__MagnetDownloader_t {
    QByteArrayData data[1];
    char stringdata0[21];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_kt__MagnetDownloader_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_kt__MagnetDownloader_t qt_meta_stringdata_kt__MagnetDownloader = {
    {
QT_MOC_LITERAL(0, 0, 20) // "kt::MagnetDownloader"

    },
    "kt::MagnetDownloader"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_kt__MagnetDownloader[] = {

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

       0        // eod
};

void kt::MagnetDownloader::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    Q_UNUSED(_o);
    Q_UNUSED(_id);
    Q_UNUSED(_c);
    Q_UNUSED(_a);
}

const QMetaObject kt::MagnetDownloader::staticMetaObject = {
    { &bt::MagnetDownloader::staticMetaObject, qt_meta_stringdata_kt__MagnetDownloader.data,
      qt_meta_data_kt__MagnetDownloader,  qt_static_metacall, nullptr, nullptr}
};


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

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

int kt::MagnetDownloader::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = bt::MagnetDownloader::qt_metacall(_c, _id, _a);
    return _id;
}
struct qt_meta_stringdata_kt__DownloadSlot_t {
    QByteArrayData data[5];
    char stringdata0[46];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_kt__DownloadSlot_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_kt__DownloadSlot_t qt_meta_stringdata_kt__DownloadSlot = {
    {
QT_MOC_LITERAL(0, 0, 16), // "kt::DownloadSlot"
QT_MOC_LITERAL(1, 17, 7), // "timeout"
QT_MOC_LITERAL(2, 25, 0), // ""
QT_MOC_LITERAL(3, 26, 9), // "magnetIdx"
QT_MOC_LITERAL(4, 36, 9) // "onTimeout"

    },
    "kt::DownloadSlot\0timeout\0\0magnetIdx\0"
    "onTimeout"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_kt__DownloadSlot[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   24,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       4,    0,   27,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, QMetaType::Int,    3,

 // slots: parameters
    QMetaType::Void,

       0        // eod
};

void kt::DownloadSlot::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        DownloadSlot *_t = static_cast<DownloadSlot *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->timeout((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 1: _t->onTimeout(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (DownloadSlot::*_t)(int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DownloadSlot::timeout)) {
                *result = 0;
                return;
            }
        }
    }
}

const QMetaObject kt::DownloadSlot::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_kt__DownloadSlot.data,
      qt_meta_data_kt__DownloadSlot,  qt_static_metacall, nullptr, nullptr}
};


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

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

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

// SIGNAL 0
void kt::DownloadSlot::timeout(int _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
struct qt_meta_stringdata_kt__MagnetManager_t {
    QByteArrayData data[17];
    char stringdata0[199];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_kt__MagnetManager_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_kt__MagnetManager_t qt_meta_stringdata_kt__MagnetManager = {
    {
QT_MOC_LITERAL(0, 0, 17), // "kt::MagnetManager"
QT_MOC_LITERAL(1, 18, 18), // "metadataDownloaded"
QT_MOC_LITERAL(2, 37, 0), // ""
QT_MOC_LITERAL(3, 38, 14), // "bt::MagnetLink"
QT_MOC_LITERAL(4, 53, 5), // "mlink"
QT_MOC_LITERAL(5, 59, 4), // "data"
QT_MOC_LITERAL(6, 64, 25), // "kt::MagnetLinkLoadOptions"
QT_MOC_LITERAL(7, 90, 7), // "options"
QT_MOC_LITERAL(8, 98, 11), // "updateQueue"
QT_MOC_LITERAL(9, 110, 10), // "bt::Uint32"
QT_MOC_LITERAL(10, 121, 3), // "idx"
QT_MOC_LITERAL(11, 125, 5), // "count"
QT_MOC_LITERAL(12, 131, 18), // "onDownloadFinished"
QT_MOC_LITERAL(13, 150, 21), // "bt::MagnetDownloader*"
QT_MOC_LITERAL(14, 172, 2), // "md"
QT_MOC_LITERAL(15, 175, 13), // "onSlotTimeout"
QT_MOC_LITERAL(16, 189, 9) // "magnetIdx"

    },
    "kt::MagnetManager\0metadataDownloaded\0"
    "\0bt::MagnetLink\0mlink\0data\0"
    "kt::MagnetLinkLoadOptions\0options\0"
    "updateQueue\0bt::Uint32\0idx\0count\0"
    "onDownloadFinished\0bt::MagnetDownloader*\0"
    "md\0onSlotTimeout\0magnetIdx"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_kt__MagnetManager[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    3,   34,    2, 0x06 /* Public */,
       8,    2,   41,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      12,    2,   46,    2, 0x08 /* Private */,
      15,    1,   51,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3, QMetaType::QByteArray, 0x80000000 | 6,    4,    5,    7,
    QMetaType::Void, 0x80000000 | 9, 0x80000000 | 9,   10,   11,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 13, QMetaType::QByteArray,   14,    5,
    QMetaType::Void, QMetaType::Int,   16,

       0        // eod
};

void kt::MagnetManager::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        MagnetManager *_t = static_cast<MagnetManager *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->metadataDownloaded((*reinterpret_cast< const bt::MagnetLink(*)>(_a[1])),(*reinterpret_cast< const QByteArray(*)>(_a[2])),(*reinterpret_cast< const kt::MagnetLinkLoadOptions(*)>(_a[3]))); break;
        case 1: _t->updateQueue((*reinterpret_cast< bt::Uint32(*)>(_a[1])),(*reinterpret_cast< bt::Uint32(*)>(_a[2]))); break;
        case 2: _t->onDownloadFinished((*reinterpret_cast< bt::MagnetDownloader*(*)>(_a[1])),(*reinterpret_cast< const QByteArray(*)>(_a[2]))); break;
        case 3: _t->onSlotTimeout((*reinterpret_cast< int(*)>(_a[1]))); 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 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< bt::MagnetDownloader* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (MagnetManager::*_t)(const bt::MagnetLink & , const QByteArray & , const kt::MagnetLinkLoadOptions & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MagnetManager::metadataDownloaded)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (MagnetManager::*_t)(bt::Uint32 , bt::Uint32 );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MagnetManager::updateQueue)) {
                *result = 1;
                return;
            }
        }
    }
}

const QMetaObject kt::MagnetManager::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_kt__MagnetManager.data,
      qt_meta_data_kt__MagnetManager,  qt_static_metacall, nullptr, nullptr}
};


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

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

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

// SIGNAL 0
void kt::MagnetManager::metadataDownloaded(const bt::MagnetLink & _t1, const QByteArray & _t2, const kt::MagnetLinkLoadOptions & _t3)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void kt::MagnetManager::updateQueue(bt::Uint32 _t1, bt::Uint32 _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);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
