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

#include "../src/lib/downloads/downloaditem.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'downloaditem.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.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
struct qt_meta_stringdata_DownloadItem_t {
    QByteArrayData data[25];
    char stringdata0[284];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_DownloadItem_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_DownloadItem_t qt_meta_stringdata_DownloadItem = {
    {
QT_MOC_LITERAL(0, 0, 12), // "DownloadItem"
QT_MOC_LITERAL(1, 13, 10), // "deleteItem"
QT_MOC_LITERAL(2, 24, 0), // ""
QT_MOC_LITERAL(3, 25, 13), // "DownloadItem*"
QT_MOC_LITERAL(4, 39, 16), // "downloadFinished"
QT_MOC_LITERAL(5, 56, 7), // "success"
QT_MOC_LITERAL(6, 64, 13), // "parentResized"
QT_MOC_LITERAL(7, 78, 4), // "size"
QT_MOC_LITERAL(8, 83, 8), // "finished"
QT_MOC_LITERAL(9, 92, 15), // "metaDataChanged"
QT_MOC_LITERAL(10, 108, 16), // "downloadProgress"
QT_MOC_LITERAL(11, 125, 8), // "received"
QT_MOC_LITERAL(12, 134, 5), // "total"
QT_MOC_LITERAL(13, 140, 4), // "stop"
QT_MOC_LITERAL(14, 145, 16), // "askForDeleteFile"
QT_MOC_LITERAL(15, 162, 8), // "openFile"
QT_MOC_LITERAL(16, 171, 10), // "openFolder"
QT_MOC_LITERAL(17, 182, 9), // "readyRead"
QT_MOC_LITERAL(18, 192, 5), // "error"
QT_MOC_LITERAL(19, 198, 14), // "updateDownload"
QT_MOC_LITERAL(20, 213, 26), // "customContextMenuRequested"
QT_MOC_LITERAL(21, 240, 3), // "pos"
QT_MOC_LITERAL(22, 244, 5), // "clear"
QT_MOC_LITERAL(23, 250, 16), // "goToDownloadPage"
QT_MOC_LITERAL(24, 267, 16) // "copyDownloadLink"

    },
    "DownloadItem\0deleteItem\0\0DownloadItem*\0"
    "downloadFinished\0success\0parentResized\0"
    "size\0finished\0metaDataChanged\0"
    "downloadProgress\0received\0total\0stop\0"
    "askForDeleteFile\0openFile\0openFolder\0"
    "readyRead\0error\0updateDownload\0"
    "customContextMenuRequested\0pos\0clear\0"
    "goToDownloadPage\0copyDownloadLink"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_DownloadItem[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   99,    2, 0x06 /* Public */,
       4,    1,  102,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       6,    1,  105,    2, 0x08 /* Private */,
       8,    0,  108,    2, 0x08 /* Private */,
       9,    0,  109,    2, 0x08 /* Private */,
      10,    2,  110,    2, 0x08 /* Private */,
      13,    1,  115,    2, 0x08 /* Private */,
      13,    0,  118,    2, 0x28 /* Private | MethodCloned */,
      15,    0,  119,    2, 0x08 /* Private */,
      16,    0,  120,    2, 0x08 /* Private */,
      17,    0,  121,    2, 0x08 /* Private */,
      18,    0,  122,    2, 0x08 /* Private */,
      19,    0,  123,    2, 0x08 /* Private */,
      20,    1,  124,    2, 0x08 /* Private */,
      22,    0,  127,    2, 0x08 /* Private */,
      23,    0,  128,    2, 0x08 /* Private */,
      24,    0,  129,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    2,
    QMetaType::Void, QMetaType::Bool,    5,

 // slots: parameters
    QMetaType::Void, QMetaType::QSize,    7,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::LongLong, QMetaType::LongLong,   11,   12,
    QMetaType::Void, QMetaType::Bool,   14,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QPoint,   21,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

void DownloadItem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        DownloadItem *_t = static_cast<DownloadItem *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->deleteItem((*reinterpret_cast< DownloadItem*(*)>(_a[1]))); break;
        case 1: _t->downloadFinished((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 2: _t->parentResized((*reinterpret_cast< const QSize(*)>(_a[1]))); break;
        case 3: _t->finished(); break;
        case 4: _t->metaDataChanged(); break;
        case 5: _t->downloadProgress((*reinterpret_cast< qint64(*)>(_a[1])),(*reinterpret_cast< qint64(*)>(_a[2]))); break;
        case 6: _t->stop((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 7: _t->stop(); break;
        case 8: _t->openFile(); break;
        case 9: _t->openFolder(); break;
        case 10: _t->readyRead(); break;
        case 11: _t->error(); break;
        case 12: _t->updateDownload(); break;
        case 13: _t->customContextMenuRequested((*reinterpret_cast< const QPoint(*)>(_a[1]))); break;
        case 14: _t->clear(); break;
        case 15: _t->goToDownloadPage(); break;
        case 16: _t->copyDownloadLink(); 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< DownloadItem* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (DownloadItem::*_t)(DownloadItem * );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DownloadItem::deleteItem)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (DownloadItem::*_t)(bool );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DownloadItem::downloadFinished)) {
                *result = 1;
                return;
            }
        }
    }
}

const QMetaObject DownloadItem::staticMetaObject = {
    { &QWidget::staticMetaObject, qt_meta_stringdata_DownloadItem.data,
      qt_meta_data_DownloadItem,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *DownloadItem::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_DownloadItem.stringdata0))
        return static_cast<void*>(const_cast< DownloadItem*>(this));
    return QWidget::qt_metacast(_clname);
}

int DownloadItem::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 17)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 17;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 17)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 17;
    }
    return _id;
}

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

// SIGNAL 1
void DownloadItem::downloadFinished(bool _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}
QT_END_MOC_NAMESPACE
