/****************************************************************************
** Meta object code from reading C++ file 'sourcesmodel.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/milou-5.8.8/lib/sourcesmodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#include <QtCore/QList>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'sourcesmodel.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_Milou__SourcesModel_t {
    QByteArrayData data[31];
    char stringdata0[348];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Milou__SourcesModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Milou__SourcesModel_t qt_meta_stringdata_Milou__SourcesModel = {
    {
QT_MOC_LITERAL(0, 0, 19), // "Milou::SourcesModel"
QT_MOC_LITERAL(1, 20, 16), // "updateSearchTerm"
QT_MOC_LITERAL(2, 37, 0), // ""
QT_MOC_LITERAL(3, 38, 4), // "text"
QT_MOC_LITERAL(4, 43, 3), // "pos"
QT_MOC_LITERAL(5, 47, 13), // "runnerChanged"
QT_MOC_LITERAL(6, 61, 19), // "reloadConfiguration"
QT_MOC_LITERAL(7, 81, 14), // "setQueryString"
QT_MOC_LITERAL(8, 96, 3), // "str"
QT_MOC_LITERAL(9, 100, 13), // "setQueryLimit"
QT_MOC_LITERAL(10, 114, 5), // "limit"
QT_MOC_LITERAL(11, 120, 5), // "clear"
QT_MOC_LITERAL(12, 126, 3), // "run"
QT_MOC_LITERAL(13, 130, 5), // "index"
QT_MOC_LITERAL(14, 136, 9), // "runAction"
QT_MOC_LITERAL(15, 146, 11), // "actionIndex"
QT_MOC_LITERAL(16, 158, 7), // "getType"
QT_MOC_LITERAL(17, 166, 11), // "getMimeData"
QT_MOC_LITERAL(18, 178, 10), // "QMimeData*"
QT_MOC_LITERAL(19, 189, 18), // "slotMatchesChanged"
QT_MOC_LITERAL(20, 208, 25), // "QList<Plasma::QueryMatch>"
QT_MOC_LITERAL(21, 234, 4), // "list"
QT_MOC_LITERAL(22, 239, 14), // "slotMatchAdded"
QT_MOC_LITERAL(23, 254, 18), // "Plasma::QueryMatch"
QT_MOC_LITERAL(24, 273, 5), // "match"
QT_MOC_LITERAL(25, 279, 16), // "slotResetTimeout"
QT_MOC_LITERAL(26, 296, 11), // "queryString"
QT_MOC_LITERAL(27, 308, 10), // "queryLimit"
QT_MOC_LITERAL(28, 319, 6), // "runner"
QT_MOC_LITERAL(29, 326, 10), // "runnerName"
QT_MOC_LITERAL(30, 337, 10) // "runnerIcon"

    },
    "Milou::SourcesModel\0updateSearchTerm\0"
    "\0text\0pos\0runnerChanged\0reloadConfiguration\0"
    "setQueryString\0str\0setQueryLimit\0limit\0"
    "clear\0run\0index\0runAction\0actionIndex\0"
    "getType\0getMimeData\0QMimeData*\0"
    "slotMatchesChanged\0QList<Plasma::QueryMatch>\0"
    "list\0slotMatchAdded\0Plasma::QueryMatch\0"
    "match\0slotResetTimeout\0queryString\0"
    "queryLimit\0runner\0runnerName\0runnerIcon"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Milou__SourcesModel[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    2,   79,    2, 0x06 /* Public */,
       5,    0,   84,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       6,    0,   85,    2, 0x0a /* Public */,
       7,    1,   86,    2, 0x0a /* Public */,
       9,    1,   89,    2, 0x0a /* Public */,
      11,    0,   92,    2, 0x0a /* Public */,
      12,    1,   93,    2, 0x0a /* Public */,
      14,    2,   96,    2, 0x0a /* Public */,
      16,    1,  101,    2, 0x0a /* Public */,
      17,    1,  104,    2, 0x0a /* Public */,
      19,    1,  107,    2, 0x08 /* Private */,
      22,    1,  110,    2, 0x08 /* Private */,
      25,    0,  113,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, QMetaType::QString, QMetaType::Int,    3,    4,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,    8,
    QMetaType::Void, QMetaType::Int,   10,
    QMetaType::Void,
    QMetaType::Bool, QMetaType::Int,   13,
    QMetaType::Bool, QMetaType::Int, QMetaType::Int,   13,   15,
    QMetaType::QString, QMetaType::Int,   13,
    0x80000000 | 18, QMetaType::Int,   13,
    QMetaType::Void, 0x80000000 | 20,   21,
    QMetaType::Void, 0x80000000 | 23,   24,
    QMetaType::Void,

 // properties: name, type, flags
      26, QMetaType::QString, 0x00095103,
      27, QMetaType::Int, 0x00095103,
      28, QMetaType::QString, 0x00495103,
      29, QMetaType::QString, 0x00495001,
      30, QMetaType::QIcon, 0x00495001,

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

       0        // eod
};

void Milou::SourcesModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        SourcesModel *_t = static_cast<SourcesModel *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->updateSearchTerm((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 1: _t->runnerChanged(); break;
        case 2: _t->reloadConfiguration(); break;
        case 3: _t->setQueryString((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 4: _t->setQueryLimit((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 5: _t->clear(); break;
        case 6: { bool _r = _t->run((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 7: { bool _r = _t->runAction((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 8: { QString _r = _t->getType((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); }  break;
        case 9: { QMimeData* _r = _t->getMimeData((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QMimeData**>(_a[0]) = std::move(_r); }  break;
        case 10: _t->slotMatchesChanged((*reinterpret_cast< const QList<Plasma::QueryMatch>(*)>(_a[1]))); break;
        case 11: _t->slotMatchAdded((*reinterpret_cast< const Plasma::QueryMatch(*)>(_a[1]))); break;
        case 12: _t->slotResetTimeout(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (SourcesModel::*_t)(const QString & , int );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SourcesModel::updateSearchTerm)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (SourcesModel::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SourcesModel::runnerChanged)) {
                *result = 1;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        SourcesModel *_t = static_cast<SourcesModel *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QString*>(_v) = _t->queryString(); break;
        case 1: *reinterpret_cast< int*>(_v) = _t->queryLimit(); break;
        case 2: *reinterpret_cast< QString*>(_v) = _t->runner(); break;
        case 3: *reinterpret_cast< QString*>(_v) = _t->runnerName(); break;
        case 4: *reinterpret_cast< QIcon*>(_v) = _t->runnerIcon(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        SourcesModel *_t = static_cast<SourcesModel *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setQueryString(*reinterpret_cast< QString*>(_v)); break;
        case 1: _t->setQueryLimit(*reinterpret_cast< int*>(_v)); break;
        case 2: _t->setRunner(*reinterpret_cast< QString*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject Milou::SourcesModel::staticMetaObject = {
    { &QAbstractListModel::staticMetaObject, qt_meta_stringdata_Milou__SourcesModel.data,
      qt_meta_data_Milou__SourcesModel,  qt_static_metacall, nullptr, nullptr}
};


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

void *Milou::SourcesModel::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_Milou__SourcesModel.stringdata0))
        return static_cast<void*>(this);
    return QAbstractListModel::qt_metacast(_clname);
}

int Milou::SourcesModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QAbstractListModel::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 13)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 13;
    }
#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;
}

// SIGNAL 0
void Milou::SourcesModel::updateSearchTerm(const QString & _t1, int _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void Milou::SourcesModel::runnerChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
