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

#include <memory>
#include "../../src/models/metadatamodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'metadatamodel.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.3. 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_MetadataModel_t {
    QByteArrayData data[20];
    char stringdata0[197];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_MetadataModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_MetadataModel_t qt_meta_stringdata_MetadataModel = {
    {
QT_MOC_LITERAL(0, 0, 13), // "MetadataModel"
QT_MOC_LITERAL(1, 14, 13), // "filterChanged"
QT_MOC_LITERAL(2, 28, 0), // ""
QT_MOC_LITERAL(3, 29, 13), // "searchChanged"
QT_MOC_LITERAL(4, 43, 8), // "rowCount"
QT_MOC_LITERAL(5, 52, 11), // "QModelIndex"
QT_MOC_LITERAL(6, 64, 6), // "parent"
QT_MOC_LITERAL(7, 71, 3), // "get"
QT_MOC_LITERAL(8, 75, 12), // "QmlMetadata*"
QT_MOC_LITERAL(9, 88, 5), // "index"
QT_MOC_LITERAL(10, 94, 9), // "isVisible"
QT_MOC_LITERAL(11, 104, 3), // "row"
QT_MOC_LITERAL(12, 108, 6), // "filter"
QT_MOC_LITERAL(13, 115, 14), // "MetadataFilter"
QT_MOC_LITERAL(14, 130, 6), // "search"
QT_MOC_LITERAL(15, 137, 8), // "NoFilter"
QT_MOC_LITERAL(16, 146, 15), // "FavoritesFilter"
QT_MOC_LITERAL(17, 162, 11), // "VideoFilter"
QT_MOC_LITERAL(18, 174, 11), // "AudioFilter"
QT_MOC_LITERAL(19, 186, 10) // "LinkFilter"

    },
    "MetadataModel\0filterChanged\0\0searchChanged\0"
    "rowCount\0QModelIndex\0parent\0get\0"
    "QmlMetadata*\0index\0isVisible\0row\0"
    "filter\0MetadataFilter\0search\0NoFilter\0"
    "FavoritesFilter\0VideoFilter\0AudioFilter\0"
    "LinkFilter"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_MetadataModel[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
       6,   14, // methods
       2,   56, // properties
       1,   64, // enums/sets
       0,    0, // constructors
       0,       // flags
       2,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,   44,    2, 0x06 /* Public */,
       3,    0,   45,    2, 0x06 /* Public */,

 // methods: name, argc, parameters, tag, flags
       4,    1,   46,    2, 0x02 /* Public */,
       4,    0,   49,    2, 0x22 /* Public | MethodCloned */,
       7,    1,   50,    2, 0x02 /* Public */,
      10,    1,   53,    2, 0x02 /* Public */,

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

 // methods: parameters
    QMetaType::Int, 0x80000000 | 5,    6,
    QMetaType::Int,
    0x80000000 | 8, QMetaType::Int,    9,
    QMetaType::Bool, QMetaType::Int,   11,

 // properties: name, type, flags
      12, 0x80000000 | 13, 0x0049510b,
      14, QMetaType::QString, 0x00495103,

 // properties: notify_signal_id
       0,
       1,

 // enums: name, alias, flags, count, data
      13,   13, 0x0,    5,   69,

 // enum data: key, value
      15, uint(MetadataModel::NoFilter),
      16, uint(MetadataModel::FavoritesFilter),
      17, uint(MetadataModel::VideoFilter),
      18, uint(MetadataModel::AudioFilter),
      19, uint(MetadataModel::LinkFilter),

       0        // eod
};

void MetadataModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<MetadataModel *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->filterChanged(); break;
        case 1: _t->searchChanged(); break;
        case 2: { int _r = _t->rowCount((*reinterpret_cast< const QModelIndex(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 3: { int _r = _t->rowCount();
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 4: { QmlMetadata* _r = _t->get((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QmlMetadata**>(_a[0]) = std::move(_r); }  break;
        case 5: { bool _r = _t->isVisible((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (MetadataModel::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MetadataModel::filterChanged)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (MetadataModel::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MetadataModel::searchChanged)) {
                *result = 1;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<MetadataModel *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< MetadataFilter*>(_v) = _t->filter(); break;
        case 1: *reinterpret_cast< QString*>(_v) = _t->search(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<MetadataModel *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setFilter(*reinterpret_cast< MetadataFilter*>(_v)); break;
        case 1: _t->setSearch(*reinterpret_cast< QString*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject MetadataModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractListModel::staticMetaObject>(),
    qt_meta_stringdata_MetadataModel.data,
    qt_meta_data_MetadataModel,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

int MetadataModel::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 < 6)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 6;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 6)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 6;
    }
#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 -= 2;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 2;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void MetadataModel::filterChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void MetadataModel::searchChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
