/****************************************************************************
** Meta object code from reading C++ file 'kptresourceallocationmodel.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/models/kptresourceallocationmodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'kptresourceallocationmodel.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__ResourceAllocationModel_t {
    QByteArrayData data[7];
    char stringdata0[116];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KPlato__ResourceAllocationModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KPlato__ResourceAllocationModel_t qt_meta_stringdata_KPlato__ResourceAllocationModel = {
    {
QT_MOC_LITERAL(0, 0, 31), // "KPlato::ResourceAllocationModel"
QT_MOC_LITERAL(1, 32, 10), // "Properties"
QT_MOC_LITERAL(2, 43, 11), // "RequestName"
QT_MOC_LITERAL(3, 55, 11), // "RequestType"
QT_MOC_LITERAL(4, 67, 17), // "RequestAllocation"
QT_MOC_LITERAL(5, 85, 14), // "RequestMaximum"
QT_MOC_LITERAL(6, 100, 15) // "RequestRequired"

    },
    "KPlato::ResourceAllocationModel\0"
    "Properties\0RequestName\0RequestType\0"
    "RequestAllocation\0RequestMaximum\0"
    "RequestRequired"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KPlato__ResourceAllocationModel[] = {

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

 // enums: name, flags, count, data
       1, 0x0,    5,   18,

 // enum data: key, value
       2, uint(KPlato::ResourceAllocationModel::RequestName),
       3, uint(KPlato::ResourceAllocationModel::RequestType),
       4, uint(KPlato::ResourceAllocationModel::RequestAllocation),
       5, uint(KPlato::ResourceAllocationModel::RequestMaximum),
       6, uint(KPlato::ResourceAllocationModel::RequestRequired),

       0        // eod
};

void KPlato::ResourceAllocationModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    Q_UNUSED(_o);
    Q_UNUSED(_id);
    Q_UNUSED(_c);
    Q_UNUSED(_a);
}

const QMetaObject KPlato::ResourceAllocationModel::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_KPlato__ResourceAllocationModel.data,
      qt_meta_data_KPlato__ResourceAllocationModel,  qt_static_metacall, nullptr, nullptr}
};


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

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

int KPlato::ResourceAllocationModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    return _id;
}
struct qt_meta_stringdata_KPlato__ResourceAllocationItemModel_t {
    QByteArrayData data[22];
    char stringdata0[382];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KPlato__ResourceAllocationItemModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KPlato__ResourceAllocationItemModel_t qt_meta_stringdata_KPlato__ResourceAllocationItemModel = {
    {
QT_MOC_LITERAL(0, 0, 35), // "KPlato::ResourceAllocationIte..."
QT_MOC_LITERAL(1, 36, 7), // "setTask"
QT_MOC_LITERAL(2, 44, 0), // ""
QT_MOC_LITERAL(3, 45, 5), // "Task*"
QT_MOC_LITERAL(4, 51, 4), // "task"
QT_MOC_LITERAL(5, 56, 19), // "slotResourceChanged"
QT_MOC_LITERAL(6, 76, 9), // "Resource*"
QT_MOC_LITERAL(7, 86, 24), // "slotResourceGroupChanged"
QT_MOC_LITERAL(8, 111, 14), // "ResourceGroup*"
QT_MOC_LITERAL(9, 126, 29), // "slotResourceGroupToBeInserted"
QT_MOC_LITERAL(10, 156, 20), // "const ResourceGroup*"
QT_MOC_LITERAL(11, 177, 5), // "group"
QT_MOC_LITERAL(12, 183, 3), // "row"
QT_MOC_LITERAL(13, 187, 25), // "slotResourceGroupInserted"
QT_MOC_LITERAL(14, 213, 28), // "slotResourceGroupToBeRemoved"
QT_MOC_LITERAL(15, 242, 24), // "slotResourceGroupRemoved"
QT_MOC_LITERAL(16, 267, 24), // "slotResourceToBeInserted"
QT_MOC_LITERAL(17, 292, 20), // "slotResourceInserted"
QT_MOC_LITERAL(18, 313, 15), // "const Resource*"
QT_MOC_LITERAL(19, 329, 8), // "resource"
QT_MOC_LITERAL(20, 338, 23), // "slotResourceToBeRemoved"
QT_MOC_LITERAL(21, 362, 19) // "slotResourceRemoved"

    },
    "KPlato::ResourceAllocationItemModel\0"
    "setTask\0\0Task*\0task\0slotResourceChanged\0"
    "Resource*\0slotResourceGroupChanged\0"
    "ResourceGroup*\0slotResourceGroupToBeInserted\0"
    "const ResourceGroup*\0group\0row\0"
    "slotResourceGroupInserted\0"
    "slotResourceGroupToBeRemoved\0"
    "slotResourceGroupRemoved\0"
    "slotResourceToBeInserted\0slotResourceInserted\0"
    "const Resource*\0resource\0"
    "slotResourceToBeRemoved\0slotResourceRemoved"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KPlato__ResourceAllocationItemModel[] = {

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

 // slots: name, argc, parameters, tag, flags
       1,    1,   69,    2, 0x0a /* Public */,
       5,    1,   72,    2, 0x09 /* Protected */,
       7,    1,   75,    2, 0x09 /* Protected */,
       9,    2,   78,    2, 0x09 /* Protected */,
      13,    1,   83,    2, 0x09 /* Protected */,
      14,    1,   86,    2, 0x09 /* Protected */,
      15,    1,   89,    2, 0x09 /* Protected */,
      16,    2,   92,    2, 0x09 /* Protected */,
      17,    1,   97,    2, 0x09 /* Protected */,
      20,    1,  100,    2, 0x09 /* Protected */,
      21,    1,  103,    2, 0x09 /* Protected */,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, 0x80000000 | 6,    2,
    QMetaType::Void, 0x80000000 | 8,    2,
    QMetaType::Void, 0x80000000 | 10, QMetaType::Int,   11,   12,
    QMetaType::Void, 0x80000000 | 10,   11,
    QMetaType::Void, 0x80000000 | 10,   11,
    QMetaType::Void, 0x80000000 | 10,   11,
    QMetaType::Void, 0x80000000 | 10, QMetaType::Int,   11,   12,
    QMetaType::Void, 0x80000000 | 18,   19,
    QMetaType::Void, 0x80000000 | 18,   19,
    QMetaType::Void, 0x80000000 | 18,   19,

       0        // eod
};

void KPlato::ResourceAllocationItemModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        ResourceAllocationItemModel *_t = static_cast<ResourceAllocationItemModel *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->setTask((*reinterpret_cast< Task*(*)>(_a[1]))); break;
        case 1: _t->slotResourceChanged((*reinterpret_cast< Resource*(*)>(_a[1]))); break;
        case 2: _t->slotResourceGroupChanged((*reinterpret_cast< ResourceGroup*(*)>(_a[1]))); break;
        case 3: _t->slotResourceGroupToBeInserted((*reinterpret_cast< const ResourceGroup*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 4: _t->slotResourceGroupInserted((*reinterpret_cast< const ResourceGroup*(*)>(_a[1]))); break;
        case 5: _t->slotResourceGroupToBeRemoved((*reinterpret_cast< const ResourceGroup*(*)>(_a[1]))); break;
        case 6: _t->slotResourceGroupRemoved((*reinterpret_cast< const ResourceGroup*(*)>(_a[1]))); break;
        case 7: _t->slotResourceToBeInserted((*reinterpret_cast< const ResourceGroup*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 8: _t->slotResourceInserted((*reinterpret_cast< const Resource*(*)>(_a[1]))); break;
        case 9: _t->slotResourceToBeRemoved((*reinterpret_cast< const Resource*(*)>(_a[1]))); break;
        case 10: _t->slotResourceRemoved((*reinterpret_cast< const Resource*(*)>(_a[1]))); break;
        default: ;
        }
    }
}

const QMetaObject KPlato::ResourceAllocationItemModel::staticMetaObject = {
    { &ItemModelBase::staticMetaObject, qt_meta_stringdata_KPlato__ResourceAllocationItemModel.data,
      qt_meta_data_KPlato__ResourceAllocationItemModel,  qt_static_metacall, nullptr, nullptr}
};


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

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

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