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

#include "../../src/kparts-5.12.0/src/readonlypart.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'readonlypart.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.4.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_KParts__ReadOnlyPart_t {
    QByteArrayData data[17];
    char stringdata[179];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KParts__ReadOnlyPart_t, stringdata) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KParts__ReadOnlyPart_t qt_meta_stringdata_KParts__ReadOnlyPart = {
    {
QT_MOC_LITERAL(0, 0, 20), // "KParts::ReadOnlyPart"
QT_MOC_LITERAL(1, 21, 7), // "started"
QT_MOC_LITERAL(2, 29, 0), // ""
QT_MOC_LITERAL(3, 30, 9), // "KIO::Job*"
QT_MOC_LITERAL(4, 40, 9), // "completed"
QT_MOC_LITERAL(5, 50, 13), // "pendingAction"
QT_MOC_LITERAL(6, 64, 8), // "canceled"
QT_MOC_LITERAL(7, 73, 6), // "errMsg"
QT_MOC_LITERAL(8, 80, 10), // "urlChanged"
QT_MOC_LITERAL(9, 91, 3), // "url"
QT_MOC_LITERAL(10, 95, 7), // "openUrl"
QT_MOC_LITERAL(11, 103, 18), // "_k_slotJobFinished"
QT_MOC_LITERAL(12, 122, 5), // "KJob*"
QT_MOC_LITERAL(13, 128, 3), // "job"
QT_MOC_LITERAL(14, 132, 22), // "_k_slotStatJobFinished"
QT_MOC_LITERAL(15, 155, 18), // "_k_slotGotMimeType"
QT_MOC_LITERAL(16, 174, 4) // "mime"

    },
    "KParts::ReadOnlyPart\0started\0\0KIO::Job*\0"
    "completed\0pendingAction\0canceled\0"
    "errMsg\0urlChanged\0url\0openUrl\0"
    "_k_slotJobFinished\0KJob*\0job\0"
    "_k_slotStatJobFinished\0_k_slotGotMimeType\0"
    "mime"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KParts__ReadOnlyPart[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   59,    2, 0x06 /* Public */,
       4,    0,   62,    2, 0x06 /* Public */,
       4,    1,   63,    2, 0x06 /* Public */,
       6,    1,   66,    2, 0x06 /* Public */,
       8,    1,   69,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      10,    1,   72,    2, 0x0a /* Public */,
      11,    1,   75,    2, 0x08 /* Private */,
      14,    1,   78,    2, 0x08 /* Private */,
      15,    2,   81,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    2,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,    5,
    QMetaType::Void, QMetaType::QString,    7,
    QMetaType::Void, QMetaType::QUrl,    9,

 // slots: parameters
    QMetaType::Bool, QMetaType::QUrl,    9,
    QMetaType::Void, 0x80000000 | 12,   13,
    QMetaType::Void, 0x80000000 | 12,    2,
    QMetaType::Void, 0x80000000 | 3, QMetaType::QString,   13,   16,

 // properties: name, type, flags
       9, QMetaType::QUrl, 0x00095001,

       0        // eod
};

void KParts::ReadOnlyPart::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        ReadOnlyPart *_t = static_cast<ReadOnlyPart *>(_o);
        switch (_id) {
        case 0: _t->started((*reinterpret_cast< KIO::Job*(*)>(_a[1]))); break;
        case 1: _t->completed(); break;
        case 2: _t->completed((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 3: _t->canceled((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 4: _t->urlChanged((*reinterpret_cast< const QUrl(*)>(_a[1]))); break;
        case 5: { bool _r = _t->openUrl((*reinterpret_cast< const QUrl(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; }  break;
        case 6: _t->d_func()->_k_slotJobFinished((*reinterpret_cast< KJob*(*)>(_a[1]))); break;
        case 7: _t->d_func()->_k_slotStatJobFinished((*reinterpret_cast< KJob*(*)>(_a[1]))); break;
        case 8: _t->d_func()->_k_slotGotMimeType((*reinterpret_cast< KIO::Job*(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (ReadOnlyPart::*_t)(KIO::Job * );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ReadOnlyPart::started)) {
                *result = 0;
            }
        }
        {
            typedef void (ReadOnlyPart::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ReadOnlyPart::completed)) {
                *result = 1;
            }
        }
        {
            typedef void (ReadOnlyPart::*_t)(bool );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ReadOnlyPart::completed)) {
                *result = 2;
            }
        }
        {
            typedef void (ReadOnlyPart::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ReadOnlyPart::canceled)) {
                *result = 3;
            }
        }
        {
            typedef void (ReadOnlyPart::*_t)(const QUrl & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ReadOnlyPart::urlChanged)) {
                *result = 4;
            }
        }
    }
}

const QMetaObject KParts::ReadOnlyPart::staticMetaObject = {
    { &Part::staticMetaObject, qt_meta_stringdata_KParts__ReadOnlyPart.data,
      qt_meta_data_KParts__ReadOnlyPart,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *KParts::ReadOnlyPart::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_KParts__ReadOnlyPart.stringdata))
        return static_cast<void*>(const_cast< ReadOnlyPart*>(this));
    return Part::qt_metacast(_clname);
}

int KParts::ReadOnlyPart::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Part::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 9)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 9)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 9;
    }
#ifndef QT_NO_PROPERTIES
      else if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QUrl*>(_v) = url(); break;
        default: break;
        }
        _id -= 1;
    } else if (_c == QMetaObject::WriteProperty) {
        _id -= 1;
    } else if (_c == QMetaObject::ResetProperty) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 1;
    } else if (_c == QMetaObject::RegisterPropertyMetaType) {
        if (_id < 1)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 1;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void KParts::ReadOnlyPart::started(KIO::Job * _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void KParts::ReadOnlyPart::completed()
{
    QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
}

// SIGNAL 2
void KParts::ReadOnlyPart::completed(bool _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void KParts::ReadOnlyPart::canceled(const QString & _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}

// SIGNAL 4
void KParts::ReadOnlyPart::urlChanged(const QUrl & _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 4, _a);
}
QT_END_MOC_NAMESPACE
