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

#include "../../../../src/qtwebkit-201c7117463e43e9cbd02ff33c6f491d81b2e6c7/Source/WebKit2/UIProcess/API/qt/qwebdownloaditem_p.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qwebdownloaditem_p.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.3. 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_QWebDownloadItem_t {
    QByteArrayData data[25];
    char stringdata0[369];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_QWebDownloadItem_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_QWebDownloadItem_t qt_meta_stringdata_QWebDownloadItem = {
    {
QT_MOC_LITERAL(0, 0, 16), // "QWebDownloadItem"
QT_MOC_LITERAL(1, 17, 22), // "destinationFileCreated"
QT_MOC_LITERAL(2, 40, 0), // ""
QT_MOC_LITERAL(3, 41, 15), // "destinationPath"
QT_MOC_LITERAL(4, 57, 25), // "totalBytesReceivedChanged"
QT_MOC_LITERAL(5, 83, 13), // "bytesReceived"
QT_MOC_LITERAL(6, 97, 9), // "succeeded"
QT_MOC_LITERAL(7, 107, 6), // "failed"
QT_MOC_LITERAL(8, 114, 31), // "QWebDownloadItem::DownloadError"
QT_MOC_LITERAL(9, 146, 5), // "error"
QT_MOC_LITERAL(10, 152, 3), // "url"
QT_MOC_LITERAL(11, 156, 11), // "description"
QT_MOC_LITERAL(12, 168, 5), // "start"
QT_MOC_LITERAL(13, 174, 6), // "cancel"
QT_MOC_LITERAL(14, 181, 21), // "expectedContentLength"
QT_MOC_LITERAL(15, 203, 17), // "suggestedFilename"
QT_MOC_LITERAL(16, 221, 18), // "totalBytesReceived"
QT_MOC_LITERAL(17, 240, 13), // "DownloadError"
QT_MOC_LITERAL(18, 254, 7), // "Aborted"
QT_MOC_LITERAL(19, 262, 17), // "CannotWriteToFile"
QT_MOC_LITERAL(20, 280, 14), // "CannotOpenFile"
QT_MOC_LITERAL(21, 295, 24), // "DestinationAlreadyExists"
QT_MOC_LITERAL(22, 320, 9), // "Cancelled"
QT_MOC_LITERAL(23, 330, 23), // "CannotDetermineFilename"
QT_MOC_LITERAL(24, 354, 14) // "NetworkFailure"

    },
    "QWebDownloadItem\0destinationFileCreated\0"
    "\0destinationPath\0totalBytesReceivedChanged\0"
    "bytesReceived\0succeeded\0failed\0"
    "QWebDownloadItem::DownloadError\0error\0"
    "url\0description\0start\0cancel\0"
    "expectedContentLength\0suggestedFilename\0"
    "totalBytesReceived\0DownloadError\0"
    "Aborted\0CannotWriteToFile\0CannotOpenFile\0"
    "DestinationAlreadyExists\0Cancelled\0"
    "CannotDetermineFilename\0NetworkFailure"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_QWebDownloadItem[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
       6,   14, // methods
       5,   60, // properties
       1,   80, // enums/sets
       0,    0, // constructors
       0,       // flags
       4,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    1,   44,    2, 0x06 /* Public */,
       4,    1,   47,    2, 0x06 /* Public */,
       6,    0,   50,    2, 0x06 /* Public */,
       7,    3,   51,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      12,    0,   58,    2, 0x0a /* Public */,
      13,    0,   59,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, QMetaType::QString,    3,
    QMetaType::Void, QMetaType::ULongLong,    5,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 8, QMetaType::QUrl, QMetaType::QString,    9,   10,   11,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,

 // properties: name, type, flags
      14, QMetaType::ULongLong, 0x00095c01,
       3, QMetaType::QString, 0x00095103,
      15, QMetaType::QString, 0x00095c01,
      16, QMetaType::ULongLong, 0x00495801,
      10, QMetaType::QUrl, 0x00095c01,

 // properties: notify_signal_id
       0,
       0,
       0,
       1,
       0,

 // enums: name, flags, count, data
      17, 0x0,    7,   84,

 // enum data: key, value
      18, uint(QWebDownloadItem::Aborted),
      19, uint(QWebDownloadItem::CannotWriteToFile),
      20, uint(QWebDownloadItem::CannotOpenFile),
      21, uint(QWebDownloadItem::DestinationAlreadyExists),
      22, uint(QWebDownloadItem::Cancelled),
      23, uint(QWebDownloadItem::CannotDetermineFilename),
      24, uint(QWebDownloadItem::NetworkFailure),

       0        // eod
};

void QWebDownloadItem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        QWebDownloadItem *_t = static_cast<QWebDownloadItem *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->destinationFileCreated((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 1: _t->totalBytesReceivedChanged((*reinterpret_cast< quint64(*)>(_a[1]))); break;
        case 2: _t->succeeded(); break;
        case 3: _t->failed((*reinterpret_cast< QWebDownloadItem::DownloadError(*)>(_a[1])),(*reinterpret_cast< const QUrl(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3]))); break;
        case 4: _t->start(); break;
        case 5: _t->cancel(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (QWebDownloadItem::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QWebDownloadItem::destinationFileCreated)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (QWebDownloadItem::*_t)(quint64 );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QWebDownloadItem::totalBytesReceivedChanged)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (QWebDownloadItem::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QWebDownloadItem::succeeded)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (QWebDownloadItem::*_t)(QWebDownloadItem::DownloadError , const QUrl & , const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QWebDownloadItem::failed)) {
                *result = 3;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        QWebDownloadItem *_t = static_cast<QWebDownloadItem *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< quint64*>(_v) = _t->expectedContentLength(); break;
        case 1: *reinterpret_cast< QString*>(_v) = _t->destinationPath(); break;
        case 2: *reinterpret_cast< QString*>(_v) = _t->suggestedFilename(); break;
        case 3: *reinterpret_cast< quint64*>(_v) = _t->totalBytesReceived(); break;
        case 4: *reinterpret_cast< QUrl*>(_v) = _t->url(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        QWebDownloadItem *_t = static_cast<QWebDownloadItem *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 1: _t->setDestinationPath(*reinterpret_cast< QString*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject QWebDownloadItem::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_QWebDownloadItem.data,
      qt_meta_data_QWebDownloadItem,  qt_static_metacall, nullptr, nullptr}
};


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

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

int QWebDownloadItem::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 < 6)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 6;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 6)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 6;
    }
#ifndef QT_NO_PROPERTIES
   else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 5;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

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

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

// SIGNAL 2
void QWebDownloadItem::succeeded()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void QWebDownloadItem::failed(QWebDownloadItem::DownloadError _t1, const QUrl & _t2, const QString & _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, 3, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
