/****************************************************************************
** Meta object code from reading C++ file 'dbustransferwrapper.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/kget-17.12.3/dbus/dbustransferwrapper.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'dbustransferwrapper.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_DBusTransferWrapper_t {
    QByteArrayData data[43];
    char stringdata0[522];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_DBusTransferWrapper_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_DBusTransferWrapper_t qt_meta_stringdata_DBusTransferWrapper = {
    {
QT_MOC_LITERAL(0, 0, 19), // "DBusTransferWrapper"
QT_MOC_LITERAL(1, 20, 20), // "transferChangedEvent"
QT_MOC_LITERAL(2, 41, 0), // ""
QT_MOC_LITERAL(3, 42, 14), // "transferChange"
QT_MOC_LITERAL(4, 57, 19), // "capabilitiesChanged"
QT_MOC_LITERAL(5, 77, 12), // "capabilities"
QT_MOC_LITERAL(6, 90, 5), // "start"
QT_MOC_LITERAL(7, 96, 4), // "stop"
QT_MOC_LITERAL(8, 101, 6), // "status"
QT_MOC_LITERAL(9, 108, 11), // "elapsedTime"
QT_MOC_LITERAL(10, 120, 13), // "remainingTime"
QT_MOC_LITERAL(11, 134, 9), // "groupName"
QT_MOC_LITERAL(12, 144, 6), // "source"
QT_MOC_LITERAL(13, 151, 4), // "dest"
QT_MOC_LITERAL(14, 156, 12), // "setDirectory"
QT_MOC_LITERAL(15, 169, 9), // "directory"
QT_MOC_LITERAL(16, 179, 9), // "totalSize"
QT_MOC_LITERAL(17, 189, 14), // "downloadedSize"
QT_MOC_LITERAL(18, 204, 12), // "uploadedSize"
QT_MOC_LITERAL(19, 217, 7), // "percent"
QT_MOC_LITERAL(20, 225, 13), // "downloadSpeed"
QT_MOC_LITERAL(21, 239, 11), // "uploadSpeed"
QT_MOC_LITERAL(22, 251, 14), // "setUploadLimit"
QT_MOC_LITERAL(23, 266, 7), // "ulLimit"
QT_MOC_LITERAL(24, 274, 5), // "limit"
QT_MOC_LITERAL(25, 280, 16), // "setDownloadLimit"
QT_MOC_LITERAL(26, 297, 7), // "dlLimit"
QT_MOC_LITERAL(27, 305, 11), // "uploadLimit"
QT_MOC_LITERAL(28, 317, 13), // "downloadLimit"
QT_MOC_LITERAL(29, 331, 20), // "setMaximumShareRatio"
QT_MOC_LITERAL(30, 352, 5), // "ratio"
QT_MOC_LITERAL(31, 358, 17), // "maximumShareRatio"
QT_MOC_LITERAL(32, 376, 10), // "statusText"
QT_MOC_LITERAL(33, 387, 12), // "statusPixmap"
QT_MOC_LITERAL(34, 400, 12), // "QDBusVariant"
QT_MOC_LITERAL(35, 413, 8), // "verifier"
QT_MOC_LITERAL(36, 422, 4), // "file"
QT_MOC_LITERAL(37, 427, 6), // "repair"
QT_MOC_LITERAL(38, 434, 19), // "slotTransferChanged"
QT_MOC_LITERAL(39, 454, 16), // "TransferHandler*"
QT_MOC_LITERAL(40, 471, 8), // "transfer"
QT_MOC_LITERAL(41, 480, 29), // "TransferHandler::ChangesFlags"
QT_MOC_LITERAL(42, 510, 11) // "changeflags"

    },
    "DBusTransferWrapper\0transferChangedEvent\0"
    "\0transferChange\0capabilitiesChanged\0"
    "capabilities\0start\0stop\0status\0"
    "elapsedTime\0remainingTime\0groupName\0"
    "source\0dest\0setDirectory\0directory\0"
    "totalSize\0downloadedSize\0uploadedSize\0"
    "percent\0downloadSpeed\0uploadSpeed\0"
    "setUploadLimit\0ulLimit\0limit\0"
    "setDownloadLimit\0dlLimit\0uploadLimit\0"
    "downloadLimit\0setMaximumShareRatio\0"
    "ratio\0maximumShareRatio\0statusText\0"
    "statusPixmap\0QDBusVariant\0verifier\0"
    "file\0repair\0slotTransferChanged\0"
    "TransferHandler*\0transfer\0"
    "TransferHandler::ChangesFlags\0changeflags"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_DBusTransferWrapper[] = {

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

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

 // slots: name, argc, parameters, tag, flags
       5,    0,  163,    2, 0x0a /* Public */,
       6,    0,  164,    2, 0x0a /* Public */,
       7,    0,  165,    2, 0x0a /* Public */,
       8,    0,  166,    2, 0x0a /* Public */,
       9,    0,  167,    2, 0x0a /* Public */,
      10,    0,  168,    2, 0x0a /* Public */,
      11,    0,  169,    2, 0x0a /* Public */,
      12,    0,  170,    2, 0x0a /* Public */,
      13,    0,  171,    2, 0x0a /* Public */,
      14,    1,  172,    2, 0x0a /* Public */,
      16,    0,  175,    2, 0x0a /* Public */,
      17,    0,  176,    2, 0x0a /* Public */,
      18,    0,  177,    2, 0x0a /* Public */,
      19,    0,  178,    2, 0x0a /* Public */,
      20,    0,  179,    2, 0x0a /* Public */,
      21,    0,  180,    2, 0x0a /* Public */,
      22,    2,  181,    2, 0x0a /* Public */,
      25,    2,  186,    2, 0x0a /* Public */,
      27,    1,  191,    2, 0x0a /* Public */,
      28,    1,  194,    2, 0x0a /* Public */,
      29,    1,  197,    2, 0x0a /* Public */,
      31,    0,  200,    2, 0x0a /* Public */,
      32,    0,  201,    2, 0x0a /* Public */,
      33,    0,  202,    2, 0x0a /* Public */,
      35,    1,  203,    2, 0x0a /* Public */,
      37,    1,  206,    2, 0x0a /* Public */,
      38,    2,  209,    2, 0x08 /* Private */,

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

 // slots: parameters
    QMetaType::Int,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Int,
    QMetaType::Int,
    QMetaType::Int,
    QMetaType::QString,
    QMetaType::QString,
    QMetaType::QString,
    QMetaType::Bool, QMetaType::QString,   15,
    QMetaType::ULongLong,
    QMetaType::ULongLong,
    QMetaType::ULongLong,
    QMetaType::Int,
    QMetaType::Int,
    QMetaType::Int,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,   23,   24,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,   26,   24,
    QMetaType::Int, QMetaType::Int,   24,
    QMetaType::Int, QMetaType::Int,   24,
    QMetaType::Void, QMetaType::Double,   30,
    QMetaType::Double,
    QMetaType::QString,
    0x80000000 | 34,
    QMetaType::QString, QMetaType::QString,   36,
    QMetaType::Bool, QMetaType::QString,   36,
    QMetaType::Void, 0x80000000 | 39, 0x80000000 | 41,   40,   42,

       0        // eod
};

void DBusTransferWrapper::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        DBusTransferWrapper *_t = static_cast<DBusTransferWrapper *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->transferChangedEvent((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 1: _t->capabilitiesChanged(); break;
        case 2: { int _r = _t->capabilities();
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 3: _t->start(); break;
        case 4: _t->stop(); break;
        case 5: { int _r = _t->status();
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 6: { int _r = _t->elapsedTime();
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 7: { int _r = _t->remainingTime();
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 8: { QString _r = _t->groupName();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); }  break;
        case 9: { QString _r = _t->source();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); }  break;
        case 10: { QString _r = _t->dest();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); }  break;
        case 11: { bool _r = _t->setDirectory((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 12: { qulonglong _r = _t->totalSize();
            if (_a[0]) *reinterpret_cast< qulonglong*>(_a[0]) = std::move(_r); }  break;
        case 13: { qulonglong _r = _t->downloadedSize();
            if (_a[0]) *reinterpret_cast< qulonglong*>(_a[0]) = std::move(_r); }  break;
        case 14: { qulonglong _r = _t->uploadedSize();
            if (_a[0]) *reinterpret_cast< qulonglong*>(_a[0]) = std::move(_r); }  break;
        case 15: { int _r = _t->percent();
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 16: { int _r = _t->downloadSpeed();
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 17: { int _r = _t->uploadSpeed();
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 18: _t->setUploadLimit((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 19: _t->setDownloadLimit((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 20: { int _r = _t->uploadLimit((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 21: { int _r = _t->downloadLimit((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 22: _t->setMaximumShareRatio((*reinterpret_cast< double(*)>(_a[1]))); break;
        case 23: { double _r = _t->maximumShareRatio();
            if (_a[0]) *reinterpret_cast< double*>(_a[0]) = std::move(_r); }  break;
        case 24: { QString _r = _t->statusText();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); }  break;
        case 25: { QDBusVariant _r = _t->statusPixmap();
            if (_a[0]) *reinterpret_cast< QDBusVariant*>(_a[0]) = std::move(_r); }  break;
        case 26: { QString _r = _t->verifier((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); }  break;
        case 27: { bool _r = _t->repair((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 28: _t->slotTransferChanged((*reinterpret_cast< TransferHandler*(*)>(_a[1])),(*reinterpret_cast< TransferHandler::ChangesFlags(*)>(_a[2]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 28:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< TransferHandler* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (DBusTransferWrapper::*_t)(int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DBusTransferWrapper::transferChangedEvent)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (DBusTransferWrapper::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DBusTransferWrapper::capabilitiesChanged)) {
                *result = 1;
                return;
            }
        }
    }
}

const QMetaObject DBusTransferWrapper::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_DBusTransferWrapper.data,
      qt_meta_data_DBusTransferWrapper,  qt_static_metacall, nullptr, nullptr}
};


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

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

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

// SIGNAL 0
void DBusTransferWrapper::transferChangedEvent(int _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void DBusTransferWrapper::capabilitiesChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
