/****************************************************************************
** Meta object code from reading C++ file 'favoritesmodel.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/plasma-desktop-5.8.8/applets/kicker/plugin/favoritesmodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'favoritesmodel.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_FavoritesModel_t {
    QByteArrayData data[23];
    char stringdata0[249];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_FavoritesModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_FavoritesModel_t qt_meta_stringdata_FavoritesModel = {
    {
QT_MOC_LITERAL(0, 0, 14), // "FavoritesModel"
QT_MOC_LITERAL(1, 15, 14), // "enabledChanged"
QT_MOC_LITERAL(2, 30, 0), // ""
QT_MOC_LITERAL(3, 31, 16), // "favoritesChanged"
QT_MOC_LITERAL(4, 48, 19), // "maxFavoritesChanged"
QT_MOC_LITERAL(5, 68, 27), // "dropPlaceholderIndexChanged"
QT_MOC_LITERAL(6, 96, 7), // "refresh"
QT_MOC_LITERAL(7, 104, 7), // "trigger"
QT_MOC_LITERAL(8, 112, 3), // "row"
QT_MOC_LITERAL(9, 116, 8), // "actionId"
QT_MOC_LITERAL(10, 125, 8), // "argument"
QT_MOC_LITERAL(11, 134, 10), // "isFavorite"
QT_MOC_LITERAL(12, 145, 2), // "id"
QT_MOC_LITERAL(13, 148, 11), // "addFavorite"
QT_MOC_LITERAL(14, 160, 5), // "index"
QT_MOC_LITERAL(15, 166, 14), // "removeFavorite"
QT_MOC_LITERAL(16, 181, 7), // "moveRow"
QT_MOC_LITERAL(17, 189, 4), // "from"
QT_MOC_LITERAL(18, 194, 2), // "to"
QT_MOC_LITERAL(19, 197, 7), // "enabled"
QT_MOC_LITERAL(20, 205, 9), // "favorites"
QT_MOC_LITERAL(21, 215, 12), // "maxFavorites"
QT_MOC_LITERAL(22, 228, 20) // "dropPlaceholderIndex"

    },
    "FavoritesModel\0enabledChanged\0\0"
    "favoritesChanged\0maxFavoritesChanged\0"
    "dropPlaceholderIndexChanged\0refresh\0"
    "trigger\0row\0actionId\0argument\0isFavorite\0"
    "id\0addFavorite\0index\0removeFavorite\0"
    "moveRow\0from\0to\0enabled\0favorites\0"
    "maxFavorites\0dropPlaceholderIndex"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_FavoritesModel[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,   69,    2, 0x06 /* Public */,
       3,    0,   70,    2, 0x06 /* Public */,
       4,    0,   71,    2, 0x06 /* Public */,
       5,    0,   72,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       6,    0,   73,    2, 0x0a /* Public */,

 // methods: name, argc, parameters, tag, flags
       7,    3,   74,    2, 0x02 /* Public */,
      11,    1,   81,    2, 0x02 /* Public */,
      13,    2,   84,    2, 0x02 /* Public */,
      13,    1,   89,    2, 0x22 /* Public | MethodCloned */,
      15,    1,   92,    2, 0x02 /* Public */,
      16,    2,   95,    2, 0x02 /* Public */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void,

 // methods: parameters
    QMetaType::Bool, QMetaType::Int, QMetaType::QString, QMetaType::QVariant,    8,    9,   10,
    QMetaType::Bool, QMetaType::QString,   12,
    QMetaType::Void, QMetaType::QString, QMetaType::Int,   12,   14,
    QMetaType::Void, QMetaType::QString,   12,
    QMetaType::Void, QMetaType::QString,   12,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,   17,   18,

 // properties: name, type, flags
      19, QMetaType::Bool, 0x00495103,
      20, QMetaType::QStringList, 0x00495103,
      21, QMetaType::Int, 0x00495103,
      22, QMetaType::Int, 0x00495103,

 // properties: notify_signal_id
       0,
       1,
       2,
       3,

       0        // eod
};

void FavoritesModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        FavoritesModel *_t = static_cast<FavoritesModel *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->enabledChanged(); break;
        case 1: _t->favoritesChanged(); break;
        case 2: _t->maxFavoritesChanged(); break;
        case 3: _t->dropPlaceholderIndexChanged(); break;
        case 4: _t->refresh(); break;
        case 5: { bool _r = _t->trigger((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QVariant(*)>(_a[3])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 6: { bool _r = _t->isFavorite((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 7: _t->addFavorite((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 8: _t->addFavorite((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 9: _t->removeFavorite((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 10: _t->moveRow((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (FavoritesModel::*_t)() const;
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&FavoritesModel::enabledChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (FavoritesModel::*_t)() const;
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&FavoritesModel::favoritesChanged)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (FavoritesModel::*_t)() const;
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&FavoritesModel::maxFavoritesChanged)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (FavoritesModel::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&FavoritesModel::dropPlaceholderIndexChanged)) {
                *result = 3;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        FavoritesModel *_t = static_cast<FavoritesModel *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< bool*>(_v) = _t->enabled(); break;
        case 1: *reinterpret_cast< QStringList*>(_v) = _t->favorites(); break;
        case 2: *reinterpret_cast< int*>(_v) = _t->maxFavorites(); break;
        case 3: *reinterpret_cast< int*>(_v) = _t->dropPlaceholderIndex(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        FavoritesModel *_t = static_cast<FavoritesModel *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setEnabled(*reinterpret_cast< bool*>(_v)); break;
        case 1: _t->setFavorites(*reinterpret_cast< QStringList*>(_v)); break;
        case 2: _t->setMaxFavorites(*reinterpret_cast< int*>(_v)); break;
        case 3: _t->setDropPlaceholderIndex(*reinterpret_cast< int*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject FavoritesModel::staticMetaObject = {
    { &AbstractModel::staticMetaObject, qt_meta_stringdata_FavoritesModel.data,
      qt_meta_data_FavoritesModel,  qt_static_metacall, nullptr, nullptr}
};


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

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

int FavoritesModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = AbstractModel::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 11)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 11)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 11;
    }
#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 FavoritesModel::enabledChanged()const
{
    QMetaObject::activate(const_cast< FavoritesModel *>(this), &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void FavoritesModel::favoritesChanged()const
{
    QMetaObject::activate(const_cast< FavoritesModel *>(this), &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void FavoritesModel::maxFavoritesChanged()const
{
    QMetaObject::activate(const_cast< FavoritesModel *>(this), &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void FavoritesModel::dropPlaceholderIndexChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
