/****************************************************************************
** Meta object code from reading C++ file 'documentwrapper.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/rocs-15.04.3/libgraphtheory/kernel/documentwrapper.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'documentwrapper.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_GraphTheory__DocumentWrapper_t {
    QByteArrayData data[24];
    char stringdata[240];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_GraphTheory__DocumentWrapper_t, stringdata) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_GraphTheory__DocumentWrapper_t qt_meta_stringdata_GraphTheory__DocumentWrapper = {
    {
QT_MOC_LITERAL(0, 0, 28), // "GraphTheory::DocumentWrapper"
QT_MOC_LITERAL(1, 29, 7), // "message"
QT_MOC_LITERAL(2, 37, 0), // ""
QT_MOC_LITERAL(3, 38, 13), // "messageString"
QT_MOC_LITERAL(4, 52, 19), // "Kernel::MessageType"
QT_MOC_LITERAL(5, 72, 4), // "type"
QT_MOC_LITERAL(6, 77, 15), // "registerWrapper"
QT_MOC_LITERAL(7, 93, 7), // "NodePtr"
QT_MOC_LITERAL(8, 101, 4), // "node"
QT_MOC_LITERAL(9, 106, 7), // "EdgePtr"
QT_MOC_LITERAL(10, 114, 4), // "edge"
QT_MOC_LITERAL(11, 119, 12), // "QScriptValue"
QT_MOC_LITERAL(12, 132, 2), // "id"
QT_MOC_LITERAL(13, 135, 5), // "nodes"
QT_MOC_LITERAL(14, 141, 5), // "edges"
QT_MOC_LITERAL(15, 147, 10), // "createNode"
QT_MOC_LITERAL(16, 158, 1), // "x"
QT_MOC_LITERAL(17, 160, 1), // "y"
QT_MOC_LITERAL(18, 162, 10), // "createEdge"
QT_MOC_LITERAL(19, 173, 25), // "GraphTheory::NodeWrapper*"
QT_MOC_LITERAL(20, 199, 4), // "from"
QT_MOC_LITERAL(21, 204, 2), // "to"
QT_MOC_LITERAL(22, 207, 6), // "remove"
QT_MOC_LITERAL(23, 214, 25) // "GraphTheory::EdgeWrapper*"

    },
    "GraphTheory::DocumentWrapper\0message\0"
    "\0messageString\0Kernel::MessageType\0"
    "type\0registerWrapper\0NodePtr\0node\0"
    "EdgePtr\0edge\0QScriptValue\0id\0nodes\0"
    "edges\0createNode\0x\0y\0createEdge\0"
    "GraphTheory::NodeWrapper*\0from\0to\0"
    "remove\0GraphTheory::EdgeWrapper*"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_GraphTheory__DocumentWrapper[] = {

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

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

 // slots: name, argc, parameters, tag, flags
       6,    1,   79,    2, 0x08 /* Private */,
       6,    1,   82,    2, 0x08 /* Private */,

 // methods: name, argc, parameters, tag, flags
       8,    1,   85,    2, 0x02 /* Public */,
      13,    0,   88,    2, 0x02 /* Public */,
      13,    1,   89,    2, 0x02 /* Public */,
      14,    0,   92,    2, 0x02 /* Public */,
      14,    1,   93,    2, 0x02 /* Public */,
      15,    2,   96,    2, 0x02 /* Public */,
      18,    2,  101,    2, 0x02 /* Public */,
      22,    1,  106,    2, 0x02 /* Public */,
      22,    1,  109,    2, 0x02 /* Public */,

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

 // slots: parameters
    QMetaType::Void, 0x80000000 | 7,    8,
    QMetaType::Void, 0x80000000 | 9,   10,

 // methods: parameters
    0x80000000 | 11, QMetaType::Int,   12,
    0x80000000 | 11,
    0x80000000 | 11, QMetaType::Int,    5,
    0x80000000 | 11,
    0x80000000 | 11, QMetaType::Int,    5,
    0x80000000 | 11, QMetaType::Int, QMetaType::Int,   16,   17,
    0x80000000 | 11, 0x80000000 | 19, 0x80000000 | 19,   20,   21,
    QMetaType::Void, 0x80000000 | 19,    8,
    QMetaType::Void, 0x80000000 | 23,   10,

       0        // eod
};

void GraphTheory::DocumentWrapper::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        DocumentWrapper *_t = static_cast<DocumentWrapper *>(_o);
        switch (_id) {
        case 0: _t->message((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< Kernel::MessageType(*)>(_a[2]))); break;
        case 1: _t->registerWrapper((*reinterpret_cast< NodePtr(*)>(_a[1]))); break;
        case 2: _t->registerWrapper((*reinterpret_cast< EdgePtr(*)>(_a[1]))); break;
        case 3: { QScriptValue _r = _t->node((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QScriptValue*>(_a[0]) = _r; }  break;
        case 4: { QScriptValue _r = _t->nodes();
            if (_a[0]) *reinterpret_cast< QScriptValue*>(_a[0]) = _r; }  break;
        case 5: { QScriptValue _r = _t->nodes((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QScriptValue*>(_a[0]) = _r; }  break;
        case 6: { QScriptValue _r = _t->edges();
            if (_a[0]) *reinterpret_cast< QScriptValue*>(_a[0]) = _r; }  break;
        case 7: { QScriptValue _r = _t->edges((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QScriptValue*>(_a[0]) = _r; }  break;
        case 8: { QScriptValue _r = _t->createNode((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< QScriptValue*>(_a[0]) = _r; }  break;
        case 9: { QScriptValue _r = _t->createEdge((*reinterpret_cast< GraphTheory::NodeWrapper*(*)>(_a[1])),(*reinterpret_cast< GraphTheory::NodeWrapper*(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< QScriptValue*>(_a[0]) = _r; }  break;
        case 10: _t->remove((*reinterpret_cast< GraphTheory::NodeWrapper*(*)>(_a[1]))); break;
        case 11: _t->remove((*reinterpret_cast< GraphTheory::EdgeWrapper*(*)>(_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 (DocumentWrapper::*_t)(const QString & , Kernel::MessageType ) const;
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&DocumentWrapper::message)) {
                *result = 0;
            }
        }
    }
}

const QMetaObject GraphTheory::DocumentWrapper::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_GraphTheory__DocumentWrapper.data,
      qt_meta_data_GraphTheory__DocumentWrapper,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *GraphTheory::DocumentWrapper::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_GraphTheory__DocumentWrapper.stringdata))
        return static_cast<void*>(const_cast< DocumentWrapper*>(this));
    return QObject::qt_metacast(_clname);
}

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

// SIGNAL 0
void GraphTheory::DocumentWrapper::message(const QString & _t1, Kernel::MessageType _t2)const
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(const_cast< GraphTheory::DocumentWrapper *>(this), &staticMetaObject, 0, _a);
}
QT_END_MOC_NAMESPACE
