/****************************************************************************
** Meta object code from reading C++ file 'datasourcefactory.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/core/datasourcefactory.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#include <QtCore/QList>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'datasourcefactory.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_DataSourceFactory_t {
    QByteArrayData data[60];
    char stringdata0[751];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_DataSourceFactory_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_DataSourceFactory_t qt_meta_stringdata_DataSourceFactory = {
    {
QT_MOC_LITERAL(0, 0, 17), // "DataSourceFactory"
QT_MOC_LITERAL(1, 18, 19), // "capabilitiesChanged"
QT_MOC_LITERAL(2, 38, 0), // ""
QT_MOC_LITERAL(3, 39, 23), // "dataSourceFactoryChange"
QT_MOC_LITERAL(4, 63, 22), // "Transfer::ChangesFlags"
QT_MOC_LITERAL(5, 86, 6), // "change"
QT_MOC_LITERAL(6, 93, 3), // "log"
QT_MOC_LITERAL(7, 97, 7), // "message"
QT_MOC_LITERAL(8, 105, 18), // "Transfer::LogLevel"
QT_MOC_LITERAL(9, 124, 8), // "logLevel"
QT_MOC_LITERAL(10, 133, 4), // "save"
QT_MOC_LITERAL(11, 138, 11), // "QDomElement"
QT_MOC_LITERAL(12, 150, 7), // "element"
QT_MOC_LITERAL(13, 158, 4), // "load"
QT_MOC_LITERAL(14, 163, 18), // "const QDomElement*"
QT_MOC_LITERAL(15, 182, 1), // "e"
QT_MOC_LITERAL(16, 184, 22), // "slotUpdateCapabilities"
QT_MOC_LITERAL(17, 207, 15), // "slotRemovedFile"
QT_MOC_LITERAL(18, 223, 12), // "findFileSize"
QT_MOC_LITERAL(19, 236, 17), // "slotFoundFileSize"
QT_MOC_LITERAL(20, 254, 19), // "TransferDataSource*"
QT_MOC_LITERAL(21, 274, 6), // "source"
QT_MOC_LITERAL(22, 281, 15), // "KIO::filesize_t"
QT_MOC_LITERAL(23, 297, 8), // "fileSize"
QT_MOC_LITERAL(24, 306, 14), // "QPair<int,int>"
QT_MOC_LITERAL(25, 321, 12), // "segmentRange"
QT_MOC_LITERAL(26, 334, 14), // "assignSegments"
QT_MOC_LITERAL(27, 349, 14), // "brokenSegments"
QT_MOC_LITERAL(28, 364, 15), // "finishedSegment"
QT_MOC_LITERAL(29, 380, 13), // "segmentNumber"
QT_MOC_LITERAL(30, 394, 18), // "connectionFinished"
QT_MOC_LITERAL(31, 413, 6), // "broken"
QT_MOC_LITERAL(32, 420, 25), // "TransferDataSource::Error"
QT_MOC_LITERAL(33, 446, 5), // "error"
QT_MOC_LITERAL(34, 452, 16), // "slotFreeSegments"
QT_MOC_LITERAL(35, 469, 13), // "slotWriteData"
QT_MOC_LITERAL(36, 483, 17), // "KIO::fileoffset_t"
QT_MOC_LITERAL(37, 501, 6), // "offset"
QT_MOC_LITERAL(38, 508, 4), // "data"
QT_MOC_LITERAL(39, 513, 5), // "bool&"
QT_MOC_LITERAL(40, 519, 6), // "worked"
QT_MOC_LITERAL(41, 526, 10), // "slotOffset"
QT_MOC_LITERAL(42, 537, 9), // "KIO::Job*"
QT_MOC_LITERAL(43, 547, 3), // "job"
QT_MOC_LITERAL(44, 551, 15), // "slotDataWritten"
QT_MOC_LITERAL(45, 567, 11), // "slotPercent"
QT_MOC_LITERAL(46, 579, 5), // "KJob*"
QT_MOC_LITERAL(47, 585, 7), // "percent"
QT_MOC_LITERAL(48, 593, 8), // "slotOpen"
QT_MOC_LITERAL(49, 602, 12), // "speedChanged"
QT_MOC_LITERAL(50, 615, 9), // "startMove"
QT_MOC_LITERAL(51, 625, 19), // "slotPutJobDestroyed"
QT_MOC_LITERAL(52, 645, 13), // "newDestResult"
QT_MOC_LITERAL(53, 659, 10), // "slotRepair"
QT_MOC_LITERAL(54, 670, 24), // "QList<KIO::fileoffset_t>"
QT_MOC_LITERAL(55, 695, 7), // "offsets"
QT_MOC_LITERAL(56, 703, 6), // "length"
QT_MOC_LITERAL(57, 710, 20), // "slotFinishedDownload"
QT_MOC_LITERAL(58, 731, 4), // "size"
QT_MOC_LITERAL(59, 736, 14) // "slotUrlChanged"

    },
    "DataSourceFactory\0capabilitiesChanged\0"
    "\0dataSourceFactoryChange\0"
    "Transfer::ChangesFlags\0change\0log\0"
    "message\0Transfer::LogLevel\0logLevel\0"
    "save\0QDomElement\0element\0load\0"
    "const QDomElement*\0e\0slotUpdateCapabilities\0"
    "slotRemovedFile\0findFileSize\0"
    "slotFoundFileSize\0TransferDataSource*\0"
    "source\0KIO::filesize_t\0fileSize\0"
    "QPair<int,int>\0segmentRange\0assignSegments\0"
    "brokenSegments\0finishedSegment\0"
    "segmentNumber\0connectionFinished\0"
    "broken\0TransferDataSource::Error\0error\0"
    "slotFreeSegments\0slotWriteData\0"
    "KIO::fileoffset_t\0offset\0data\0bool&\0"
    "worked\0slotOffset\0KIO::Job*\0job\0"
    "slotDataWritten\0slotPercent\0KJob*\0"
    "percent\0slotOpen\0speedChanged\0startMove\0"
    "slotPutJobDestroyed\0newDestResult\0"
    "slotRepair\0QList<KIO::fileoffset_t>\0"
    "offsets\0length\0slotFinishedDownload\0"
    "size\0slotUrlChanged"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_DataSourceFactory[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,  149,    2, 0x06 /* Public */,
       3,    1,  150,    2, 0x06 /* Public */,
       6,    2,  153,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      10,    1,  158,    2, 0x0a /* Public */,
      13,    1,  161,    2, 0x0a /* Public */,
      16,    0,  164,    2, 0x08 /* Private */,
      17,    0,  165,    2, 0x08 /* Private */,
      18,    0,  166,    2, 0x08 /* Private */,
      19,    3,  167,    2, 0x08 /* Private */,
      26,    1,  174,    2, 0x08 /* Private */,
      27,    2,  177,    2, 0x08 /* Private */,
      28,    3,  182,    2, 0x08 /* Private */,
      28,    2,  189,    2, 0x28 /* Private | MethodCloned */,
      31,    2,  194,    2, 0x08 /* Private */,
      34,    2,  199,    2, 0x08 /* Private */,
      35,    3,  204,    2, 0x08 /* Private */,
      41,    2,  211,    2, 0x08 /* Private */,
      44,    2,  216,    2, 0x08 /* Private */,
      45,    2,  221,    2, 0x08 /* Private */,
      48,    1,  226,    2, 0x08 /* Private */,
      49,    0,  229,    2, 0x08 /* Private */,
      50,    0,  230,    2, 0x08 /* Private */,
      51,    1,  231,    2, 0x08 /* Private */,
      52,    1,  234,    2, 0x08 /* Private */,
      53,    2,  237,    2, 0x08 /* Private */,
      57,    2,  242,    2, 0x08 /* Private */,
      59,    2,  247,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 4,    5,
    QMetaType::Void, QMetaType::QString, 0x80000000 | 8,    7,    9,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 11,   12,
    QMetaType::Void, 0x80000000 | 14,   15,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 20, 0x80000000 | 22, 0x80000000 | 24,   21,   23,   25,
    QMetaType::Void, 0x80000000 | 20,   21,
    QMetaType::Void, 0x80000000 | 20, 0x80000000 | 24,   21,   25,
    QMetaType::Void, 0x80000000 | 20, QMetaType::Int, QMetaType::Bool,   21,   29,   30,
    QMetaType::Void, 0x80000000 | 20, QMetaType::Int,   21,   29,
    QMetaType::Void, 0x80000000 | 20, 0x80000000 | 32,   21,   33,
    QMetaType::Void, 0x80000000 | 20, 0x80000000 | 24,   21,   25,
    QMetaType::Void, 0x80000000 | 36, QMetaType::QByteArray, 0x80000000 | 39,   37,   38,   40,
    QMetaType::Void, 0x80000000 | 42, 0x80000000 | 22,   43,   37,
    QMetaType::Void, 0x80000000 | 42, 0x80000000 | 22,   43,   37,
    QMetaType::Void, 0x80000000 | 46, QMetaType::ULong,   43,   47,
    QMetaType::Void, 0x80000000 | 42,   43,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QObjectStar,   43,
    QMetaType::Void, 0x80000000 | 46,   43,
    QMetaType::Void, 0x80000000 | 54, 0x80000000 | 22,   55,   56,
    QMetaType::Void, 0x80000000 | 20, 0x80000000 | 22,   21,   58,
    QMetaType::Void, QMetaType::QUrl, QMetaType::QUrl,    2,    2,

       0        // eod
};

void DataSourceFactory::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        DataSourceFactory *_t = static_cast<DataSourceFactory *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->capabilitiesChanged(); break;
        case 1: _t->dataSourceFactoryChange((*reinterpret_cast< Transfer::ChangesFlags(*)>(_a[1]))); break;
        case 2: _t->log((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< Transfer::LogLevel(*)>(_a[2]))); break;
        case 3: _t->save((*reinterpret_cast< const QDomElement(*)>(_a[1]))); break;
        case 4: _t->load((*reinterpret_cast< const QDomElement*(*)>(_a[1]))); break;
        case 5: _t->slotUpdateCapabilities(); break;
        case 6: _t->slotRemovedFile(); break;
        case 7: _t->findFileSize(); break;
        case 8: _t->slotFoundFileSize((*reinterpret_cast< TransferDataSource*(*)>(_a[1])),(*reinterpret_cast< KIO::filesize_t(*)>(_a[2])),(*reinterpret_cast< const QPair<int,int>(*)>(_a[3]))); break;
        case 9: _t->assignSegments((*reinterpret_cast< TransferDataSource*(*)>(_a[1]))); break;
        case 10: _t->brokenSegments((*reinterpret_cast< TransferDataSource*(*)>(_a[1])),(*reinterpret_cast< const QPair<int,int>(*)>(_a[2]))); break;
        case 11: _t->finishedSegment((*reinterpret_cast< TransferDataSource*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< bool(*)>(_a[3]))); break;
        case 12: _t->finishedSegment((*reinterpret_cast< TransferDataSource*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 13: _t->broken((*reinterpret_cast< TransferDataSource*(*)>(_a[1])),(*reinterpret_cast< TransferDataSource::Error(*)>(_a[2]))); break;
        case 14: _t->slotFreeSegments((*reinterpret_cast< TransferDataSource*(*)>(_a[1])),(*reinterpret_cast< QPair<int,int>(*)>(_a[2]))); break;
        case 15: _t->slotWriteData((*reinterpret_cast< KIO::fileoffset_t(*)>(_a[1])),(*reinterpret_cast< const QByteArray(*)>(_a[2])),(*reinterpret_cast< bool(*)>(_a[3]))); break;
        case 16: _t->slotOffset((*reinterpret_cast< KIO::Job*(*)>(_a[1])),(*reinterpret_cast< KIO::filesize_t(*)>(_a[2]))); break;
        case 17: _t->slotDataWritten((*reinterpret_cast< KIO::Job*(*)>(_a[1])),(*reinterpret_cast< KIO::filesize_t(*)>(_a[2]))); break;
        case 18: _t->slotPercent((*reinterpret_cast< KJob*(*)>(_a[1])),(*reinterpret_cast< ulong(*)>(_a[2]))); break;
        case 19: _t->slotOpen((*reinterpret_cast< KIO::Job*(*)>(_a[1]))); break;
        case 20: _t->speedChanged(); break;
        case 21: _t->startMove(); break;
        case 22: _t->slotPutJobDestroyed((*reinterpret_cast< QObject*(*)>(_a[1]))); break;
        case 23: _t->newDestResult((*reinterpret_cast< KJob*(*)>(_a[1]))); break;
        case 24: _t->slotRepair((*reinterpret_cast< const QList<KIO::fileoffset_t>(*)>(_a[1])),(*reinterpret_cast< KIO::filesize_t(*)>(_a[2]))); break;
        case 25: _t->slotFinishedDownload((*reinterpret_cast< TransferDataSource*(*)>(_a[1])),(*reinterpret_cast< KIO::filesize_t(*)>(_a[2]))); break;
        case 26: _t->slotUrlChanged((*reinterpret_cast< const QUrl(*)>(_a[1])),(*reinterpret_cast< const QUrl(*)>(_a[2]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 8:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< TransferDataSource* >(); break;
            }
            break;
        case 9:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< TransferDataSource* >(); break;
            }
            break;
        case 10:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< TransferDataSource* >(); break;
            }
            break;
        case 11:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< TransferDataSource* >(); break;
            }
            break;
        case 12:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< TransferDataSource* >(); break;
            }
            break;
        case 13:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< TransferDataSource* >(); break;
            }
            break;
        case 14:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< TransferDataSource* >(); break;
            }
            break;
        case 16:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< KIO::Job* >(); break;
            }
            break;
        case 17:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< KIO::Job* >(); break;
            }
            break;
        case 18:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< KJob* >(); break;
            }
            break;
        case 19:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< KIO::Job* >(); break;
            }
            break;
        case 23:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< KJob* >(); break;
            }
            break;
        case 25:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< TransferDataSource* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (DataSourceFactory::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DataSourceFactory::capabilitiesChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (DataSourceFactory::*_t)(Transfer::ChangesFlags );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DataSourceFactory::dataSourceFactoryChange)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (DataSourceFactory::*_t)(const QString & , Transfer::LogLevel );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DataSourceFactory::log)) {
                *result = 2;
                return;
            }
        }
    }
}

const QMetaObject DataSourceFactory::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_DataSourceFactory.data,
      qt_meta_data_DataSourceFactory,  qt_static_metacall, nullptr, nullptr}
};


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

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

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

// SIGNAL 0
void DataSourceFactory::capabilitiesChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void DataSourceFactory::dataSourceFactoryChange(Transfer::ChangesFlags _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void DataSourceFactory::log(const QString & _t1, Transfer::LogLevel _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
