/****************************************************************************
** Meta object code from reading C++ file 'edgewrapper.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.2)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../src/rocs-17.04.3/libgraphtheory/kernel/edgewrapper.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'edgewrapper.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.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__EdgeWrapper_t {
    QByteArrayData data[14];
    char stringdata0[171];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_GraphTheory__EdgeWrapper_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_GraphTheory__EdgeWrapper_t qt_meta_stringdata_GraphTheory__EdgeWrapper = {
    {
QT_MOC_LITERAL(0, 0, 24), // "GraphTheory::EdgeWrapper"
QT_MOC_LITERAL(1, 25, 7), // "message"
QT_MOC_LITERAL(2, 33, 0), // ""
QT_MOC_LITERAL(3, 34, 13), // "messageString"
QT_MOC_LITERAL(4, 48, 19), // "Kernel::MessageType"
QT_MOC_LITERAL(5, 68, 4), // "type"
QT_MOC_LITERAL(6, 73, 12), // "colorChanged"
QT_MOC_LITERAL(7, 86, 5), // "color"
QT_MOC_LITERAL(8, 92, 11), // "typeChanged"
QT_MOC_LITERAL(9, 104, 23), // "updateDynamicProperties"
QT_MOC_LITERAL(10, 128, 4), // "from"
QT_MOC_LITERAL(11, 133, 25), // "GraphTheory::NodeWrapper*"
QT_MOC_LITERAL(12, 159, 2), // "to"
QT_MOC_LITERAL(13, 162, 8) // "directed"

    },
    "GraphTheory::EdgeWrapper\0message\0\0"
    "messageString\0Kernel::MessageType\0"
    "type\0colorChanged\0color\0typeChanged\0"
    "updateDynamicProperties\0from\0"
    "GraphTheory::NodeWrapper*\0to\0directed"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_GraphTheory__EdgeWrapper[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    2,   49,    2, 0x06 /* Public */,
       6,    1,   54,    2, 0x06 /* Public */,
       8,    0,   57,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       9,    0,   58,    2, 0x0a /* Public */,

 // methods: name, argc, parameters, tag, flags
      10,    0,   59,    2, 0x02 /* Public */,
      12,    0,   60,    2, 0x02 /* Public */,
      13,    0,   61,    2, 0x02 /* Public */,

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

 // slots: parameters
    QMetaType::Void,

 // methods: parameters
    0x80000000 | 11,
    0x80000000 | 11,
    QMetaType::Bool,

 // properties: name, type, flags
       5, QMetaType::Int, 0x00495103,

 // properties: notify_signal_id
       2,

       0        // eod
};

void GraphTheory::EdgeWrapper::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        EdgeWrapper *_t = static_cast<EdgeWrapper *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->message((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< Kernel::MessageType(*)>(_a[2]))); break;
        case 1: _t->colorChanged((*reinterpret_cast< const QColor(*)>(_a[1]))); break;
        case 2: _t->typeChanged(); break;
        case 3: _t->updateDynamicProperties(); break;
        case 4: { GraphTheory::NodeWrapper* _r = _t->from();
            if (_a[0]) *reinterpret_cast< GraphTheory::NodeWrapper**>(_a[0]) = _r; }  break;
        case 5: { GraphTheory::NodeWrapper* _r = _t->to();
            if (_a[0]) *reinterpret_cast< GraphTheory::NodeWrapper**>(_a[0]) = _r; }  break;
        case 6: { bool _r = _t->directed();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; }  break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (EdgeWrapper::*_t)(const QString & , Kernel::MessageType ) const;
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&EdgeWrapper::message)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (EdgeWrapper::*_t)(const QColor & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&EdgeWrapper::colorChanged)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (EdgeWrapper::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&EdgeWrapper::typeChanged)) {
                *result = 2;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        EdgeWrapper *_t = static_cast<EdgeWrapper *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< int*>(_v) = _t->type(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        EdgeWrapper *_t = static_cast<EdgeWrapper *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setType(*reinterpret_cast< int*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject GraphTheory::EdgeWrapper::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_GraphTheory__EdgeWrapper.data,
      qt_meta_data_GraphTheory__EdgeWrapper,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

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

int GraphTheory::EdgeWrapper::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;
    }
#ifndef QT_NO_PROPERTIES
   else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 1;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void GraphTheory::EdgeWrapper::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::EdgeWrapper *>(this), &staticMetaObject, 0, _a);
}

// SIGNAL 1
void GraphTheory::EdgeWrapper::colorChanged(const QColor & _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void GraphTheory::EdgeWrapper::typeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, Q_NULLPTR);
}
QT_END_MOC_NAMESPACE
