/****************************************************************************
** Meta object code from reading C++ file 'favorite-folder-helper.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/favorite-folder-helper.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'favorite-folder-helper.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__FavoritesFolder_t {
    QByteArrayData data[4];
    char stringdata0[39];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_UkuiMenu__FavoritesFolder_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_UkuiMenu__FavoritesFolder_t qt_meta_stringdata_UkuiMenu__FavoritesFolder = {
    {
QT_MOC_LITERAL(0, 0, 25), // "UkuiMenu::FavoritesFolder"
QT_MOC_LITERAL(1, 26, 2), // "id"
QT_MOC_LITERAL(2, 29, 4), // "name"
QT_MOC_LITERAL(3, 34, 4) // "apps"

    },
    "UkuiMenu::FavoritesFolder\0id\0name\0"
    "apps"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_UkuiMenu__FavoritesFolder[] = {

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

 // properties: name, type, flags
       1, QMetaType::Int, 0x00095103,
       2, QMetaType::QString, 0x00095001,
       3, QMetaType::QStringList, 0x00095001,

       0        // eod
};

void UkuiMenu::FavoritesFolder::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{

#ifndef QT_NO_PROPERTIES
    if (_c == QMetaObject::ReadProperty) {
        auto *_t = reinterpret_cast<FavoritesFolder *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< int*>(_v) = _t->getId(); break;
        case 1: *reinterpret_cast< QString*>(_v) = _t->getName(); break;
        case 2: *reinterpret_cast< QStringList*>(_v) = _t->getApps(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = reinterpret_cast<FavoritesFolder *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setId(*reinterpret_cast< int*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
    (void)_o;
    (void)_id;
    (void)_c;
    (void)_a;
}

QT_INIT_METAOBJECT const QMetaObject UkuiMenu::FavoritesFolder::staticMetaObject = { {
    nullptr,
    qt_meta_stringdata_UkuiMenu__FavoritesFolder.data,
    qt_meta_data_UkuiMenu__FavoritesFolder,
    qt_static_metacall,
    nullptr,
    nullptr
} };

struct qt_meta_stringdata_UkuiMenu__FavoriteFolderHelper_t {
    QByteArrayData data[9];
    char stringdata0[104];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_UkuiMenu__FavoriteFolderHelper_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_UkuiMenu__FavoriteFolderHelper_t qt_meta_stringdata_UkuiMenu__FavoriteFolderHelper = {
    {
QT_MOC_LITERAL(0, 0, 30), // "UkuiMenu::FavoriteFolderHelper"
QT_MOC_LITERAL(1, 31, 11), // "folderAdded"
QT_MOC_LITERAL(2, 43, 0), // ""
QT_MOC_LITERAL(3, 44, 8), // "folderId"
QT_MOC_LITERAL(4, 53, 5), // "order"
QT_MOC_LITERAL(5, 59, 17), // "folderToBeDeleted"
QT_MOC_LITERAL(6, 77, 4), // "apps"
QT_MOC_LITERAL(7, 82, 17), // "folderDataChanged"
QT_MOC_LITERAL(8, 100, 3) // "app"

    },
    "UkuiMenu::FavoriteFolderHelper\0"
    "folderAdded\0\0folderId\0order\0"
    "folderToBeDeleted\0apps\0folderDataChanged\0"
    "app"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_UkuiMenu__FavoriteFolderHelper[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    2,   29,    2, 0x06 /* Public */,
       5,    2,   34,    2, 0x06 /* Public */,
       7,    2,   39,    2, 0x06 /* Public */,

 // signals: parameters
    QMetaType::Void, QMetaType::Int, QMetaType::Int,    3,    4,
    QMetaType::Void, QMetaType::Int, QMetaType::QStringList,    3,    6,
    QMetaType::Void, QMetaType::Int, QMetaType::QString,    3,    8,

       0        // eod
};

void UkuiMenu::FavoriteFolderHelper::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<FavoriteFolderHelper *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->folderAdded((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const int(*)>(_a[2]))); break;
        case 1: _t->folderToBeDeleted((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QStringList(*)>(_a[2]))); break;
        case 2: _t->folderDataChanged((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (FavoriteFolderHelper::*)(int , const int & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&FavoriteFolderHelper::folderAdded)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (FavoriteFolderHelper::*)(int , const QStringList & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&FavoriteFolderHelper::folderToBeDeleted)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (FavoriteFolderHelper::*)(int , const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&FavoriteFolderHelper::folderDataChanged)) {
                *result = 2;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject UkuiMenu::FavoriteFolderHelper::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_UkuiMenu__FavoriteFolderHelper.data,
    qt_meta_data_UkuiMenu__FavoriteFolderHelper,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

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

// SIGNAL 0
void UkuiMenu::FavoriteFolderHelper::folderAdded(int _t1, const int & _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void UkuiMenu::FavoriteFolderHelper::folderToBeDeleted(int _t1, const QStringList & _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void UkuiMenu::FavoriteFolderHelper::folderDataChanged(int _t1, const QString & _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
