/****************************************************************************
** Meta object code from reading C++ file 'kptschedulerplugin.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/libs/kernel/kptschedulerplugin.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'kptschedulerplugin.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__SchedulerPlugin_t {
    QByteArrayData data[3];
    char stringdata0[38];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KPlato__SchedulerPlugin_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KPlato__SchedulerPlugin_t qt_meta_stringdata_KPlato__SchedulerPlugin = {
    {
QT_MOC_LITERAL(0, 0, 23), // "KPlato::SchedulerPlugin"
QT_MOC_LITERAL(1, 24, 12), // "slotSyncData"
QT_MOC_LITERAL(2, 37, 0) // ""

    },
    "KPlato::SchedulerPlugin\0slotSyncData\0"
    ""
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KPlato__SchedulerPlugin[] = {

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

 // slots: name, argc, parameters, tag, flags
       1,    0,   19,    2, 0x09 /* Protected */,

 // slots: parameters
    QMetaType::Void,

       0        // eod
};

void KPlato::SchedulerPlugin::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        SchedulerPlugin *_t = static_cast<SchedulerPlugin *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->slotSyncData(); break;
        default: ;
        }
    }
    Q_UNUSED(_a);
}

const QMetaObject KPlato::SchedulerPlugin::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_KPlato__SchedulerPlugin.data,
      qt_meta_data_KPlato__SchedulerPlugin,  qt_static_metacall, nullptr, nullptr}
};


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

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

int KPlato::SchedulerPlugin::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 < 1)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 1;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 1)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 1;
    }
    return _id;
}
struct qt_meta_stringdata_KPlato__SchedulerThread_t {
    QByteArrayData data[20];
    char stringdata0[241];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KPlato__SchedulerThread_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KPlato__SchedulerThread_t qt_meta_stringdata_KPlato__SchedulerThread = {
    {
QT_MOC_LITERAL(0, 0, 23), // "KPlato::SchedulerThread"
QT_MOC_LITERAL(1, 24, 10), // "jobStarted"
QT_MOC_LITERAL(2, 35, 0), // ""
QT_MOC_LITERAL(3, 36, 16), // "SchedulerThread*"
QT_MOC_LITERAL(4, 53, 3), // "job"
QT_MOC_LITERAL(5, 57, 11), // "jobFinished"
QT_MOC_LITERAL(6, 69, 18), // "maxProgressChanged"
QT_MOC_LITERAL(7, 88, 5), // "value"
QT_MOC_LITERAL(8, 94, 16), // "ScheduleManager*"
QT_MOC_LITERAL(9, 111, 2), // "sm"
QT_MOC_LITERAL(10, 114, 15), // "progressChanged"
QT_MOC_LITERAL(11, 130, 14), // "stopScheduling"
QT_MOC_LITERAL(12, 145, 14), // "haltScheduling"
QT_MOC_LITERAL(13, 160, 11), // "slotStarted"
QT_MOC_LITERAL(14, 172, 12), // "slotFinished"
QT_MOC_LITERAL(15, 185, 14), // "setMaxProgress"
QT_MOC_LITERAL(16, 200, 11), // "setProgress"
QT_MOC_LITERAL(17, 212, 10), // "slotAddLog"
QT_MOC_LITERAL(18, 223, 13), // "Schedule::Log"
QT_MOC_LITERAL(19, 237, 3) // "log"

    },
    "KPlato::SchedulerThread\0jobStarted\0\0"
    "SchedulerThread*\0job\0jobFinished\0"
    "maxProgressChanged\0value\0ScheduleManager*\0"
    "sm\0progressChanged\0stopScheduling\0"
    "haltScheduling\0slotStarted\0slotFinished\0"
    "setMaxProgress\0setProgress\0slotAddLog\0"
    "Schedule::Log\0log"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KPlato__SchedulerThread[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   79,    2, 0x06 /* Public */,
       5,    1,   82,    2, 0x06 /* Public */,
       6,    2,   85,    2, 0x06 /* Public */,
       6,    1,   90,    2, 0x26 /* Public | MethodCloned */,
      10,    2,   93,    2, 0x06 /* Public */,
      10,    1,   98,    2, 0x26 /* Public | MethodCloned */,

 // slots: name, argc, parameters, tag, flags
      11,    0,  101,    2, 0x0a /* Public */,
      12,    0,  102,    2, 0x0a /* Public */,
      13,    0,  103,    2, 0x09 /* Protected */,
      14,    0,  104,    2, 0x09 /* Protected */,
      15,    1,  105,    2, 0x09 /* Protected */,
      16,    1,  108,    2, 0x09 /* Protected */,
      17,    1,  111,    2, 0x09 /* Protected */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, QMetaType::Int, 0x80000000 | 8,    7,    9,
    QMetaType::Void, QMetaType::Int,    7,
    QMetaType::Void, QMetaType::Int, 0x80000000 | 8,    7,    9,
    QMetaType::Void, QMetaType::Int,    7,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,    2,
    QMetaType::Void, QMetaType::Int,    2,
    QMetaType::Void, 0x80000000 | 18,   19,

       0        // eod
};

void KPlato::SchedulerThread::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        SchedulerThread *_t = static_cast<SchedulerThread *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->jobStarted((*reinterpret_cast< SchedulerThread*(*)>(_a[1]))); break;
        case 1: _t->jobFinished((*reinterpret_cast< SchedulerThread*(*)>(_a[1]))); break;
        case 2: _t->maxProgressChanged((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< ScheduleManager*(*)>(_a[2]))); break;
        case 3: _t->maxProgressChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 4: _t->progressChanged((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< ScheduleManager*(*)>(_a[2]))); break;
        case 5: _t->progressChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 6: _t->stopScheduling(); break;
        case 7: _t->haltScheduling(); break;
        case 8: _t->slotStarted(); break;
        case 9: _t->slotFinished(); break;
        case 10: _t->setMaxProgress((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 11: _t->setProgress((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 12: _t->slotAddLog((*reinterpret_cast< const Schedule::Log(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< SchedulerThread* >(); break;
            }
            break;
        case 1:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< SchedulerThread* >(); break;
            }
            break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 1:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< ScheduleManager* >(); break;
            }
            break;
        case 4:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 1:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< ScheduleManager* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (SchedulerThread::*_t)(SchedulerThread * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SchedulerThread::jobStarted)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (SchedulerThread::*_t)(SchedulerThread * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SchedulerThread::jobFinished)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (SchedulerThread::*_t)(int , ScheduleManager * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SchedulerThread::maxProgressChanged)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (SchedulerThread::*_t)(int , ScheduleManager * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SchedulerThread::progressChanged)) {
                *result = 4;
                return;
            }
        }
    }
}

const QMetaObject KPlato::SchedulerThread::staticMetaObject = {
    { &QThread::staticMetaObject, qt_meta_stringdata_KPlato__SchedulerThread.data,
      qt_meta_data_KPlato__SchedulerThread,  qt_static_metacall, nullptr, nullptr}
};


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

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

int KPlato::SchedulerThread::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QThread::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    }
    return _id;
}

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

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

// SIGNAL 2
void KPlato::SchedulerThread::maxProgressChanged(int _t1, ScheduleManager * _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 4
void KPlato::SchedulerThread::progressChanged(int _t1, ScheduleManager * _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 4, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
