/****************************************************************************
** Meta object code from reading C++ file 'kmessagewidget.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 "../../../../kwidgetsaddons-6.26.0/src/kmessagewidget.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 'kmessagewidget.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_ZN14KMessageWidgetE_t {};
} // unnamed namespace

template <> constexpr inline auto KMessageWidget::qt_create_metaobjectdata<qt_meta_tag_ZN14KMessageWidgetE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "KMessageWidget",
        "linkActivated",
        "",
        "contents",
        "linkHovered",
        "hideAnimationFinished",
        "showAnimationFinished",
        "setText",
        "text",
        "setPosition",
        "Position",
        "position",
        "setWordWrap",
        "wordWrap",
        "setCloseButtonVisible",
        "visible",
        "setMessageType",
        "KMessageWidget::MessageType",
        "type",
        "animatedShow",
        "animatedHide",
        "setIcon",
        "QIcon",
        "icon",
        "textFormat",
        "Qt::TextFormat",
        "closeButtonVisible",
        "messageType",
        "MessageType",
        "Positive",
        "Information",
        "Warning",
        "Error",
        "Inline",
        "Header",
        "Footer"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'linkActivated'
        QtMocHelpers::SignalData<void(const QString &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 },
        }}),
        // Signal 'linkHovered'
        QtMocHelpers::SignalData<void(const QString &)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 },
        }}),
        // Signal 'hideAnimationFinished'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'showAnimationFinished'
        QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setText'
        QtMocHelpers::SlotData<void(const QString &)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 8 },
        }}),
        // Slot 'setPosition'
        QtMocHelpers::SlotData<void(enum Position)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 11 },
        }}),
        // Slot 'setWordWrap'
        QtMocHelpers::SlotData<void(bool)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 13 },
        }}),
        // Slot 'setCloseButtonVisible'
        QtMocHelpers::SlotData<void(bool)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 15 },
        }}),
        // Slot 'setMessageType'
        QtMocHelpers::SlotData<void(KMessageWidget::MessageType)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 17, 18 },
        }}),
        // Slot 'animatedShow'
        QtMocHelpers::SlotData<void()>(19, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'animatedHide'
        QtMocHelpers::SlotData<void()>(20, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setIcon'
        QtMocHelpers::SlotData<void(const QIcon &)>(21, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 22, 23 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'text'
        QtMocHelpers::PropertyData<QString>(8, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'textFormat'
        QtMocHelpers::PropertyData<Qt::TextFormat>(24, 0x80000000 | 25, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'wordWrap'
        QtMocHelpers::PropertyData<bool>(13, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'closeButtonVisible'
        QtMocHelpers::PropertyData<bool>(26, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'messageType'
        QtMocHelpers::PropertyData<enum MessageType>(27, 0x80000000 | 28, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'icon'
        QtMocHelpers::PropertyData<QIcon>(23, 0x80000000 | 22, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'position'
        QtMocHelpers::PropertyData<enum Position>(11, 0x80000000 | 10, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'MessageType'
        QtMocHelpers::EnumData<enum MessageType>(28, 28, QMC::EnumFlags{}).add({
            {   29, MessageType::Positive },
            {   30, MessageType::Information },
            {   31, MessageType::Warning },
            {   32, MessageType::Error },
        }),
        // enum 'Position'
        QtMocHelpers::EnumData<enum Position>(10, 10, QMC::EnumFlags{}).add({
            {   33, Position::Inline },
            {   34, Position::Header },
            {   35, Position::Footer },
        }),
    };
    return QtMocHelpers::metaObjectData<KMessageWidget, qt_meta_tag_ZN14KMessageWidgetE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject KMessageWidget::staticMetaObject = { {
    QMetaObject::SuperData::link<QFrame::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14KMessageWidgetE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14KMessageWidgetE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN14KMessageWidgetE_t>.metaTypes,
    nullptr
} };

void KMessageWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<KMessageWidget *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->linkActivated((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 1: _t->linkHovered((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 2: _t->hideAnimationFinished(); break;
        case 3: _t->showAnimationFinished(); break;
        case 4: _t->setText((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 5: _t->setPosition((*reinterpret_cast<std::add_pointer_t<enum Position>>(_a[1]))); break;
        case 6: _t->setWordWrap((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 7: _t->setCloseButtonVisible((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 8: _t->setMessageType((*reinterpret_cast<std::add_pointer_t<KMessageWidget::MessageType>>(_a[1]))); break;
        case 9: _t->animatedShow(); break;
        case 10: _t->animatedHide(); break;
        case 11: _t->setIcon((*reinterpret_cast<std::add_pointer_t<QIcon>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (KMessageWidget::*)(const QString & )>(_a, &KMessageWidget::linkActivated, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (KMessageWidget::*)(const QString & )>(_a, &KMessageWidget::linkHovered, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (KMessageWidget::*)()>(_a, &KMessageWidget::hideAnimationFinished, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (KMessageWidget::*)()>(_a, &KMessageWidget::showAnimationFinished, 3))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QString*>(_v) = _t->text(); break;
        case 1: *reinterpret_cast<Qt::TextFormat*>(_v) = _t->textFormat(); break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->wordWrap(); break;
        case 3: *reinterpret_cast<bool*>(_v) = _t->isCloseButtonVisible(); break;
        case 4: *reinterpret_cast<enum MessageType*>(_v) = _t->messageType(); break;
        case 5: *reinterpret_cast<QIcon*>(_v) = _t->icon(); break;
        case 6: *reinterpret_cast<enum Position*>(_v) = _t->position(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setText(*reinterpret_cast<QString*>(_v)); break;
        case 1: _t->setTextFormat(*reinterpret_cast<Qt::TextFormat*>(_v)); break;
        case 2: _t->setWordWrap(*reinterpret_cast<bool*>(_v)); break;
        case 3: _t->setCloseButtonVisible(*reinterpret_cast<bool*>(_v)); break;
        case 4: _t->setMessageType(*reinterpret_cast<enum MessageType*>(_v)); break;
        case 5: _t->setIcon(*reinterpret_cast<QIcon*>(_v)); break;
        case 6: _t->setPosition(*reinterpret_cast<enum Position*>(_v)); break;
        default: break;
        }
    }
}

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

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

int KMessageWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QFrame::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 12)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 12;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 7;
    }
    return _id;
}

// SIGNAL 0
void KMessageWidget::linkActivated(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void KMessageWidget::linkHovered(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void KMessageWidget::hideAnimationFinished()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void KMessageWidget::showAnimationFinished()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}
QT_WARNING_POP
