/****************************************************************************
** Meta object code from reading C++ file 'part.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/calligraplan-3.1.0/src/workpackage/part.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'part.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_KPlatoWork__DocumentChild_t {
    QByteArrayData data[14];
    char stringdata0[181];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KPlatoWork__DocumentChild_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KPlatoWork__DocumentChild_t qt_meta_stringdata_KPlatoWork__DocumentChild = {
    {
QT_MOC_LITERAL(0, 0, 25), // "KPlatoWork::DocumentChild"
QT_MOC_LITERAL(1, 26, 8), // "modified"
QT_MOC_LITERAL(2, 35, 0), // ""
QT_MOC_LITERAL(3, 36, 12), // "fileModified"
QT_MOC_LITERAL(4, 49, 11), // "setModified"
QT_MOC_LITERAL(5, 61, 3), // "mod"
QT_MOC_LITERAL(6, 65, 16), // "slotEditFinished"
QT_MOC_LITERAL(7, 82, 20), // "QProcess::ExitStatus"
QT_MOC_LITERAL(8, 103, 13), // "slotEditError"
QT_MOC_LITERAL(9, 117, 22), // "QProcess::ProcessError"
QT_MOC_LITERAL(10, 140, 6), // "status"
QT_MOC_LITERAL(11, 147, 9), // "slotDirty"
QT_MOC_LITERAL(12, 157, 4), // "file"
QT_MOC_LITERAL(13, 162, 18) // "slotUpdateModified"

    },
    "KPlatoWork::DocumentChild\0modified\0\0"
    "fileModified\0setModified\0mod\0"
    "slotEditFinished\0QProcess::ExitStatus\0"
    "slotEditError\0QProcess::ProcessError\0"
    "status\0slotDirty\0file\0slotUpdateModified"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KPlatoWork__DocumentChild[] = {

 // 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,    1,   49,    2, 0x06 /* Public */,
       3,    1,   52,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       4,    1,   55,    2, 0x0a /* Public */,
       6,    2,   58,    2, 0x09 /* Protected */,
       8,    1,   63,    2, 0x09 /* Protected */,
      11,    1,   66,    2, 0x09 /* Protected */,
      13,    0,   69,    2, 0x09 /* Protected */,

 // signals: parameters
    QMetaType::Void, QMetaType::Bool,    2,
    QMetaType::Void, QMetaType::Bool,    2,

 // slots: parameters
    QMetaType::Void, QMetaType::Bool,    5,
    QMetaType::Void, QMetaType::Int, 0x80000000 | 7,    2,    2,
    QMetaType::Void, 0x80000000 | 9,   10,
    QMetaType::Void, QMetaType::QString,   12,
    QMetaType::Void,

       0        // eod
};

void KPlatoWork::DocumentChild::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        DocumentChild *_t = static_cast<DocumentChild *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->modified((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 1: _t->fileModified((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 2: _t->setModified((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 3: _t->slotEditFinished((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< QProcess::ExitStatus(*)>(_a[2]))); break;
        case 4: _t->slotEditError((*reinterpret_cast< QProcess::ProcessError(*)>(_a[1]))); break;
        case 5: _t->slotDirty((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 6: _t->slotUpdateModified(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (DocumentChild::*_t)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DocumentChild::modified)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (DocumentChild::*_t)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DocumentChild::fileModified)) {
                *result = 1;
                return;
            }
        }
    }
}

const QMetaObject KPlatoWork::DocumentChild::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_KPlatoWork__DocumentChild.data,
      qt_meta_data_KPlatoWork__DocumentChild,  qt_static_metacall, nullptr, nullptr}
};


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

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

int KPlatoWork::DocumentChild::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 < 7)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 7;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 7)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 7;
    }
    return _id;
}

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

// SIGNAL 1
void KPlatoWork::DocumentChild::fileModified(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}
struct qt_meta_stringdata_KPlatoWork__Part_t {
    QByteArrayData data[22];
    char stringdata0[255];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KPlatoWork__Part_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KPlatoWork__Part_t qt_meta_stringdata_KPlatoWork__Part = {
    {
QT_MOC_LITERAL(0, 0, 16), // "KPlatoWork::Part"
QT_MOC_LITERAL(1, 17, 7), // "changed"
QT_MOC_LITERAL(2, 25, 0), // ""
QT_MOC_LITERAL(3, 26, 16), // "workPackageAdded"
QT_MOC_LITERAL(4, 43, 12), // "WorkPackage*"
QT_MOC_LITERAL(5, 56, 7), // "package"
QT_MOC_LITERAL(6, 64, 5), // "index"
QT_MOC_LITERAL(7, 70, 18), // "workPackageRemoved"
QT_MOC_LITERAL(8, 89, 2), // "wp"
QT_MOC_LITERAL(9, 92, 14), // "captionChanged"
QT_MOC_LITERAL(10, 107, 16), // "setDocumentClean"
QT_MOC_LITERAL(11, 124, 5), // "clean"
QT_MOC_LITERAL(12, 130, 11), // "setModified"
QT_MOC_LITERAL(13, 142, 3), // "mod"
QT_MOC_LITERAL(14, 146, 24), // "saveModifiedWorkPackages"
QT_MOC_LITERAL(15, 171, 15), // "saveWorkPackage"
QT_MOC_LITERAL(16, 187, 10), // "addCommand"
QT_MOC_LITERAL(17, 198, 14), // "KUndo2Command*"
QT_MOC_LITERAL(18, 213, 3), // "cmd"
QT_MOC_LITERAL(19, 217, 23), // "viewWorkpackageDocument"
QT_MOC_LITERAL(20, 241, 9), // "Document*"
QT_MOC_LITERAL(21, 251, 3) // "doc"

    },
    "KPlatoWork::Part\0changed\0\0workPackageAdded\0"
    "WorkPackage*\0package\0index\0"
    "workPackageRemoved\0wp\0captionChanged\0"
    "setDocumentClean\0clean\0setModified\0"
    "mod\0saveModifiedWorkPackages\0"
    "saveWorkPackage\0addCommand\0KUndo2Command*\0"
    "cmd\0viewWorkpackageDocument\0Document*\0"
    "doc"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KPlatoWork__Part[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,   64,    2, 0x06 /* Public */,
       3,    2,   65,    2, 0x06 /* Public */,
       7,    2,   70,    2, 0x06 /* Public */,
       9,    2,   75,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      10,    1,   80,    2, 0x0a /* Public */,
      12,    1,   83,    2, 0x0a /* Public */,
      14,    0,   86,    2, 0x0a /* Public */,
      15,    1,   87,    2, 0x0a /* Public */,
      16,    1,   90,    2, 0x0a /* Public */,
      19,    1,   93,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 4, QMetaType::Int,    5,    6,
    QMetaType::Void, 0x80000000 | 4, QMetaType::Int,    8,    6,
    QMetaType::Void, QMetaType::QString, QMetaType::Bool,    2,    2,

 // slots: parameters
    QMetaType::Void, QMetaType::Bool,   11,
    QMetaType::Void, QMetaType::Bool,   13,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 4,    8,
    QMetaType::Void, 0x80000000 | 17,   18,
    QMetaType::Void, 0x80000000 | 20,   21,

       0        // eod
};

void KPlatoWork::Part::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        Part *_t = static_cast<Part *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->changed(); break;
        case 1: _t->workPackageAdded((*reinterpret_cast< WorkPackage*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 2: _t->workPackageRemoved((*reinterpret_cast< WorkPackage*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 3: _t->captionChanged((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 4: _t->setDocumentClean((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 5: _t->setModified((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 6: _t->saveModifiedWorkPackages(); break;
        case 7: _t->saveWorkPackage((*reinterpret_cast< WorkPackage*(*)>(_a[1]))); break;
        case 8: _t->addCommand((*reinterpret_cast< KUndo2Command*(*)>(_a[1]))); break;
        case 9: _t->viewWorkpackageDocument((*reinterpret_cast< Document*(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (Part::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Part::changed)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (Part::*_t)(WorkPackage * , int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Part::workPackageAdded)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (Part::*_t)(WorkPackage * , int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Part::workPackageRemoved)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (Part::*_t)(const QString & , bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Part::captionChanged)) {
                *result = 3;
                return;
            }
        }
    }
}

const QMetaObject KPlatoWork::Part::staticMetaObject = {
    { &KParts::ReadWritePart::staticMetaObject, qt_meta_stringdata_KPlatoWork__Part.data,
      qt_meta_data_KPlatoWork__Part,  qt_static_metacall, nullptr, nullptr}
};


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

void *KPlatoWork::Part::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_KPlatoWork__Part.stringdata0))
        return static_cast<void*>(this);
    return KParts::ReadWritePart::qt_metacast(_clname);
}

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

// SIGNAL 0
void KPlatoWork::Part::changed()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void KPlatoWork::Part::workPackageAdded(WorkPackage * _t1, 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, 1, _a);
}

// SIGNAL 2
void KPlatoWork::Part::workPackageRemoved(WorkPackage * _t1, 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, 2, _a);
}

// SIGNAL 3
void KPlatoWork::Part::captionChanged(const QString & _t1, bool _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
