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

#include <memory>
#include "../../../src/extension/favorite/favorites-model.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'favorites-model.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.10. 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_UkuiMenu__FavoritesModel_t {
    QByteArrayData data[20];
    char stringdata0[225];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_UkuiMenu__FavoritesModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_UkuiMenu__FavoritesModel_t qt_meta_stringdata_UkuiMenu__FavoritesModel = {
    {
QT_MOC_LITERAL(0, 0, 24), // "UkuiMenu::FavoritesModel"
QT_MOC_LITERAL(1, 25, 8), // "openMenu"
QT_MOC_LITERAL(2, 34, 0), // ""
QT_MOC_LITERAL(3, 35, 3), // "row"
QT_MOC_LITERAL(4, 39, 17), // "addAppToFavorites"
QT_MOC_LITERAL(5, 57, 2), // "id"
QT_MOC_LITERAL(6, 60, 5), // "index"
QT_MOC_LITERAL(7, 66, 22), // "removeAppFromFavorites"
QT_MOC_LITERAL(8, 89, 18), // "exchangedAppsOrder"
QT_MOC_LITERAL(9, 108, 9), // "indexFrom"
QT_MOC_LITERAL(10, 118, 7), // "indexTo"
QT_MOC_LITERAL(11, 126, 18), // "addAppsToNewFolder"
QT_MOC_LITERAL(12, 145, 6), // "idFrom"
QT_MOC_LITERAL(13, 152, 4), // "idTo"
QT_MOC_LITERAL(14, 157, 14), // "addAppToFolder"
QT_MOC_LITERAL(15, 172, 5), // "appId"
QT_MOC_LITERAL(16, 178, 8), // "folderId"
QT_MOC_LITERAL(17, 187, 18), // "addFileToFavorites"
QT_MOC_LITERAL(18, 206, 3), // "url"
QT_MOC_LITERAL(19, 210, 14) // "clearFavorites"

    },
    "UkuiMenu::FavoritesModel\0openMenu\0\0"
    "row\0addAppToFavorites\0id\0index\0"
    "removeAppFromFavorites\0exchangedAppsOrder\0"
    "indexFrom\0indexTo\0addAppsToNewFolder\0"
    "idFrom\0idTo\0addAppToFolder\0appId\0"
    "folderId\0addFileToFavorites\0url\0"
    "clearFavorites"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_UkuiMenu__FavoritesModel[] = {

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

 // methods: name, argc, parameters, tag, flags
       1,    1,   59,    2, 0x02 /* Public */,
       4,    2,   62,    2, 0x02 /* Public */,
       4,    1,   67,    2, 0x22 /* Public | MethodCloned */,
       7,    1,   70,    2, 0x02 /* Public */,
       8,    2,   73,    2, 0x02 /* Public */,
      11,    2,   78,    2, 0x02 /* Public */,
      14,    2,   83,    2, 0x02 /* Public */,
      17,    1,   88,    2, 0x02 /* Public */,
      19,    0,   91,    2, 0x02 /* Public */,

 // methods: parameters
    QMetaType::Void, QMetaType::Int,    3,
    QMetaType::Void, QMetaType::QString, QMetaType::Int,    5,    6,
    QMetaType::Void, QMetaType::QString,    5,
    QMetaType::Void, QMetaType::QString,    5,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,    9,   10,
    QMetaType::Void, QMetaType::QString, QMetaType::QString,   12,   13,
    QMetaType::Void, QMetaType::QString, QMetaType::QString,   15,   16,
    QMetaType::Void, QMetaType::QString,   18,
    QMetaType::Void,

       0        // eod
};

void UkuiMenu::FavoritesModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<FavoritesModel *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->openMenu((*reinterpret_cast< const int(*)>(_a[1]))); break;
        case 1: _t->addAppToFavorites((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const int(*)>(_a[2]))); break;
        case 2: _t->addAppToFavorites((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 3: _t->removeAppFromFavorites((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 4: _t->exchangedAppsOrder((*reinterpret_cast< const int(*)>(_a[1])),(*reinterpret_cast< const int(*)>(_a[2]))); break;
        case 5: _t->addAppsToNewFolder((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 6: _t->addAppToFolder((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 7: _t->addFileToFavorites((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 8: _t->clearFavorites(); break;
        default: ;
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject UkuiMenu::FavoritesModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QSortFilterProxyModel::staticMetaObject>(),
    qt_meta_stringdata_UkuiMenu__FavoritesModel.data,
    qt_meta_data_UkuiMenu__FavoritesModel,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

int UkuiMenu::FavoritesModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QSortFilterProxyModel::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 9)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 9)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 9;
    }
    return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
