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

#include <memory>
#include "../../../../../knewstuff-5.116.0/src/qtquick/quickitemsmodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'quickitemsmodel.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.19. 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_ItemsModel_t {
    QByteArrayData data[62];
    char stringdata0[861];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_ItemsModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_ItemsModel_t qt_meta_stringdata_ItemsModel = {
    {
QT_MOC_LITERAL(0, 0, 10), // "ItemsModel"
QT_MOC_LITERAL(1, 11, 13), // "engineChanged"
QT_MOC_LITERAL(2, 25, 0), // ""
QT_MOC_LITERAL(3, 26, 20), // "isLoadingDataChanged"
QT_MOC_LITERAL(4, 47, 12), // "entryChanged"
QT_MOC_LITERAL(5, 60, 5), // "index"
QT_MOC_LITERAL(6, 66, 14), // "indexOfEntryId"
QT_MOC_LITERAL(7, 81, 10), // "providerId"
QT_MOC_LITERAL(8, 92, 7), // "entryId"
QT_MOC_LITERAL(9, 100, 11), // "installItem"
QT_MOC_LITERAL(10, 112, 6), // "linkId"
QT_MOC_LITERAL(11, 119, 10), // "updateItem"
QT_MOC_LITERAL(12, 130, 13), // "uninstallItem"
QT_MOC_LITERAL(13, 144, 9), // "adoptItem"
QT_MOC_LITERAL(14, 154, 6), // "engine"
QT_MOC_LITERAL(15, 161, 13), // "isLoadingData"
QT_MOC_LITERAL(16, 175, 5), // "Roles"
QT_MOC_LITERAL(17, 181, 8), // "NameRole"
QT_MOC_LITERAL(18, 190, 12), // "UniqueIdRole"
QT_MOC_LITERAL(19, 203, 12), // "CategoryRole"
QT_MOC_LITERAL(20, 216, 12), // "HomepageRole"
QT_MOC_LITERAL(21, 229, 10), // "AuthorRole"
QT_MOC_LITERAL(22, 240, 11), // "LicenseRole"
QT_MOC_LITERAL(23, 252, 16), // "ShortSummaryRole"
QT_MOC_LITERAL(24, 269, 11), // "SummaryRole"
QT_MOC_LITERAL(25, 281, 13), // "ChangelogRole"
QT_MOC_LITERAL(26, 295, 11), // "VersionRole"
QT_MOC_LITERAL(27, 307, 15), // "ReleaseDateRole"
QT_MOC_LITERAL(28, 323, 17), // "UpdateVersionRole"
QT_MOC_LITERAL(29, 341, 21), // "UpdateReleaseDateRole"
QT_MOC_LITERAL(30, 363, 11), // "PayloadRole"
QT_MOC_LITERAL(31, 375, 17), // "PreviewsSmallRole"
QT_MOC_LITERAL(32, 393, 12), // "PreviewsRole"
QT_MOC_LITERAL(33, 406, 18), // "InstalledFilesRole"
QT_MOC_LITERAL(34, 425, 20), // "UnInstalledFilesRole"
QT_MOC_LITERAL(35, 446, 10), // "RatingRole"
QT_MOC_LITERAL(36, 457, 20), // "NumberOfCommentsRole"
QT_MOC_LITERAL(37, 478, 17), // "DownloadCountRole"
QT_MOC_LITERAL(38, 496, 14), // "NumberFansRole"
QT_MOC_LITERAL(39, 511, 30), // "NumberKnowledgebaseEntriesRole"
QT_MOC_LITERAL(40, 542, 21), // "KnowledgebaseLinkRole"
QT_MOC_LITERAL(41, 564, 17), // "DownloadLinksRole"
QT_MOC_LITERAL(42, 582, 16), // "DonationLinkRole"
QT_MOC_LITERAL(43, 599, 14), // "ProviderIdRole"
QT_MOC_LITERAL(44, 614, 10), // "SourceRole"
QT_MOC_LITERAL(45, 625, 10), // "StatusRole"
QT_MOC_LITERAL(46, 636, 17), // "CommentsModelRole"
QT_MOC_LITERAL(47, 654, 13), // "EntryTypeRole"
QT_MOC_LITERAL(48, 668, 10), // "ItemStatus"
QT_MOC_LITERAL(49, 679, 13), // "InvalidStatus"
QT_MOC_LITERAL(50, 693, 18), // "DownloadableStatus"
QT_MOC_LITERAL(51, 712, 15), // "InstalledStatus"
QT_MOC_LITERAL(52, 728, 16), // "UpdateableStatus"
QT_MOC_LITERAL(53, 745, 13), // "DeletedStatus"
QT_MOC_LITERAL(54, 759, 16), // "InstallingStatus"
QT_MOC_LITERAL(55, 776, 14), // "UpdatingStatus"
QT_MOC_LITERAL(56, 791, 9), // "EntryType"
QT_MOC_LITERAL(57, 801, 12), // "CatalogEntry"
QT_MOC_LITERAL(58, 814, 10), // "GroupEntry"
QT_MOC_LITERAL(59, 825, 6), // "LinkId"
QT_MOC_LITERAL(60, 832, 16), // "AutoDetectLinkId"
QT_MOC_LITERAL(61, 849, 11) // "FirstLinkId"

    },
    "ItemsModel\0engineChanged\0\0"
    "isLoadingDataChanged\0entryChanged\0"
    "index\0indexOfEntryId\0providerId\0entryId\0"
    "installItem\0linkId\0updateItem\0"
    "uninstallItem\0adoptItem\0engine\0"
    "isLoadingData\0Roles\0NameRole\0UniqueIdRole\0"
    "CategoryRole\0HomepageRole\0AuthorRole\0"
    "LicenseRole\0ShortSummaryRole\0SummaryRole\0"
    "ChangelogRole\0VersionRole\0ReleaseDateRole\0"
    "UpdateVersionRole\0UpdateReleaseDateRole\0"
    "PayloadRole\0PreviewsSmallRole\0"
    "PreviewsRole\0InstalledFilesRole\0"
    "UnInstalledFilesRole\0RatingRole\0"
    "NumberOfCommentsRole\0DownloadCountRole\0"
    "NumberFansRole\0NumberKnowledgebaseEntriesRole\0"
    "KnowledgebaseLinkRole\0DownloadLinksRole\0"
    "DonationLinkRole\0ProviderIdRole\0"
    "SourceRole\0StatusRole\0CommentsModelRole\0"
    "EntryTypeRole\0ItemStatus\0InvalidStatus\0"
    "DownloadableStatus\0InstalledStatus\0"
    "UpdateableStatus\0DeletedStatus\0"
    "InstallingStatus\0UpdatingStatus\0"
    "EntryType\0CatalogEntry\0GroupEntry\0"
    "LinkId\0AutoDetectLinkId\0FirstLinkId"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_ItemsModel[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,   54,    2, 0x06 /* Public */,
       3,    0,   55,    2, 0x06 /* Public */,
       4,    1,   56,    2, 0x06 /* Public */,

 // methods: name, argc, parameters, tag, flags
       6,    2,   59,    2, 0x02 /* Public */,
       9,    2,   64,    2, 0x02 /* Public */,
      11,    1,   69,    2, 0x02 /* Public */,
      12,    1,   72,    2, 0x02 /* Public */,
      13,    1,   75,    2, 0x02 /* Public */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,    5,

 // methods: parameters
    QMetaType::Int, QMetaType::QString, QMetaType::QString,    7,    8,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,    5,   10,
    QMetaType::Void, QMetaType::Int,    5,
    QMetaType::Void, QMetaType::Int,    5,
    QMetaType::Void, QMetaType::Int,    5,

 // properties: name, type, flags
      14, QMetaType::QObjectStar, 0x00495103,
      15, QMetaType::Bool, 0x00495001,

 // properties: notify_signal_id
       0,
       1,

 // enums: name, alias, flags, count, data
      16,   16, 0x0,   31,  106,
      48,   48, 0x0,    7,  168,
      56,   56, 0x0,    2,  182,
      59,   59, 0x0,    2,  186,

 // enum data: key, value
      17, uint(ItemsModel::NameRole),
      18, uint(ItemsModel::UniqueIdRole),
      19, uint(ItemsModel::CategoryRole),
      20, uint(ItemsModel::HomepageRole),
      21, uint(ItemsModel::AuthorRole),
      22, uint(ItemsModel::LicenseRole),
      23, uint(ItemsModel::ShortSummaryRole),
      24, uint(ItemsModel::SummaryRole),
      25, uint(ItemsModel::ChangelogRole),
      26, uint(ItemsModel::VersionRole),
      27, uint(ItemsModel::ReleaseDateRole),
      28, uint(ItemsModel::UpdateVersionRole),
      29, uint(ItemsModel::UpdateReleaseDateRole),
      30, uint(ItemsModel::PayloadRole),
      31, uint(ItemsModel::PreviewsSmallRole),
      32, uint(ItemsModel::PreviewsRole),
      33, uint(ItemsModel::InstalledFilesRole),
      34, uint(ItemsModel::UnInstalledFilesRole),
      35, uint(ItemsModel::RatingRole),
      36, uint(ItemsModel::NumberOfCommentsRole),
      37, uint(ItemsModel::DownloadCountRole),
      38, uint(ItemsModel::NumberFansRole),
      39, uint(ItemsModel::NumberKnowledgebaseEntriesRole),
      40, uint(ItemsModel::KnowledgebaseLinkRole),
      41, uint(ItemsModel::DownloadLinksRole),
      42, uint(ItemsModel::DonationLinkRole),
      43, uint(ItemsModel::ProviderIdRole),
      44, uint(ItemsModel::SourceRole),
      45, uint(ItemsModel::StatusRole),
      46, uint(ItemsModel::CommentsModelRole),
      47, uint(ItemsModel::EntryTypeRole),
      49, uint(ItemsModel::InvalidStatus),
      50, uint(ItemsModel::DownloadableStatus),
      51, uint(ItemsModel::InstalledStatus),
      52, uint(ItemsModel::UpdateableStatus),
      53, uint(ItemsModel::DeletedStatus),
      54, uint(ItemsModel::InstallingStatus),
      55, uint(ItemsModel::UpdatingStatus),
      57, uint(ItemsModel::CatalogEntry),
      58, uint(ItemsModel::GroupEntry),
      60, uint(ItemsModel::AutoDetectLinkId),
      61, uint(ItemsModel::FirstLinkId),

       0        // eod
};

void ItemsModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<ItemsModel *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->engineChanged(); break;
        case 1: _t->isLoadingDataChanged(); break;
        case 2: _t->entryChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 3: { int _r = _t->indexOfEntryId((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 4: _t->installItem((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 5: _t->updateItem((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 6: _t->uninstallItem((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 7: _t->adoptItem((*reinterpret_cast< int(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (ItemsModel::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ItemsModel::engineChanged)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (ItemsModel::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ItemsModel::isLoadingDataChanged)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (ItemsModel::*)(int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ItemsModel::entryChanged)) {
                *result = 2;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<ItemsModel *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QObject**>(_v) = _t->engine(); break;
        case 1: *reinterpret_cast< bool*>(_v) = _t->isLoadingData(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<ItemsModel *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setEngine(*reinterpret_cast< QObject**>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject ItemsModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractListModel::staticMetaObject>(),
    qt_meta_stringdata_ItemsModel.data,
    qt_meta_data_ItemsModel,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

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

int ItemsModel::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 < 8)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 8)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 8;
    }
#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 ItemsModel::engineChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void ItemsModel::isLoadingDataChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

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