/****************************************************************************
** Meta object code from reading C++ file 'ftpschemehandler.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/network/schemehandlers/ftpschemehandler.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'ftpschemehandler.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_FtpSchemeReply_t {
    QByteArrayData data[15];
    char stringdata0[180];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_FtpSchemeReply_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_FtpSchemeReply_t qt_meta_stringdata_FtpSchemeReply = {
    {
QT_MOC_LITERAL(0, 0, 14), // "FtpSchemeReply"
QT_MOC_LITERAL(1, 15, 25), // "ftpAuthenticationRequierd"
QT_MOC_LITERAL(2, 41, 0), // ""
QT_MOC_LITERAL(3, 42, 15), // "QAuthenticator*"
QT_MOC_LITERAL(4, 58, 15), // "downloadRequest"
QT_MOC_LITERAL(5, 74, 15), // "QNetworkRequest"
QT_MOC_LITERAL(6, 90, 14), // "processCommand"
QT_MOC_LITERAL(7, 105, 2), // "id"
QT_MOC_LITERAL(8, 108, 3), // "err"
QT_MOC_LITERAL(9, 112, 15), // "processListInfo"
QT_MOC_LITERAL(10, 128, 8), // "QUrlInfo"
QT_MOC_LITERAL(11, 137, 7), // "urlInfo"
QT_MOC_LITERAL(12, 145, 11), // "processData"
QT_MOC_LITERAL(13, 157, 13), // "loadDirectory"
QT_MOC_LITERAL(14, 171, 8) // "loadPage"

    },
    "FtpSchemeReply\0ftpAuthenticationRequierd\0"
    "\0QAuthenticator*\0downloadRequest\0"
    "QNetworkRequest\0processCommand\0id\0err\0"
    "processListInfo\0QUrlInfo\0urlInfo\0"
    "processData\0loadDirectory\0loadPage"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_FtpSchemeReply[] = {

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

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

 // slots: name, argc, parameters, tag, flags
       6,    2,   57,    2, 0x08 /* Private */,
       9,    1,   62,    2, 0x08 /* Private */,
      12,    0,   65,    2, 0x08 /* Private */,
      13,    0,   66,    2, 0x08 /* Private */,
      14,    0,   67,    2, 0x08 /* Private */,

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

 // slots: parameters
    QMetaType::Void, QMetaType::Int, QMetaType::Bool,    7,    8,
    QMetaType::Void, 0x80000000 | 10,   11,
    QMetaType::Void,
    QMetaType::QString,
    QMetaType::Void,

       0        // eod
};

void FtpSchemeReply::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        FtpSchemeReply *_t = static_cast<FtpSchemeReply *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->ftpAuthenticationRequierd((*reinterpret_cast< const QUrl(*)>(_a[1])),(*reinterpret_cast< QAuthenticator*(*)>(_a[2]))); break;
        case 1: _t->downloadRequest((*reinterpret_cast< const QNetworkRequest(*)>(_a[1]))); break;
        case 2: _t->processCommand((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 3: _t->processListInfo((*reinterpret_cast< QUrlInfo(*)>(_a[1]))); break;
        case 4: _t->processData(); break;
        case 5: { QString _r = _t->loadDirectory();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; }  break;
        case 6: _t->loadPage(); 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< QNetworkRequest >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (FtpSchemeReply::*_t)(const QUrl & , QAuthenticator * );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&FtpSchemeReply::ftpAuthenticationRequierd)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (FtpSchemeReply::*_t)(const QNetworkRequest & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&FtpSchemeReply::downloadRequest)) {
                *result = 1;
                return;
            }
        }
    }
}

const QMetaObject FtpSchemeReply::staticMetaObject = {
    { &QNetworkReply::staticMetaObject, qt_meta_stringdata_FtpSchemeReply.data,
      qt_meta_data_FtpSchemeReply,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

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

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

// SIGNAL 0
void FtpSchemeReply::ftpAuthenticationRequierd(const QUrl & _t1, QAuthenticator * _t2)
{
    void *_a[] = { Q_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 FtpSchemeReply::downloadRequest(const QNetworkRequest & _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}
struct qt_meta_stringdata_FtpDownloader_t {
    QByteArrayData data[11];
    char stringdata0[120];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_FtpDownloader_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_FtpDownloader_t qt_meta_stringdata_FtpDownloader = {
    {
QT_MOC_LITERAL(0, 0, 13), // "FtpDownloader"
QT_MOC_LITERAL(1, 14, 25), // "ftpAuthenticationRequierd"
QT_MOC_LITERAL(2, 40, 0), // ""
QT_MOC_LITERAL(3, 41, 15), // "QAuthenticator*"
QT_MOC_LITERAL(4, 57, 8), // "finished"
QT_MOC_LITERAL(5, 66, 12), // "errorOccured"
QT_MOC_LITERAL(6, 79, 11), // "QFtp::Error"
QT_MOC_LITERAL(7, 91, 14), // "processCommand"
QT_MOC_LITERAL(8, 106, 2), // "id"
QT_MOC_LITERAL(9, 109, 3), // "err"
QT_MOC_LITERAL(10, 113, 6) // "onDone"

    },
    "FtpDownloader\0ftpAuthenticationRequierd\0"
    "\0QAuthenticator*\0finished\0errorOccured\0"
    "QFtp::Error\0processCommand\0id\0err\0"
    "onDone"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_FtpDownloader[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    2,   39,    2, 0x06 /* Public */,
       4,    0,   44,    2, 0x06 /* Public */,
       5,    1,   45,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       7,    2,   48,    2, 0x08 /* Private */,
      10,    1,   53,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, QMetaType::QUrl, 0x80000000 | 3,    2,    2,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 6,    2,

 // slots: parameters
    QMetaType::Void, QMetaType::Int, QMetaType::Bool,    8,    9,
    QMetaType::Void, QMetaType::Bool,    9,

       0        // eod
};

void FtpDownloader::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        FtpDownloader *_t = static_cast<FtpDownloader *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->ftpAuthenticationRequierd((*reinterpret_cast< const QUrl(*)>(_a[1])),(*reinterpret_cast< QAuthenticator*(*)>(_a[2]))); break;
        case 1: _t->finished(); break;
        case 2: _t->errorOccured((*reinterpret_cast< QFtp::Error(*)>(_a[1]))); break;
        case 3: _t->processCommand((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 4: _t->onDone((*reinterpret_cast< bool(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (FtpDownloader::*_t)(const QUrl & , QAuthenticator * );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&FtpDownloader::ftpAuthenticationRequierd)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (FtpDownloader::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&FtpDownloader::finished)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (FtpDownloader::*_t)(QFtp::Error );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&FtpDownloader::errorOccured)) {
                *result = 2;
                return;
            }
        }
    }
}

const QMetaObject FtpDownloader::staticMetaObject = {
    { &QFtp::staticMetaObject, qt_meta_stringdata_FtpDownloader.data,
      qt_meta_data_FtpDownloader,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

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

int FtpDownloader::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QFtp::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 5)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 5;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 5)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 5;
    }
    return _id;
}

// SIGNAL 0
void FtpDownloader::ftpAuthenticationRequierd(const QUrl & _t1, QAuthenticator * _t2)
{
    void *_a[] = { Q_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 FtpDownloader::finished()
{
    QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
}

// SIGNAL 2
void FtpDownloader::errorOccured(QFtp::Error _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}
QT_END_MOC_NAMESPACE
