/****************************************************************************
** Meta object code from reading C++ file 'messagepreviewer.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/gui/messagepreviewer.h"
#include <QtCore/qmetatype.h>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'messagepreviewer.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_ZN16MessagePreviewerE_t {};
} // unnamed namespace

template <> constexpr inline auto MessagePreviewer::qt_create_metaobjectdata<qt_meta_tag_ZN16MessagePreviewerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "MessagePreviewer",
        "articleTweaked",
        "",
        "Message",
        "msg",
        "revealFeed",
        "markMessageRead",
        "id",
        "RootItem::ReadStatus",
        "read",
        "markMessageImportant",
        "RootItem::Importance",
        "important",
        "setToolbarsVisible",
        "visible",
        "clear",
        "showItemDetails",
        "RootItem*",
        "item",
        "loadMessage",
        "message",
        "root",
        "Feed*",
        "feed",
        "markMessageAsRead",
        "markMessageAsUnread",
        "markMessageAsReadUnread",
        "switchMessageImportance",
        "checked",
        "fetchFullMessageContents"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'articleTweaked'
        QtMocHelpers::SignalData<void(const Message &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'revealFeed'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'markMessageRead'
        QtMocHelpers::SignalData<void(int, RootItem::ReadStatus)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 7 }, { 0x80000000 | 8, 9 },
        }}),
        // Signal 'markMessageImportant'
        QtMocHelpers::SignalData<void(int, RootItem::Importance)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 7 }, { 0x80000000 | 11, 12 },
        }}),
        // Slot 'setToolbarsVisible'
        QtMocHelpers::SlotData<void(bool)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 14 },
        }}),
        // Slot 'clear'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'showItemDetails'
        QtMocHelpers::SlotData<void(RootItem *)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 17, 18 },
        }}),
        // Slot 'loadMessage'
        QtMocHelpers::SlotData<void(const Message &, RootItem *, Feed *)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 20 }, { 0x80000000 | 17, 21 }, { 0x80000000 | 22, 23 },
        }}),
        // Slot 'markMessageAsRead'
        QtMocHelpers::SlotData<void()>(24, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'markMessageAsUnread'
        QtMocHelpers::SlotData<void()>(25, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'markMessageAsReadUnread'
        QtMocHelpers::SlotData<void(RootItem::ReadStatus)>(26, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 8, 9 },
        }}),
        // Slot 'switchMessageImportance'
        QtMocHelpers::SlotData<void(bool)>(27, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Bool, 28 },
        }}),
        // Slot 'fetchFullMessageContents'
        QtMocHelpers::SlotData<void()>(29, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<MessagePreviewer, qt_meta_tag_ZN16MessagePreviewerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject MessagePreviewer::staticMetaObject = { {
    QMetaObject::SuperData::link<TabContent::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16MessagePreviewerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16MessagePreviewerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN16MessagePreviewerE_t>.metaTypes,
    nullptr
} };

void MessagePreviewer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<MessagePreviewer *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->articleTweaked((*reinterpret_cast<std::add_pointer_t<Message>>(_a[1]))); break;
        case 1: _t->revealFeed(); break;
        case 2: _t->markMessageRead((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<RootItem::ReadStatus>>(_a[2]))); break;
        case 3: _t->markMessageImportant((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<RootItem::Importance>>(_a[2]))); break;
        case 4: _t->setToolbarsVisible((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 5: _t->clear(); break;
        case 6: _t->showItemDetails((*reinterpret_cast<std::add_pointer_t<RootItem*>>(_a[1]))); break;
        case 7: _t->loadMessage((*reinterpret_cast<std::add_pointer_t<Message>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<RootItem*>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<Feed*>>(_a[3]))); break;
        case 8: _t->markMessageAsRead(); break;
        case 9: _t->markMessageAsUnread(); break;
        case 10: _t->markMessageAsReadUnread((*reinterpret_cast<std::add_pointer_t<RootItem::ReadStatus>>(_a[1]))); break;
        case 11: _t->switchMessageImportance((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 12: _t->fetchFullMessageContents(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 6:
            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 7:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< RootItem* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (MessagePreviewer::*)(const Message & )>(_a, &MessagePreviewer::articleTweaked, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (MessagePreviewer::*)()>(_a, &MessagePreviewer::revealFeed, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (MessagePreviewer::*)(int , RootItem::ReadStatus )>(_a, &MessagePreviewer::markMessageRead, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (MessagePreviewer::*)(int , RootItem::Importance )>(_a, &MessagePreviewer::markMessageImportant, 3))
            return;
    }
}

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

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

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

// SIGNAL 0
void MessagePreviewer::articleTweaked(const Message & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

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

// SIGNAL 2
void MessagePreviewer::markMessageRead(int _t1, RootItem::ReadStatus _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1, _t2);
}

// SIGNAL 3
void MessagePreviewer::markMessageImportant(int _t1, RootItem::Importance _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1, _t2);
}
QT_WARNING_POP
