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

#include "../../../../src/marble-17.08.3/src/lib/marble/HttpDownloadManager.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'HttpDownloadManager.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.2. 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_Marble__HttpDownloadManager_t {
    QByteArrayData data[19];
    char stringdata0[200];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Marble__HttpDownloadManager_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Marble__HttpDownloadManager_t qt_meta_stringdata_Marble__HttpDownloadManager = {
    {
QT_MOC_LITERAL(0, 0, 27), // "Marble::HttpDownloadManager"
QT_MOC_LITERAL(1, 28, 16), // "downloadComplete"
QT_MOC_LITERAL(2, 45, 0), // ""
QT_MOC_LITERAL(3, 46, 4), // "data"
QT_MOC_LITERAL(4, 51, 11), // "initiatorId"
QT_MOC_LITERAL(5, 63, 8), // "jobAdded"
QT_MOC_LITERAL(6, 72, 10), // "jobRemoved"
QT_MOC_LITERAL(7, 83, 15), // "progressChanged"
QT_MOC_LITERAL(8, 99, 6), // "active"
QT_MOC_LITERAL(9, 106, 6), // "queued"
QT_MOC_LITERAL(10, 113, 6), // "addJob"
QT_MOC_LITERAL(11, 120, 9), // "sourceUrl"
QT_MOC_LITERAL(12, 130, 12), // "destFilename"
QT_MOC_LITERAL(13, 143, 2), // "id"
QT_MOC_LITERAL(14, 146, 13), // "DownloadUsage"
QT_MOC_LITERAL(15, 160, 5), // "usage"
QT_MOC_LITERAL(16, 166, 9), // "finishJob"
QT_MOC_LITERAL(17, 176, 7), // "requeue"
QT_MOC_LITERAL(18, 184, 15) // "startRetryTimer"

    },
    "Marble::HttpDownloadManager\0"
    "downloadComplete\0\0data\0initiatorId\0"
    "jobAdded\0jobRemoved\0progressChanged\0"
    "active\0queued\0addJob\0sourceUrl\0"
    "destFilename\0id\0DownloadUsage\0usage\0"
    "finishJob\0requeue\0startRetryTimer"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Marble__HttpDownloadManager[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    2,   59,    2, 0x06 /* Public */,
       1,    2,   64,    2, 0x06 /* Public */,
       5,    0,   69,    2, 0x06 /* Public */,
       6,    0,   70,    2, 0x06 /* Public */,
       7,    2,   71,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      10,    4,   76,    2, 0x0a /* Public */,
      16,    3,   85,    2, 0x08 /* Private */,
      17,    0,   92,    2, 0x08 /* Private */,
      18,    0,   93,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, QMetaType::QString, QMetaType::QString,    2,    2,
    QMetaType::Void, QMetaType::QByteArray, QMetaType::QString,    3,    4,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,    8,    9,

 // slots: parameters
    QMetaType::Void, QMetaType::QUrl, QMetaType::QString, QMetaType::QString, 0x80000000 | 14,   11,   12,   13,   15,
    QMetaType::Void, QMetaType::QByteArray, QMetaType::QString, QMetaType::QString,    2,    2,   13,
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

void Marble::HttpDownloadManager::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        HttpDownloadManager *_t = static_cast<HttpDownloadManager *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->downloadComplete((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 1: _t->downloadComplete((*reinterpret_cast< const QByteArray(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 2: _t->jobAdded(); break;
        case 3: _t->jobRemoved(); break;
        case 4: _t->progressChanged((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 5: _t->addJob((*reinterpret_cast< const QUrl(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3])),(*reinterpret_cast< const DownloadUsage(*)>(_a[4]))); break;
        case 6: _t->d->finishJob((*reinterpret_cast< const QByteArray(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3]))); break;
        case 7: _t->d->requeue(); break;
        case 8: _t->d->startRetryTimer(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (HttpDownloadManager::*_t)(const QString & , const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&HttpDownloadManager::downloadComplete)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (HttpDownloadManager::*_t)(const QByteArray & , const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&HttpDownloadManager::downloadComplete)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (HttpDownloadManager::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&HttpDownloadManager::jobAdded)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (HttpDownloadManager::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&HttpDownloadManager::jobRemoved)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (HttpDownloadManager::*_t)(int , int );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&HttpDownloadManager::progressChanged)) {
                *result = 4;
                return;
            }
        }
    }
}

const QMetaObject Marble::HttpDownloadManager::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_Marble__HttpDownloadManager.data,
      qt_meta_data_Marble__HttpDownloadManager,  qt_static_metacall, nullptr, nullptr}
};


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

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

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

// SIGNAL 0
void Marble::HttpDownloadManager::downloadComplete(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, 0, _a);
}

// SIGNAL 1
void Marble::HttpDownloadManager::downloadComplete(const QByteArray & _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, 1, _a);
}

// SIGNAL 2
void Marble::HttpDownloadManager::jobAdded()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void Marble::HttpDownloadManager::jobRemoved()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void Marble::HttpDownloadManager::progressChanged(int _t1, int _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 4, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
