/****************************************************************************
** Meta object code from reading C++ file 'segment.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/transfer-plugins/multisegmentkio/segment.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'segment.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_Segment_t {
    QByteArrayData data[38];
    char stringdata0[413];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Segment_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Segment_t qt_meta_stringdata_Segment = {
    {
QT_MOC_LITERAL(0, 0, 7), // "Segment"
QT_MOC_LITERAL(1, 8, 4), // "data"
QT_MOC_LITERAL(2, 13, 0), // ""
QT_MOC_LITERAL(3, 14, 17), // "KIO::fileoffset_t"
QT_MOC_LITERAL(4, 32, 6), // "offset"
QT_MOC_LITERAL(5, 39, 5), // "bool&"
QT_MOC_LITERAL(6, 45, 6), // "worked"
QT_MOC_LITERAL(7, 52, 5), // "error"
QT_MOC_LITERAL(8, 58, 8), // "Segment*"
QT_MOC_LITERAL(9, 67, 7), // "segment"
QT_MOC_LITERAL(10, 75, 9), // "errorText"
QT_MOC_LITERAL(11, 85, 18), // "Transfer::LogLevel"
QT_MOC_LITERAL(12, 104, 8), // "logLevel"
QT_MOC_LITERAL(13, 113, 15), // "finishedSegment"
QT_MOC_LITERAL(14, 129, 10), // "segmentNum"
QT_MOC_LITERAL(15, 140, 18), // "connectionFinished"
QT_MOC_LITERAL(16, 159, 13), // "statusChanged"
QT_MOC_LITERAL(17, 173, 5), // "speed"
QT_MOC_LITERAL(18, 179, 17), // "connectionProblem"
QT_MOC_LITERAL(19, 197, 9), // "totalSize"
QT_MOC_LITERAL(20, 207, 15), // "KIO::filesize_t"
QT_MOC_LITERAL(21, 223, 4), // "size"
QT_MOC_LITERAL(22, 228, 14), // "QPair<int,int>"
QT_MOC_LITERAL(23, 243, 12), // "segmentRange"
QT_MOC_LITERAL(24, 256, 16), // "finishedDownload"
QT_MOC_LITERAL(25, 273, 9), // "canResume"
QT_MOC_LITERAL(26, 283, 10), // "urlChanged"
QT_MOC_LITERAL(27, 294, 6), // "newUrl"
QT_MOC_LITERAL(28, 301, 13), // "startTransfer"
QT_MOC_LITERAL(29, 315, 10), // "slotResult"
QT_MOC_LITERAL(30, 326, 5), // "KJob*"
QT_MOC_LITERAL(31, 332, 3), // "job"
QT_MOC_LITERAL(32, 336, 8), // "slotData"
QT_MOC_LITERAL(33, 345, 9), // "KIO::Job*"
QT_MOC_LITERAL(34, 355, 13), // "slotCanResume"
QT_MOC_LITERAL(35, 369, 13), // "slotTotalSize"
QT_MOC_LITERAL(36, 383, 13), // "slotWriteRest"
QT_MOC_LITERAL(37, 397, 15) // "slotRedirection"

    },
    "Segment\0data\0\0KIO::fileoffset_t\0offset\0"
    "bool&\0worked\0error\0Segment*\0segment\0"
    "errorText\0Transfer::LogLevel\0logLevel\0"
    "finishedSegment\0segmentNum\0"
    "connectionFinished\0statusChanged\0speed\0"
    "connectionProblem\0totalSize\0KIO::filesize_t\0"
    "size\0QPair<int,int>\0segmentRange\0"
    "finishedDownload\0canResume\0urlChanged\0"
    "newUrl\0startTransfer\0slotResult\0KJob*\0"
    "job\0slotData\0KIO::Job*\0slotCanResume\0"
    "slotTotalSize\0slotWriteRest\0slotRedirection"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Segment[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    3,  104,    2, 0x06 /* Public */,
       7,    3,  111,    2, 0x06 /* Public */,
      13,    3,  118,    2, 0x06 /* Public */,
      13,    2,  125,    2, 0x26 /* Public | MethodCloned */,
      16,    1,  130,    2, 0x06 /* Public */,
      17,    1,  133,    2, 0x06 /* Public */,
      18,    0,  136,    2, 0x06 /* Public */,
      19,    2,  137,    2, 0x06 /* Public */,
      24,    1,  142,    2, 0x06 /* Public */,
      25,    0,  145,    2, 0x06 /* Public */,
      26,    1,  146,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      28,    0,  149,    2, 0x0a /* Public */,
      29,    1,  150,    2, 0x0a /* Public */,
      32,    2,  153,    2, 0x08 /* Private */,
      34,    2,  158,    2, 0x08 /* Private */,
      35,    2,  163,    2, 0x08 /* Private */,
      36,    0,  168,    2, 0x08 /* Private */,
      37,    2,  169,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3, QMetaType::QByteArray, 0x80000000 | 5,    4,    1,    6,
    QMetaType::Void, 0x80000000 | 8, QMetaType::QString, 0x80000000 | 11,    9,   10,   12,
    QMetaType::Void, 0x80000000 | 8, QMetaType::Int, QMetaType::Bool,    9,   14,   15,
    QMetaType::Void, 0x80000000 | 8, QMetaType::Int,    9,   14,
    QMetaType::Void, 0x80000000 | 8,    2,
    QMetaType::Void, QMetaType::ULong,   17,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 20, 0x80000000 | 22,   21,   23,
    QMetaType::Void, 0x80000000 | 20,   21,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QUrl,   27,

 // slots: parameters
    QMetaType::Bool,
    QMetaType::Void, 0x80000000 | 30,   31,
    QMetaType::Void, 0x80000000 | 33, QMetaType::QByteArray,   31,    1,
    QMetaType::Void, 0x80000000 | 33, 0x80000000 | 20,   31,    2,
    QMetaType::Void, 0x80000000 | 30, QMetaType::ULongLong,   31,   21,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 33, QMetaType::QUrl,    2,    2,

       0        // eod
};

void Segment::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        Segment *_t = static_cast<Segment *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->data((*reinterpret_cast< KIO::fileoffset_t(*)>(_a[1])),(*reinterpret_cast< const QByteArray(*)>(_a[2])),(*reinterpret_cast< bool(*)>(_a[3]))); break;
        case 1: _t->error((*reinterpret_cast< Segment*(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< Transfer::LogLevel(*)>(_a[3]))); break;
        case 2: _t->finishedSegment((*reinterpret_cast< Segment*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< bool(*)>(_a[3]))); break;
        case 3: _t->finishedSegment((*reinterpret_cast< Segment*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 4: _t->statusChanged((*reinterpret_cast< Segment*(*)>(_a[1]))); break;
        case 5: _t->speed((*reinterpret_cast< ulong(*)>(_a[1]))); break;
        case 6: _t->connectionProblem(); break;
        case 7: _t->totalSize((*reinterpret_cast< KIO::filesize_t(*)>(_a[1])),(*reinterpret_cast< QPair<int,int>(*)>(_a[2]))); break;
        case 8: _t->finishedDownload((*reinterpret_cast< KIO::filesize_t(*)>(_a[1]))); break;
        case 9: _t->canResume(); break;
        case 10: _t->urlChanged((*reinterpret_cast< const QUrl(*)>(_a[1]))); break;
        case 11: { bool _r = _t->startTransfer();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 12: _t->slotResult((*reinterpret_cast< KJob*(*)>(_a[1]))); break;
        case 13: _t->slotData((*reinterpret_cast< KIO::Job*(*)>(_a[1])),(*reinterpret_cast< const QByteArray(*)>(_a[2]))); break;
        case 14: _t->slotCanResume((*reinterpret_cast< KIO::Job*(*)>(_a[1])),(*reinterpret_cast< KIO::filesize_t(*)>(_a[2]))); break;
        case 15: _t->slotTotalSize((*reinterpret_cast< KJob*(*)>(_a[1])),(*reinterpret_cast< qulonglong(*)>(_a[2]))); break;
        case 16: _t->slotWriteRest(); break;
        case 17: _t->slotRedirection((*reinterpret_cast< KIO::Job*(*)>(_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 1:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Segment* >(); break;
            }
            break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Segment* >(); break;
            }
            break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Segment* >(); break;
            }
            break;
        case 4:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Segment* >(); 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< KJob* >(); 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< KIO::Job* >(); 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< KIO::Job* >(); break;
            }
            break;
        case 15:
            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 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;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (Segment::*_t)(KIO::fileoffset_t , const QByteArray & , bool & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Segment::data)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (Segment::*_t)(Segment * , const QString & , Transfer::LogLevel );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Segment::error)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (Segment::*_t)(Segment * , int , bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Segment::finishedSegment)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (Segment::*_t)(Segment * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Segment::statusChanged)) {
                *result = 4;
                return;
            }
        }
        {
            typedef void (Segment::*_t)(ulong );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Segment::speed)) {
                *result = 5;
                return;
            }
        }
        {
            typedef void (Segment::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Segment::connectionProblem)) {
                *result = 6;
                return;
            }
        }
        {
            typedef void (Segment::*_t)(KIO::filesize_t , QPair<int,int> );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Segment::totalSize)) {
                *result = 7;
                return;
            }
        }
        {
            typedef void (Segment::*_t)(KIO::filesize_t );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Segment::finishedDownload)) {
                *result = 8;
                return;
            }
        }
        {
            typedef void (Segment::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Segment::canResume)) {
                *result = 9;
                return;
            }
        }
        {
            typedef void (Segment::*_t)(const QUrl & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Segment::urlChanged)) {
                *result = 10;
                return;
            }
        }
    }
}

const QMetaObject Segment::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_Segment.data,
      qt_meta_data_Segment,  qt_static_metacall, nullptr, nullptr}
};


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

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

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

// SIGNAL 0
void Segment::data(KIO::fileoffset_t _t1, const QByteArray & _t2, bool & _t3)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void Segment::error(Segment * _t1, const QString & _t2, Transfer::LogLevel _t3)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void Segment::finishedSegment(Segment * _t1, int _t2, bool _t3)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 4
void Segment::statusChanged(Segment * _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 4, _a);
}

// SIGNAL 5
void Segment::speed(ulong _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 5, _a);
}

// SIGNAL 6
void Segment::connectionProblem()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}

// SIGNAL 7
void Segment::totalSize(KIO::filesize_t _t1, QPair<int,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, 7, _a);
}

// SIGNAL 8
void Segment::finishedDownload(KIO::filesize_t _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 8, _a);
}

// SIGNAL 9
void Segment::canResume()
{
    QMetaObject::activate(this, &staticMetaObject, 9, nullptr);
}

// SIGNAL 10
void Segment::urlChanged(const QUrl & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 10, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
