/****************************************************************************
** Meta object code from reading C++ file 'kptmaindocument.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/kptmaindocument.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'kptmaindocument.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_KPlato__MainDocument_t {
    QByteArrayData data[46];
    char stringdata0[757];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KPlato__MainDocument_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KPlato__MainDocument_t qt_meta_stringdata_KPlato__MainDocument = {
    {
QT_MOC_LITERAL(0, 0, 20), // "KPlato::MainDocument"
QT_MOC_LITERAL(1, 21, 7), // "changed"
QT_MOC_LITERAL(2, 29, 0), // ""
QT_MOC_LITERAL(3, 30, 17), // "workPackageLoaded"
QT_MOC_LITERAL(4, 48, 16), // "viewlistModified"
QT_MOC_LITERAL(5, 65, 17), // "viewListItemAdded"
QT_MOC_LITERAL(6, 83, 19), // "const ViewListItem*"
QT_MOC_LITERAL(7, 103, 4), // "item"
QT_MOC_LITERAL(8, 108, 6), // "parent"
QT_MOC_LITERAL(9, 115, 5), // "index"
QT_MOC_LITERAL(10, 121, 19), // "viewListItemRemoved"
QT_MOC_LITERAL(11, 141, 19), // "insertSharedProject"
QT_MOC_LITERAL(12, 161, 11), // "setModified"
QT_MOC_LITERAL(13, 173, 3), // "mod"
QT_MOC_LITERAL(14, 177, 18), // "insertViewListItem"
QT_MOC_LITERAL(15, 196, 5), // "View*"
QT_MOC_LITERAL(16, 202, 4), // "view"
QT_MOC_LITERAL(17, 207, 18), // "removeViewListItem"
QT_MOC_LITERAL(18, 226, 20), // "checkForWorkPackages"
QT_MOC_LITERAL(19, 247, 4), // "keep"
QT_MOC_LITERAL(20, 252, 18), // "setLoadingTemplate"
QT_MOC_LITERAL(21, 271, 33), // "setLoadingSharedResourcesTemp..."
QT_MOC_LITERAL(22, 305, 19), // "insertResourcesFile"
QT_MOC_LITERAL(23, 325, 3), // "url"
QT_MOC_LITERAL(24, 329, 8), // "projects"
QT_MOC_LITERAL(25, 338, 18), // "slotProjectCreated"
QT_MOC_LITERAL(26, 357, 20), // "insertSharedProjects"
QT_MOC_LITERAL(27, 378, 24), // "clearResourceAssignments"
QT_MOC_LITERAL(28, 403, 23), // "loadResourceAssignments"
QT_MOC_LITERAL(29, 427, 15), // "setIsTaskModule"
QT_MOC_LITERAL(30, 443, 5), // "value"
QT_MOC_LITERAL(31, 449, 12), // "isTaskModule"
QT_MOC_LITERAL(32, 462, 17), // "slotViewDestroyed"
QT_MOC_LITERAL(33, 480, 18), // "addSchedulerPlugin"
QT_MOC_LITERAL(34, 499, 16), // "SchedulerPlugin*"
QT_MOC_LITERAL(35, 516, 6), // "plugin"
QT_MOC_LITERAL(36, 523, 24), // "autoCheckForWorkPackages"
QT_MOC_LITERAL(37, 548, 19), // "checkForWorkPackage"
QT_MOC_LITERAL(38, 568, 19), // "insertFileCompleted"
QT_MOC_LITERAL(39, 588, 28), // "insertResourcesFileCompleted"
QT_MOC_LITERAL(40, 617, 19), // "insertFileCancelled"
QT_MOC_LITERAL(41, 637, 23), // "slotInsertSharedProject"
QT_MOC_LITERAL(42, 661, 28), // "insertSharedProjectCompleted"
QT_MOC_LITERAL(43, 690, 28), // "insertSharedProjectCancelled"
QT_MOC_LITERAL(44, 719, 30), // "workPackageMergeDialogFinished"
QT_MOC_LITERAL(45, 750, 6) // "result"

    },
    "KPlato::MainDocument\0changed\0\0"
    "workPackageLoaded\0viewlistModified\0"
    "viewListItemAdded\0const ViewListItem*\0"
    "item\0parent\0index\0viewListItemRemoved\0"
    "insertSharedProject\0setModified\0mod\0"
    "insertViewListItem\0View*\0view\0"
    "removeViewListItem\0checkForWorkPackages\0"
    "keep\0setLoadingTemplate\0"
    "setLoadingSharedResourcesTemplate\0"
    "insertResourcesFile\0url\0projects\0"
    "slotProjectCreated\0insertSharedProjects\0"
    "clearResourceAssignments\0"
    "loadResourceAssignments\0setIsTaskModule\0"
    "value\0isTaskModule\0slotViewDestroyed\0"
    "addSchedulerPlugin\0SchedulerPlugin*\0"
    "plugin\0autoCheckForWorkPackages\0"
    "checkForWorkPackage\0insertFileCompleted\0"
    "insertResourcesFileCompleted\0"
    "insertFileCancelled\0slotInsertSharedProject\0"
    "insertSharedProjectCompleted\0"
    "insertSharedProjectCancelled\0"
    "workPackageMergeDialogFinished\0result"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KPlato__MainDocument[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,  179,    2, 0x06 /* Public */,
       3,    0,  180,    2, 0x06 /* Public */,
       4,    1,  181,    2, 0x06 /* Public */,
       5,    3,  184,    2, 0x06 /* Public */,
      10,    1,  191,    2, 0x06 /* Public */,
      11,    0,  194,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      12,    1,  195,    2, 0x0a /* Public */,
      14,    4,  198,    2, 0x0a /* Public */,
      17,    2,  207,    2, 0x0a /* Public */,
       4,    0,  212,    2, 0x0a /* Public */,
      18,    1,  213,    2, 0x0a /* Public */,
      18,    0,  216,    2, 0x2a /* Public | MethodCloned */,
      20,    1,  217,    2, 0x0a /* Public */,
      21,    1,  220,    2, 0x0a /* Public */,
      22,    2,  223,    2, 0x0a /* Public */,
      22,    1,  228,    2, 0x2a /* Public | MethodCloned */,
      25,    0,  231,    2, 0x0a /* Public */,
      26,    1,  232,    2, 0x0a /* Public */,
      27,    0,  235,    2, 0x0a /* Public */,
      28,    1,  236,    2, 0x0a /* Public */,
      29,    1,  239,    2, 0x0a /* Public */,
      31,    0,  242,    2, 0x0a /* Public */,
      32,    0,  243,    2, 0x09 /* Protected */,
      33,    2,  244,    2, 0x09 /* Protected */,
      36,    0,  249,    2, 0x09 /* Protected */,
      37,    0,  250,    2, 0x09 /* Protected */,
      38,    0,  251,    2, 0x09 /* Protected */,
      39,    0,  252,    2, 0x09 /* Protected */,
      40,    1,  253,    2, 0x09 /* Protected */,
      41,    0,  256,    2, 0x09 /* Protected */,
      42,    0,  257,    2, 0x09 /* Protected */,
      43,    1,  258,    2, 0x09 /* Protected */,
      44,    1,  261,    2, 0x09 /* Protected */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,    2,
    QMetaType::Void, 0x80000000 | 6, 0x80000000 | 6, QMetaType::Int,    7,    8,    9,
    QMetaType::Void, 0x80000000 | 6,    7,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void, QMetaType::Bool,   13,
    QMetaType::Void, 0x80000000 | 15, 0x80000000 | 6, 0x80000000 | 6, QMetaType::Int,   16,    7,    8,    9,
    QMetaType::Void, 0x80000000 | 15, 0x80000000 | 6,   16,    7,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,   19,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,    2,
    QMetaType::Void, QMetaType::Bool,    2,
    QMetaType::Void, QMetaType::QUrl, QMetaType::QUrl,   23,   24,
    QMetaType::Void, QMetaType::QUrl,   23,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QUrl,   23,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QUrl,   23,
    QMetaType::Void, QMetaType::Bool,   30,
    QMetaType::Bool,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString, 0x80000000 | 34,    2,   35,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,    2,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,    2,
    QMetaType::Void, QMetaType::Int,   45,

       0        // eod
};

void KPlato::MainDocument::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        MainDocument *_t = static_cast<MainDocument *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->changed(); break;
        case 1: _t->workPackageLoaded(); break;
        case 2: _t->viewlistModified((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 3: _t->viewListItemAdded((*reinterpret_cast< const ViewListItem*(*)>(_a[1])),(*reinterpret_cast< const ViewListItem*(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 4: _t->viewListItemRemoved((*reinterpret_cast< const ViewListItem*(*)>(_a[1]))); break;
        case 5: _t->insertSharedProject(); break;
        case 6: _t->setModified((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 7: _t->insertViewListItem((*reinterpret_cast< View*(*)>(_a[1])),(*reinterpret_cast< const ViewListItem*(*)>(_a[2])),(*reinterpret_cast< const ViewListItem*(*)>(_a[3])),(*reinterpret_cast< int(*)>(_a[4]))); break;
        case 8: _t->removeViewListItem((*reinterpret_cast< View*(*)>(_a[1])),(*reinterpret_cast< const ViewListItem*(*)>(_a[2]))); break;
        case 9: _t->viewlistModified(); break;
        case 10: _t->checkForWorkPackages((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 11: _t->checkForWorkPackages(); break;
        case 12: _t->setLoadingTemplate((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 13: _t->setLoadingSharedResourcesTemplate((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 14: _t->insertResourcesFile((*reinterpret_cast< const QUrl(*)>(_a[1])),(*reinterpret_cast< const QUrl(*)>(_a[2]))); break;
        case 15: _t->insertResourcesFile((*reinterpret_cast< const QUrl(*)>(_a[1]))); break;
        case 16: _t->slotProjectCreated(); break;
        case 17: _t->insertSharedProjects((*reinterpret_cast< const QUrl(*)>(_a[1]))); break;
        case 18: _t->clearResourceAssignments(); break;
        case 19: _t->loadResourceAssignments((*reinterpret_cast< QUrl(*)>(_a[1]))); break;
        case 20: _t->setIsTaskModule((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 21: { bool _r = _t->isTaskModule();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 22: _t->slotViewDestroyed(); break;
        case 23: _t->addSchedulerPlugin((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< SchedulerPlugin*(*)>(_a[2]))); break;
        case 24: _t->autoCheckForWorkPackages(); break;
        case 25: _t->checkForWorkPackage(); break;
        case 26: _t->insertFileCompleted(); break;
        case 27: _t->insertResourcesFileCompleted(); break;
        case 28: _t->insertFileCancelled((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 29: _t->slotInsertSharedProject(); break;
        case 30: _t->insertSharedProjectCompleted(); break;
        case 31: _t->insertSharedProjectCancelled((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 32: _t->workPackageMergeDialogFinished((*reinterpret_cast< int(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (MainDocument::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainDocument::changed)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (MainDocument::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainDocument::workPackageLoaded)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (MainDocument::*_t)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainDocument::viewlistModified)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (MainDocument::*_t)(const ViewListItem * , const ViewListItem * , int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainDocument::viewListItemAdded)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (MainDocument::*_t)(const ViewListItem * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainDocument::viewListItemRemoved)) {
                *result = 4;
                return;
            }
        }
        {
            typedef void (MainDocument::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainDocument::insertSharedProject)) {
                *result = 5;
                return;
            }
        }
    }
}

const QMetaObject KPlato::MainDocument::staticMetaObject = {
    { &KoDocument::staticMetaObject, qt_meta_stringdata_KPlato__MainDocument.data,
      qt_meta_data_KPlato__MainDocument,  qt_static_metacall, nullptr, nullptr}
};


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

void *KPlato::MainDocument::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_KPlato__MainDocument.stringdata0))
        return static_cast<void*>(this);
    return KoDocument::qt_metacast(_clname);
}

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

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

// SIGNAL 1
void KPlato::MainDocument::workPackageLoaded()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void KPlato::MainDocument::viewlistModified(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void KPlato::MainDocument::viewListItemAdded(const ViewListItem * _t1, const ViewListItem * _t2, int _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);
}

// SIGNAL 4
void KPlato::MainDocument::viewListItemRemoved(const ViewListItem * _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 4, _a);
}

// SIGNAL 5
void KPlato::MainDocument::insertSharedProject()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
