/****************************************************************************
** Meta object code from reading C++ file 'krscriptfunctions.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/kexi-3.0.2/src/plugins/reports/krscriptfunctions.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'krscriptfunctions.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_KRScriptFunctions_t {
    QByteArrayData data[10];
    char stringdata0[70];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KRScriptFunctions_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KRScriptFunctions_t qt_meta_stringdata_KRScriptFunctions = {
    {
QT_MOC_LITERAL(0, 0, 17), // "KRScriptFunctions"
QT_MOC_LITERAL(1, 18, 12), // "setGroupData"
QT_MOC_LITERAL(2, 31, 0), // ""
QT_MOC_LITERAL(3, 32, 9), // "groupData"
QT_MOC_LITERAL(4, 42, 3), // "sum"
QT_MOC_LITERAL(5, 46, 3), // "avg"
QT_MOC_LITERAL(6, 50, 3), // "min"
QT_MOC_LITERAL(7, 54, 3), // "max"
QT_MOC_LITERAL(8, 58, 5), // "count"
QT_MOC_LITERAL(9, 64, 5) // "value"

    },
    "KRScriptFunctions\0setGroupData\0\0"
    "groupData\0sum\0avg\0min\0max\0count\0value"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KRScriptFunctions[] = {

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

 // slots: name, argc, parameters, tag, flags
       1,    1,   49,    2, 0x0a /* Public */,
       4,    1,   52,    2, 0x0a /* Public */,
       5,    1,   55,    2, 0x0a /* Public */,
       6,    1,   58,    2, 0x0a /* Public */,
       7,    1,   61,    2, 0x0a /* Public */,
       8,    1,   64,    2, 0x0a /* Public */,
       9,    1,   67,    2, 0x0a /* Public */,

 // slots: parameters
    QMetaType::Void, QMetaType::QVariantMap,    3,
    QMetaType::QReal, QMetaType::QString,    2,
    QMetaType::QReal, QMetaType::QString,    2,
    QMetaType::QReal, QMetaType::QString,    2,
    QMetaType::QReal, QMetaType::QString,    2,
    QMetaType::QReal, QMetaType::QString,    2,
    QMetaType::QVariant, QMetaType::QString,    2,

       0        // eod
};

void KRScriptFunctions::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        KRScriptFunctions *_t = static_cast<KRScriptFunctions *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->setGroupData((*reinterpret_cast< const QMap<QString,QVariant>(*)>(_a[1]))); break;
        case 1: { qreal _r = _t->sum((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< qreal*>(_a[0]) = std::move(_r); }  break;
        case 2: { qreal _r = _t->avg((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< qreal*>(_a[0]) = std::move(_r); }  break;
        case 3: { qreal _r = _t->min((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< qreal*>(_a[0]) = std::move(_r); }  break;
        case 4: { qreal _r = _t->max((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< qreal*>(_a[0]) = std::move(_r); }  break;
        case 5: { qreal _r = _t->count((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< qreal*>(_a[0]) = std::move(_r); }  break;
        case 6: { QVariant _r = _t->value((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QVariant*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
}

const QMetaObject KRScriptFunctions::staticMetaObject = {
    { &KReportGroupTracker::staticMetaObject, qt_meta_stringdata_KRScriptFunctions.data,
      qt_meta_data_KRScriptFunctions,  qt_static_metacall, nullptr, nullptr}
};


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

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

int KRScriptFunctions::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = KReportGroupTracker::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;
    }
    return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
