/****************************************************************************
** Meta object code from reading C++ file 'skgerror.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/skrooge-2.12.0/skgbasemodeler/skgerror.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'skgerror.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_SKGError_t {
    QByteArrayData data[16];
    char stringdata0[137];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_SKGError_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_SKGError_t qt_meta_stringdata_SKGError = {
    {
QT_MOC_LITERAL(0, 0, 8), // "SKGError"
QT_MOC_LITERAL(1, 9, 13), // "setReturnCode"
QT_MOC_LITERAL(2, 23, 0), // ""
QT_MOC_LITERAL(3, 24, 11), // "iReturnCode"
QT_MOC_LITERAL(4, 36, 10), // "setMessage"
QT_MOC_LITERAL(5, 47, 8), // "iMessage"
QT_MOC_LITERAL(6, 56, 9), // "setAction"
QT_MOC_LITERAL(7, 66, 7), // "iAction"
QT_MOC_LITERAL(8, 74, 8), // "addError"
QT_MOC_LITERAL(9, 83, 3), // "iRc"
QT_MOC_LITERAL(10, 87, 6), // "iError"
QT_MOC_LITERAL(11, 94, 10), // "returnCode"
QT_MOC_LITERAL(12, 105, 7), // "message"
QT_MOC_LITERAL(13, 113, 6), // "action"
QT_MOC_LITERAL(14, 120, 9), // "succeeded"
QT_MOC_LITERAL(15, 130, 6) // "failed"

    },
    "SKGError\0setReturnCode\0\0iReturnCode\0"
    "setMessage\0iMessage\0setAction\0iAction\0"
    "addError\0iRc\0iError\0returnCode\0message\0"
    "action\0succeeded\0failed"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_SKGError[] = {

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

 // slots: name, argc, parameters, tag, flags
       1,    1,   44,    2, 0x0a /* Public */,
       4,    1,   47,    2, 0x0a /* Public */,
       6,    1,   50,    2, 0x0a /* Public */,
       8,    3,   53,    2, 0x0a /* Public */,
       8,    2,   60,    2, 0x2a /* Public | MethodCloned */,
       8,    1,   65,    2, 0x0a /* Public */,

 // slots: parameters
    QMetaType::Void, QMetaType::Int,    3,
    QMetaType::Void, QMetaType::QString,    5,
    QMetaType::Void, QMetaType::QString,    7,
    QMetaType::Void, QMetaType::Int, QMetaType::QString, QMetaType::QString,    9,    5,    7,
    QMetaType::Void, QMetaType::Int, QMetaType::QString,    9,    5,
    QMetaType::Void, 0x80000000 | 0,   10,

 // properties: name, type, flags
      11, QMetaType::Int, 0x00095103,
      12, QMetaType::QString, 0x00095103,
      13, QMetaType::QString, 0x00095103,
      14, QMetaType::Bool, 0x00095001,
      15, QMetaType::Bool, 0x00095001,

       0        // eod
};

void SKGError::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        SKGError *_t = static_cast<SKGError *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->setReturnCode((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 1: _t->setMessage((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 2: _t->setAction((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 3: _t->addError((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3]))); break;
        case 4: _t->addError((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 5: _t->addError((*reinterpret_cast< const SKGError(*)>(_a[1]))); break;
        default: ;
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        SKGError *_t = static_cast<SKGError *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< int*>(_v) = _t->getReturnCode(); break;
        case 1: *reinterpret_cast< QString*>(_v) = _t->getMessage(); break;
        case 2: *reinterpret_cast< QString*>(_v) = _t->getAction(); break;
        case 3: *reinterpret_cast< bool*>(_v) = _t->isSucceeded(); break;
        case 4: *reinterpret_cast< bool*>(_v) = _t->isFailed(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        SKGError *_t = static_cast<SKGError *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setReturnCode(*reinterpret_cast< int*>(_v)); break;
        case 1: _t->setMessage(*reinterpret_cast< QString*>(_v)); break;
        case 2: _t->setAction(*reinterpret_cast< QString*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject SKGError::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_SKGError.data,
      qt_meta_data_SKGError,  qt_static_metacall, nullptr, nullptr}
};


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

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

int SKGError::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 < 6)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 6;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 6)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 6;
    }
#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 -= 5;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 5;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
