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

#include "../../../../../client/plugins/src/download/download.h"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'download.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 63
#error "This file was generated using the moc from 4.8.7. 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
static const uint qt_meta_data_Download[] = {

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

 // signals: signature, parameters, type, tag, flags
      14,   10,    9,    9, 0x05,
      40,   10,    9,    9, 0x05,
      66,   10,    9,    9, 0x05,
      93,   10,    9,    9, 0x05,

 // slots: signature, parameters, type, tag, flags
     122,  117,    9,    9, 0x0a,
     142,  117,    9,    9, 0x0a,
     160,  117,    9,    9, 0x08,
     185,    9,    9,    9, 0x08,
     201,  117,    9,    9, 0x08,
     225,  117,    9,    9, 0x08,
     270,  249,    9,    9, 0x08,
     300,    9,    9,    9, 0x08,
     317,    9,    9,    9, 0x08,
     341,  335,    9,    9, 0x08,
     392,  385,    9,    9, 0x08,
     435,  429,  422,    9, 0x08,

       0        // eod
};

static const char qt_meta_stringdata_Download[] = {
    "Download\0\0map\0toCreateTask(QVariantMap)\0"
    "toResumeTask(QVariantMap)\0"
    "toCheckOffset(QVariantMap)\0"
    "toStopTask(QVariantMap)\0task\0"
    "append(QVariantMap)\0stop(QVariantMap)\0"
    "prepareTask(QVariantMap)\0startNextTask()\0"
    "createTask(QVariantMap)\0resumeTask(QVariantMap)\0"
    "bytesSent,bytesTotal\0onTaskProgress(qint64,qint64)\0"
    "onTaskFinished()\0onTaskReadyRead()\0"
    "error\0onNetworkError(QNetworkReply::NetworkError)\0"
    "errors\0onSslErrors(QList<QSslError>)\0"
    "QFile*\0reply\0getFileHandle(const QNetworkReply*)\0"
};

void Download::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        Q_ASSERT(staticMetaObject.cast(_o));
        Download *_t = static_cast<Download *>(_o);
        switch (_id) {
        case 0: _t->toCreateTask((*reinterpret_cast< const QVariantMap(*)>(_a[1]))); break;
        case 1: _t->toResumeTask((*reinterpret_cast< const QVariantMap(*)>(_a[1]))); break;
        case 2: _t->toCheckOffset((*reinterpret_cast< const QVariantMap(*)>(_a[1]))); break;
        case 3: _t->toStopTask((*reinterpret_cast< const QVariantMap(*)>(_a[1]))); break;
        case 4: _t->append((*reinterpret_cast< const QVariantMap(*)>(_a[1]))); break;
        case 5: _t->stop((*reinterpret_cast< const QVariantMap(*)>(_a[1]))); break;
        case 6: _t->prepareTask((*reinterpret_cast< const QVariantMap(*)>(_a[1]))); break;
        case 7: _t->startNextTask(); break;
        case 8: _t->createTask((*reinterpret_cast< const QVariantMap(*)>(_a[1]))); break;
        case 9: _t->resumeTask((*reinterpret_cast< const QVariantMap(*)>(_a[1]))); break;
        case 10: _t->onTaskProgress((*reinterpret_cast< qint64(*)>(_a[1])),(*reinterpret_cast< qint64(*)>(_a[2]))); break;
        case 11: _t->onTaskFinished(); break;
        case 12: _t->onTaskReadyRead(); break;
        case 13: _t->onNetworkError((*reinterpret_cast< QNetworkReply::NetworkError(*)>(_a[1]))); break;
        case 14: _t->onSslErrors((*reinterpret_cast< QList<QSslError>(*)>(_a[1]))); break;
        case 15: { QFile* _r = _t->getFileHandle((*reinterpret_cast< const QNetworkReply*(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QFile**>(_a[0]) = _r; }  break;
        default: ;
        }
    }
}

const QMetaObjectExtraData Download::staticMetaObjectExtraData = {
    0,  qt_static_metacall 
};

const QMetaObject Download::staticMetaObject = {
    { &DownloadInterface::staticMetaObject, qt_meta_stringdata_Download,
      qt_meta_data_Download, &staticMetaObjectExtraData }
};

#ifdef Q_NO_DATA_RELOCATION
const QMetaObject &Download::getStaticMetaObject() { return staticMetaObject; }
#endif //Q_NO_DATA_RELOCATION

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

void *Download::qt_metacast(const char *_clname)
{
    if (!_clname) return 0;
    if (!strcmp(_clname, qt_meta_stringdata_Download))
        return static_cast<void*>(const_cast< Download*>(this));
    if (!strcmp(_clname, "id.go.lkpp.downloader/0.0.1"))
        return static_cast< DownloadInterface*>(const_cast< Download*>(this));
    return DownloadInterface::qt_metacast(_clname);
}

int Download::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = DownloadInterface::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 16)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 16;
    }
    return _id;
}

// SIGNAL 0
void Download::toCreateTask(const QVariantMap & _t1)
{
    void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void Download::toResumeTask(const QVariantMap & _t1)
{
    void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void Download::toCheckOffset(const QVariantMap & _t1)
{
    void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void Download::toStopTask(const QVariantMap & _t1)
{
    void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}
QT_END_MOC_NAMESPACE
