/****************************************************************************
** Meta object code from reading C++ file 'StatsPlugin.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/kactivities-5.12.0/src/service/plugins/sqlite/StatsPlugin.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'StatsPlugin.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_StatsPlugin_t {
    QByteArrayData data[39];
    char stringdata[500];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_StatsPlugin_t, stringdata) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_StatsPlugin_t qt_meta_stringdata_StatsPlugin = {
    {
QT_MOC_LITERAL(0, 0, 11), // "StatsPlugin"
QT_MOC_LITERAL(1, 12, 20), // "ResourceScoreUpdated"
QT_MOC_LITERAL(2, 33, 0), // ""
QT_MOC_LITERAL(3, 34, 8), // "activity"
QT_MOC_LITERAL(4, 43, 6), // "client"
QT_MOC_LITERAL(5, 50, 8), // "resource"
QT_MOC_LITERAL(6, 59, 5), // "score"
QT_MOC_LITERAL(7, 65, 10), // "lastUpdate"
QT_MOC_LITERAL(8, 76, 11), // "firstUpdate"
QT_MOC_LITERAL(9, 88, 20), // "ResourceScoreDeleted"
QT_MOC_LITERAL(10, 109, 18), // "RecentStatsDeleted"
QT_MOC_LITERAL(11, 128, 5), // "count"
QT_MOC_LITERAL(12, 134, 4), // "what"
QT_MOC_LITERAL(13, 139, 19), // "EarlierStatsDeleted"
QT_MOC_LITERAL(14, 159, 6), // "months"
QT_MOC_LITERAL(15, 166, 17), // "DeleteRecentStats"
QT_MOC_LITERAL(16, 184, 18), // "DeleteEarlierStats"
QT_MOC_LITERAL(17, 203, 22), // "DeleteStatsForResource"
QT_MOC_LITERAL(18, 226, 9), // "addEvents"
QT_MOC_LITERAL(19, 236, 9), // "EventList"
QT_MOC_LITERAL(20, 246, 6), // "events"
QT_MOC_LITERAL(21, 253, 17), // "loadConfiguration"
QT_MOC_LITERAL(22, 271, 17), // "openResourceEvent"
QT_MOC_LITERAL(23, 289, 12), // "usedActivity"
QT_MOC_LITERAL(24, 302, 15), // "initiatingAgent"
QT_MOC_LITERAL(25, 318, 17), // "targettedResource"
QT_MOC_LITERAL(26, 336, 5), // "start"
QT_MOC_LITERAL(27, 342, 3), // "end"
QT_MOC_LITERAL(28, 346, 18), // "closeResourceEvent"
QT_MOC_LITERAL(29, 365, 17), // "saveResourceTitle"
QT_MOC_LITERAL(30, 383, 3), // "uri"
QT_MOC_LITERAL(31, 387, 5), // "title"
QT_MOC_LITERAL(32, 393, 9), // "autoTitle"
QT_MOC_LITERAL(33, 403, 20), // "saveResourceMimetype"
QT_MOC_LITERAL(34, 424, 8), // "mimetype"
QT_MOC_LITERAL(35, 433, 12), // "autoMimetype"
QT_MOC_LITERAL(36, 446, 18), // "insertResourceInfo"
QT_MOC_LITERAL(37, 465, 18), // "detectResourceInfo"
QT_MOC_LITERAL(38, 484, 15) // "deleteOldEvents"

    },
    "StatsPlugin\0ResourceScoreUpdated\0\0"
    "activity\0client\0resource\0score\0"
    "lastUpdate\0firstUpdate\0ResourceScoreDeleted\0"
    "RecentStatsDeleted\0count\0what\0"
    "EarlierStatsDeleted\0months\0DeleteRecentStats\0"
    "DeleteEarlierStats\0DeleteStatsForResource\0"
    "addEvents\0EventList\0events\0loadConfiguration\0"
    "openResourceEvent\0usedActivity\0"
    "initiatingAgent\0targettedResource\0"
    "start\0end\0closeResourceEvent\0"
    "saveResourceTitle\0uri\0title\0autoTitle\0"
    "saveResourceMimetype\0mimetype\0"
    "autoMimetype\0insertResourceInfo\0"
    "detectResourceInfo\0deleteOldEvents"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_StatsPlugin[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    6,  109,    2, 0x06 /* Public */,
       9,    3,  122,    2, 0x06 /* Public */,
      10,    3,  129,    2, 0x06 /* Public */,
      13,    2,  136,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      15,    3,  141,    2, 0x0a /* Public */,
      16,    2,  148,    2, 0x0a /* Public */,
      17,    3,  153,    2, 0x0a /* Public */,
      18,    1,  160,    2, 0x08 /* Private */,
      21,    0,  163,    2, 0x08 /* Private */,
      22,    5,  164,    2, 0x08 /* Private */,
      22,    4,  175,    2, 0x28 /* Private | MethodCloned */,
      28,    4,  184,    2, 0x08 /* Private */,
      29,    3,  193,    2, 0x08 /* Private */,
      29,    2,  200,    2, 0x28 /* Private | MethodCloned */,
      33,    3,  205,    2, 0x08 /* Private */,
      33,    2,  212,    2, 0x28 /* Private | MethodCloned */,
      36,    1,  217,    2, 0x08 /* Private */,
      37,    1,  220,    2, 0x08 /* Private */,
      38,    0,  223,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::QString, QMetaType::Double, QMetaType::UInt, QMetaType::UInt,    3,    4,    5,    6,    7,    8,
    QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::QString,    3,    4,    5,
    QMetaType::Void, QMetaType::QString, QMetaType::Int, QMetaType::QString,    3,   11,   12,
    QMetaType::Void, QMetaType::QString, QMetaType::Int,    3,   14,

 // slots: parameters
    QMetaType::Void, QMetaType::QString, QMetaType::Int, QMetaType::QString,    3,   11,   12,
    QMetaType::Void, QMetaType::QString, QMetaType::Int,    3,   14,
    QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::QString,    3,    4,    5,
    QMetaType::Void, 0x80000000 | 19,   20,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::QString, QMetaType::QDateTime, QMetaType::QDateTime,   23,   24,   25,   26,   27,
    QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::QString, QMetaType::QDateTime,   23,   24,   25,   26,
    QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::QString, QMetaType::QDateTime,   23,   24,   25,   27,
    QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::Bool,   30,   31,   32,
    QMetaType::Void, QMetaType::QString, QMetaType::QString,   30,   31,
    QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::Bool,   30,   34,   35,
    QMetaType::Void, QMetaType::QString, QMetaType::QString,   30,   34,
    QMetaType::Bool, QMetaType::QString,   30,
    QMetaType::Void, QMetaType::QString,   30,
    QMetaType::Void,

       0        // eod
};

void StatsPlugin::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        StatsPlugin *_t = static_cast<StatsPlugin *>(_o);
        switch (_id) {
        case 0: _t->ResourceScoreUpdated((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3])),(*reinterpret_cast< double(*)>(_a[4])),(*reinterpret_cast< uint(*)>(_a[5])),(*reinterpret_cast< uint(*)>(_a[6]))); break;
        case 1: _t->ResourceScoreDeleted((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3]))); break;
        case 2: _t->RecentStatsDeleted((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3]))); break;
        case 3: _t->EarlierStatsDeleted((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 4: _t->DeleteRecentStats((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3]))); break;
        case 5: _t->DeleteEarlierStats((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 6: _t->DeleteStatsForResource((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3]))); break;
        case 7: _t->addEvents((*reinterpret_cast< const EventList(*)>(_a[1]))); break;
        case 8: _t->loadConfiguration(); break;
        case 9: _t->openResourceEvent((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3])),(*reinterpret_cast< const QDateTime(*)>(_a[4])),(*reinterpret_cast< const QDateTime(*)>(_a[5]))); break;
        case 10: _t->openResourceEvent((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3])),(*reinterpret_cast< const QDateTime(*)>(_a[4]))); break;
        case 11: _t->closeResourceEvent((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3])),(*reinterpret_cast< const QDateTime(*)>(_a[4]))); break;
        case 12: _t->saveResourceTitle((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< bool(*)>(_a[3]))); break;
        case 13: _t->saveResourceTitle((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 14: _t->saveResourceMimetype((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< bool(*)>(_a[3]))); break;
        case 15: _t->saveResourceMimetype((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 16: { bool _r = _t->insertResourceInfo((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; }  break;
        case 17: _t->detectResourceInfo((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 18: _t->deleteOldEvents(); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 7:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< EventList >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (StatsPlugin::*_t)(const QString & , const QString & , const QString & , double , uint , uint );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&StatsPlugin::ResourceScoreUpdated)) {
                *result = 0;
            }
        }
        {
            typedef void (StatsPlugin::*_t)(const QString & , const QString & , const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&StatsPlugin::ResourceScoreDeleted)) {
                *result = 1;
            }
        }
        {
            typedef void (StatsPlugin::*_t)(const QString & , int , const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&StatsPlugin::RecentStatsDeleted)) {
                *result = 2;
            }
        }
        {
            typedef void (StatsPlugin::*_t)(const QString & , int );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&StatsPlugin::EarlierStatsDeleted)) {
                *result = 3;
            }
        }
    }
}

const QMetaObject StatsPlugin::staticMetaObject = {
    { &Plugin::staticMetaObject, qt_meta_stringdata_StatsPlugin.data,
      qt_meta_data_StatsPlugin,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *StatsPlugin::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_StatsPlugin.stringdata))
        return static_cast<void*>(const_cast< StatsPlugin*>(this));
    return Plugin::qt_metacast(_clname);
}

int StatsPlugin::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Plugin::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 19)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 19;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 19)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 19;
    }
    return _id;
}

// SIGNAL 0
void StatsPlugin::ResourceScoreUpdated(const QString & _t1, const QString & _t2, const QString & _t3, double _t4, uint _t5, uint _t6)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)), const_cast<void*>(reinterpret_cast<const void*>(&_t4)), const_cast<void*>(reinterpret_cast<const void*>(&_t5)), const_cast<void*>(reinterpret_cast<const void*>(&_t6)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void StatsPlugin::ResourceScoreDeleted(const QString & _t1, const QString & _t2, const QString & _t3)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void StatsPlugin::RecentStatsDeleted(const QString & _t1, int _t2, const QString & _t3)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void StatsPlugin::EarlierStatsDeleted(const QString & _t1, int _t2)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}
QT_END_MOC_NAMESPACE
