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

#include "../../src/analitza-17.08.3/declarative/analitzawrapper.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#include <QtCore/QSharedPointer>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'analitzawrapper.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.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
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_ExpressionWrapper_t {
    QByteArrayData data[6];
    char stringdata0[53];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_ExpressionWrapper_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_ExpressionWrapper_t qt_meta_stringdata_ExpressionWrapper = {
    {
QT_MOC_LITERAL(0, 0, 17), // "ExpressionWrapper"
QT_MOC_LITERAL(1, 18, 5), // "value"
QT_MOC_LITERAL(2, 24, 0), // ""
QT_MOC_LITERAL(3, 25, 6), // "errors"
QT_MOC_LITERAL(4, 32, 10), // "expression"
QT_MOC_LITERAL(5, 43, 9) // "isCorrect"

    },
    "ExpressionWrapper\0value\0\0errors\0"
    "expression\0isCorrect"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_ExpressionWrapper[] = {

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

 // slots: name, argc, parameters, tag, flags
       1,    0,   24,    2, 0x0a /* Public */,
       3,    0,   25,    2, 0x0a /* Public */,

 // slots: parameters
    QMetaType::QVariant,
    QMetaType::QStringList,

 // properties: name, type, flags
       4, QMetaType::QString, 0x00095401,
       5, QMetaType::Bool, 0x00095401,

       0        // eod
};

void ExpressionWrapper::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        ExpressionWrapper *_t = static_cast<ExpressionWrapper *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: { QVariant _r = _t->value();
            if (_a[0]) *reinterpret_cast< QVariant*>(_a[0]) = std::move(_r); }  break;
        case 1: { QStringList _r = _t->errors();
            if (_a[0]) *reinterpret_cast< QStringList*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        ExpressionWrapper *_t = static_cast<ExpressionWrapper *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QString*>(_v) = _t->toString(); break;
        case 1: *reinterpret_cast< bool*>(_v) = _t->isCorrect(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject ExpressionWrapper::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_ExpressionWrapper.data,
      qt_meta_data_ExpressionWrapper,  qt_static_metacall, nullptr, nullptr}
};


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

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

int ExpressionWrapper::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 < 2)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 2;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 2)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 2;
    }
#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 -= 2;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 2;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}
struct qt_meta_stringdata_AnalitzaWrapper_t {
    QByteArrayData data[19];
    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_AnalitzaWrapper_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_AnalitzaWrapper_t qt_meta_stringdata_AnalitzaWrapper = {
    {
QT_MOC_LITERAL(0, 0, 15), // "AnalitzaWrapper"
QT_MOC_LITERAL(1, 16, 18), // "isCalculateChanged"
QT_MOC_LITERAL(2, 35, 0), // ""
QT_MOC_LITERAL(3, 36, 11), // "isCalculate"
QT_MOC_LITERAL(4, 48, 8), // "simplify"
QT_MOC_LITERAL(5, 57, 10), // "expression"
QT_MOC_LITERAL(6, 68, 7), // "execute"
QT_MOC_LITERAL(7, 76, 11), // "executeFunc"
QT_MOC_LITERAL(8, 88, 4), // "name"
QT_MOC_LITERAL(9, 93, 4), // "args"
QT_MOC_LITERAL(10, 98, 18), // "unusedVariableName"
QT_MOC_LITERAL(11, 117, 20), // "dependenciesToLambda"
QT_MOC_LITERAL(12, 138, 14), // "insertVariable"
QT_MOC_LITERAL(13, 153, 14), // "removeVariable"
QT_MOC_LITERAL(14, 168, 9), // "calculate"
QT_MOC_LITERAL(15, 178, 9), // "isCorrect"
QT_MOC_LITERAL(16, 188, 6), // "errors"
QT_MOC_LITERAL(17, 195, 9), // "variables"
QT_MOC_LITERAL(18, 205, 35) // "QSharedPointer<Analitza::Vari..."

    },
    "AnalitzaWrapper\0isCalculateChanged\0\0"
    "isCalculate\0simplify\0expression\0execute\0"
    "executeFunc\0name\0args\0unusedVariableName\0"
    "dependenciesToLambda\0insertVariable\0"
    "removeVariable\0calculate\0isCorrect\0"
    "errors\0variables\0QSharedPointer<Analitza::Variables>"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_AnalitzaWrapper[] = {

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

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

 // methods: name, argc, parameters, tag, flags
       4,    1,   57,    2, 0x42 /* Public | isScriptable */,
       6,    1,   60,    2, 0x42 /* Public | isScriptable */,
       7,    2,   63,    2, 0x42 /* Public | isScriptable */,
      10,    0,   68,    2, 0x42 /* Public | isScriptable */,
      11,    1,   69,    2, 0x42 /* Public | isScriptable */,
      12,    2,   72,    2, 0x42 /* Public | isScriptable */,
      13,    1,   77,    2, 0x42 /* Public | isScriptable */,

 // signals: parameters
    QMetaType::Void, QMetaType::Bool,    3,

 // methods: parameters
    QMetaType::QVariant, QMetaType::QString,    5,
    QMetaType::QVariant, QMetaType::QString,    5,
    QMetaType::QVariant, QMetaType::QString, QMetaType::QVariantList,    8,    9,
    QMetaType::QString,
    QMetaType::QString, QMetaType::QString,    5,
    QMetaType::Void, QMetaType::QString, QMetaType::QString,    8,    5,
    QMetaType::Void, QMetaType::QString,    8,

 // properties: name, type, flags
      14, QMetaType::Bool, 0x00495103,
      15, QMetaType::Bool, 0x00095001,
      16, QMetaType::QStringList, 0x00095001,
      17, 0x80000000 | 18, 0x0009510b,

 // properties: notify_signal_id
       0,
       0,
       0,
       0,

       0        // eod
};

void AnalitzaWrapper::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        AnalitzaWrapper *_t = static_cast<AnalitzaWrapper *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->isCalculateChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 1: { QVariant _r = _t->simplify((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QVariant*>(_a[0]) = std::move(_r); }  break;
        case 2: { QVariant _r = _t->execute((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QVariant*>(_a[0]) = std::move(_r); }  break;
        case 3: { QVariant _r = _t->executeFunc((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QVariantList(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< QVariant*>(_a[0]) = std::move(_r); }  break;
        case 4: { QString _r = _t->unusedVariableName();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); }  break;
        case 5: { QString _r = _t->dependenciesToLambda((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); }  break;
        case 6: _t->insertVariable((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 7: _t->removeVariable((*reinterpret_cast< const QString(*)>(_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 (AnalitzaWrapper::*_t)(bool );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&AnalitzaWrapper::isCalculateChanged)) {
                *result = 0;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        AnalitzaWrapper *_t = static_cast<AnalitzaWrapper *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< bool*>(_v) = _t->isCalculate(); break;
        case 1: *reinterpret_cast< bool*>(_v) = _t->isCorrect(); break;
        case 2: *reinterpret_cast< QStringList*>(_v) = _t->errors(); break;
        case 3: *reinterpret_cast< QSharedPointer<Analitza::Variables>*>(_v) = _t->variables(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        AnalitzaWrapper *_t = static_cast<AnalitzaWrapper *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setCalculate(*reinterpret_cast< bool*>(_v)); break;
        case 3: _t->setVariables(*reinterpret_cast< QSharedPointer<Analitza::Variables>*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject AnalitzaWrapper::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_AnalitzaWrapper.data,
      qt_meta_data_AnalitzaWrapper,  qt_static_metacall, nullptr, nullptr}
};


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

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

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

// SIGNAL 0
void AnalitzaWrapper::isCalculateChanged(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
