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

#include "../../../../../rssguard/src/librssguard/core/feedsmodel.h"
#include <QtCore/qmetatype.h>
#include <QtCore/QList>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'feedsmodel.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.0. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

#ifndef Q_CONSTINIT
#define Q_CONSTINIT
#endif

QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
QT_WARNING_DISABLE_GCC("-Wuseless-cast")
namespace {
struct qt_meta_tag_ZN10FeedsModelE_t {};
} // unnamed namespace

template <> constexpr inline auto FeedsModel::qt_create_metaobjectdata<qt_meta_tag_ZN10FeedsModelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "FeedsModel",
        "messageCountsChanged",
        "",
        "unread_messages",
        "any_feed_has_unread_messages",
        "itemExpandRequested",
        "QList<RootItem*>",
        "items",
        "expand",
        "dataChangeNotificationTriggered",
        "RootItem*",
        "item",
        "ExternalDataChange",
        "change",
        "loadActivatedServiceAccounts",
        "stopServiceAccounts",
        "reloadCountsOfWholeModel",
        "reassignNodeToNewParent",
        "original_node",
        "new_parent",
        "addServiceAccount",
        "ServiceRoot*",
        "root",
        "freshly_activated",
        "removeItem",
        "deleting_item",
        "reload_counts",
        "restoreAllBins",
        "emptyAllBins",
        "changeSortOrder",
        "move_top",
        "move_bottom",
        "new_sort_order",
        "sortDirectDescendants",
        "RootItem::Kind",
        "kind_to_sort",
        "markItemRead",
        "RootItem::ReadStatus",
        "read",
        "markItemCleared",
        "clean_read_only",
        "purgeArticles",
        "QList<Feed*>",
        "feeds",
        "reloadWholeLayout",
        "reloadChangedLayout",
        "QModelIndexList",
        "list",
        "reloadChangedItem",
        "notifyWithCounts",
        "onItemDataChanged"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'messageCountsChanged'
        QtMocHelpers::SignalData<void(int, bool)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 3 }, { QMetaType::Bool, 4 },
        }}),
        // Signal 'itemExpandRequested'
        QtMocHelpers::SignalData<void(QList<RootItem*>, bool)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 6, 7 }, { QMetaType::Bool, 8 },
        }}),
        // Signal 'dataChangeNotificationTriggered'
        QtMocHelpers::SignalData<void(RootItem *, enum ExternalDataChange)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 11 }, { 0x80000000 | 12, 13 },
        }}),
        // Slot 'loadActivatedServiceAccounts'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'stopServiceAccounts'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'reloadCountsOfWholeModel'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'reassignNodeToNewParent'
        QtMocHelpers::SlotData<void(RootItem *, RootItem *)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 18 }, { 0x80000000 | 10, 19 },
        }}),
        // Slot 'addServiceAccount'
        QtMocHelpers::SlotData<bool(ServiceRoot *, bool)>(20, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 21, 22 }, { QMetaType::Bool, 23 },
        }}),
        // Slot 'removeItem'
        QtMocHelpers::SlotData<void(RootItem *, bool)>(24, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 25 }, { QMetaType::Bool, 26 },
        }}),
        // Slot 'restoreAllBins'
        QtMocHelpers::SlotData<void()>(27, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'emptyAllBins'
        QtMocHelpers::SlotData<void()>(28, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'changeSortOrder'
        QtMocHelpers::SlotData<void(RootItem *, bool, bool, int)>(29, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 11 }, { QMetaType::Bool, 30 }, { QMetaType::Bool, 31 }, { QMetaType::Int, 32 },
        }}),
        // Slot 'changeSortOrder'
        QtMocHelpers::SlotData<void(RootItem *, bool, bool)>(29, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { 0x80000000 | 10, 11 }, { QMetaType::Bool, 30 }, { QMetaType::Bool, 31 },
        }}),
        // Slot 'sortDirectDescendants'
        QtMocHelpers::SlotData<void(RootItem *, RootItem::Kind)>(33, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 11 }, { 0x80000000 | 34, 35 },
        }}),
        // Slot 'markItemRead'
        QtMocHelpers::SlotData<void(RootItem *, RootItem::ReadStatus)>(36, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 11 }, { 0x80000000 | 37, 38 },
        }}),
        // Slot 'markItemCleared'
        QtMocHelpers::SlotData<void(RootItem *, bool)>(39, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 11 }, { QMetaType::Bool, 40 },
        }}),
        // Slot 'purgeArticles'
        QtMocHelpers::SlotData<void(const QList<Feed*> &)>(41, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 42, 43 },
        }}),
        // Slot 'reloadWholeLayout'
        QtMocHelpers::SlotData<void()>(44, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'reloadChangedLayout'
        QtMocHelpers::SlotData<void(QModelIndexList)>(45, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 46, 47 },
        }}),
        // Slot 'reloadChangedItem'
        QtMocHelpers::SlotData<void(RootItem *)>(48, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 11 },
        }}),
        // Slot 'notifyWithCounts'
        QtMocHelpers::SlotData<void()>(49, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'onItemDataChanged'
        QtMocHelpers::SlotData<void(const QList<RootItem*> &)>(50, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<FeedsModel, qt_meta_tag_ZN10FeedsModelE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject FeedsModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractItemModel::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10FeedsModelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10FeedsModelE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10FeedsModelE_t>.metaTypes,
    nullptr
} };

void FeedsModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<FeedsModel *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->messageCountsChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 1: _t->itemExpandRequested((*reinterpret_cast<std::add_pointer_t<QList<RootItem*>>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 2: _t->dataChangeNotificationTriggered((*reinterpret_cast<std::add_pointer_t<RootItem*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<enum ExternalDataChange>>(_a[2]))); break;
        case 3: _t->loadActivatedServiceAccounts(); break;
        case 4: _t->stopServiceAccounts(); break;
        case 5: _t->reloadCountsOfWholeModel(); break;
        case 6: _t->reassignNodeToNewParent((*reinterpret_cast<std::add_pointer_t<RootItem*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<RootItem*>>(_a[2]))); break;
        case 7: { bool _r = _t->addServiceAccount((*reinterpret_cast<std::add_pointer_t<ServiceRoot*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 8: _t->removeItem((*reinterpret_cast<std::add_pointer_t<RootItem*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 9: _t->restoreAllBins(); break;
        case 10: _t->emptyAllBins(); break;
        case 11: _t->changeSortOrder((*reinterpret_cast<std::add_pointer_t<RootItem*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[4]))); break;
        case 12: _t->changeSortOrder((*reinterpret_cast<std::add_pointer_t<RootItem*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[3]))); break;
        case 13: _t->sortDirectDescendants((*reinterpret_cast<std::add_pointer_t<RootItem*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<RootItem::Kind>>(_a[2]))); break;
        case 14: _t->markItemRead((*reinterpret_cast<std::add_pointer_t<RootItem*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<RootItem::ReadStatus>>(_a[2]))); break;
        case 15: _t->markItemCleared((*reinterpret_cast<std::add_pointer_t<RootItem*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 16: _t->purgeArticles((*reinterpret_cast<std::add_pointer_t<QList<Feed*>>>(_a[1]))); break;
        case 17: _t->reloadWholeLayout(); break;
        case 18: _t->reloadChangedLayout((*reinterpret_cast<std::add_pointer_t<QModelIndexList>>(_a[1]))); break;
        case 19: _t->reloadChangedItem((*reinterpret_cast<std::add_pointer_t<RootItem*>>(_a[1]))); break;
        case 20: _t->notifyWithCounts(); break;
        case 21: _t->onItemDataChanged((*reinterpret_cast<std::add_pointer_t<QList<RootItem*>>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 1:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QList<RootItem*> >(); break;
            }
            break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< RootItem* >(); break;
            }
            break;
        case 6:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< RootItem* >(); break;
            }
            break;
        case 8:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< RootItem* >(); break;
            }
            break;
        case 11:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< RootItem* >(); break;
            }
            break;
        case 12:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< RootItem* >(); break;
            }
            break;
        case 13:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< RootItem* >(); break;
            }
            break;
        case 14:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< RootItem* >(); break;
            }
            break;
        case 15:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< RootItem* >(); break;
            }
            break;
        case 18:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QModelIndexList >(); break;
            }
            break;
        case 19:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< RootItem* >(); break;
            }
            break;
        case 21:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QList<RootItem*> >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (FeedsModel::*)(int , bool )>(_a, &FeedsModel::messageCountsChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (FeedsModel::*)(QList<RootItem*> , bool )>(_a, &FeedsModel::itemExpandRequested, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (FeedsModel::*)(RootItem * , ExternalDataChange )>(_a, &FeedsModel::dataChangeNotificationTriggered, 2))
            return;
    }
}

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

void *FeedsModel::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10FeedsModelE_t>.strings))
        return static_cast<void*>(this);
    return QAbstractItemModel::qt_metacast(_clname);
}

int FeedsModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QAbstractItemModel::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 22)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 22;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 22)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 22;
    }
    return _id;
}

// SIGNAL 0
void FeedsModel::messageCountsChanged(int _t1, bool _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2);
}

// SIGNAL 1
void FeedsModel::itemExpandRequested(QList<RootItem*> _t1, bool _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2);
}

// SIGNAL 2
void FeedsModel::dataChangeNotificationTriggered(RootItem * _t1, ExternalDataChange _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1, _t2);
}
QT_WARNING_POP
