/****************************************************************************
** Meta object code from reading C++ file 'readwritepart.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/readwritepart.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'readwritepart.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__ReadWritePart_t {
    QByteArrayData data[12];
    char stringdata[130];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KParts__ReadWritePart_t, stringdata) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KParts__ReadWritePart_t qt_meta_stringdata_KParts__ReadWritePart = {
    {
QT_MOC_LITERAL(0, 0, 21), // "KParts::ReadWritePart"
QT_MOC_LITERAL(1, 22, 13), // "sigQueryClose"
QT_MOC_LITERAL(2, 36, 0), // ""
QT_MOC_LITERAL(3, 37, 5), // "bool*"
QT_MOC_LITERAL(4, 43, 7), // "handled"
QT_MOC_LITERAL(5, 51, 12), // "abortClosing"
QT_MOC_LITERAL(6, 64, 11), // "setModified"
QT_MOC_LITERAL(7, 76, 4), // "save"
QT_MOC_LITERAL(8, 81, 16), // "waitSaveComplete"
QT_MOC_LITERAL(9, 98, 21), // "_k_slotUploadFinished"
QT_MOC_LITERAL(10, 120, 5), // "KJob*"
QT_MOC_LITERAL(11, 126, 3) // "job"

    },
    "KParts::ReadWritePart\0sigQueryClose\0"
    "\0bool*\0handled\0abortClosing\0setModified\0"
    "save\0waitSaveComplete\0_k_slotUploadFinished\0"
    "KJob*\0job"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KParts__ReadWritePart[] = {

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

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

 // slots: name, argc, parameters, tag, flags
       6,    0,   44,    2, 0x0a /* Public */,
       7,    0,   45,    2, 0x0a /* Public */,
       8,    0,   46,    2, 0x0a /* Public */,
       9,    1,   47,    2, 0x08 /* Private */,

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

 // slots: parameters
    QMetaType::Void,
    QMetaType::Bool,
    QMetaType::Bool,
    QMetaType::Void, 0x80000000 | 10,   11,

       0        // eod
};

void KParts::ReadWritePart::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        ReadWritePart *_t = static_cast<ReadWritePart *>(_o);
        switch (_id) {
        case 0: _t->sigQueryClose((*reinterpret_cast< bool*(*)>(_a[1])),(*reinterpret_cast< bool*(*)>(_a[2]))); break;
        case 1: _t->setModified(); break;
        case 2: { bool _r = _t->save();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; }  break;
        case 3: { bool _r = _t->waitSaveComplete();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; }  break;
        case 4: _t->d_func()->_k_slotUploadFinished((*reinterpret_cast< KJob*(*)>(_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 (ReadWritePart::*_t)(bool * , bool * );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&ReadWritePart::sigQueryClose)) {
                *result = 0;
            }
        }
    }
}

const QMetaObject KParts::ReadWritePart::staticMetaObject = {
    { &ReadOnlyPart::staticMetaObject, qt_meta_stringdata_KParts__ReadWritePart.data,
      qt_meta_data_KParts__ReadWritePart,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

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

int KParts::ReadWritePart::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = ReadOnlyPart::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 KParts::ReadWritePart::sigQueryClose(bool * _t1, bool * _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);
}
QT_END_MOC_NAMESPACE
