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

#include "../../../../../neochat-26.07.80/src/chatbar/chatbuttonhelper.h"
#include <QtGui/qtextcursor.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 'chatbuttonhelper.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.12.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_ZN16ChatButtonHelperE_t {};
} // unnamed namespace

template <> constexpr inline auto ChatButtonHelper::qt_create_metaobjectdata<qt_meta_tag_ZN16ChatButtonHelperE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "ChatButtonHelper",
        "QML.Element",
        "auto",
        "textItemChanged",
        "",
        "inQuoteChanged",
        "hasAttachmentChanged",
        "richFormatEnabledChanged",
        "charFormatChanged",
        "styleChanged",
        "listChanged",
        "setFormat",
        "RichFormat::Format",
        "format",
        "indentListMore",
        "indentListLess",
        "insertText",
        "text",
        "updateLink",
        "linkUrl",
        "linkText",
        "textItem",
        "ChatTextItemHelper*",
        "inQuote",
        "hasAttachment",
        "richFormatEnabled",
        "styleFormatEnabled",
        "bold",
        "italic",
        "underline",
        "strikethrough",
        "unorderedList",
        "orderedList",
        "currentStyle",
        "canIndentListMore",
        "canIndentListLess",
        "currentLinkUrl",
        "currentLinkText"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'textItemChanged'
        QtMocHelpers::SignalData<void()>(3, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'inQuoteChanged'
        QtMocHelpers::SignalData<void()>(5, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'hasAttachmentChanged'
        QtMocHelpers::SignalData<void()>(6, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'richFormatEnabledChanged'
        QtMocHelpers::SignalData<void()>(7, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'charFormatChanged'
        QtMocHelpers::SignalData<void()>(8, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'styleChanged'
        QtMocHelpers::SignalData<void()>(9, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'listChanged'
        QtMocHelpers::SignalData<void()>(10, 4, QMC::AccessPublic, QMetaType::Void),
        // Method 'setFormat'
        QtMocHelpers::MethodData<void(RichFormat::Format)>(11, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 12, 13 },
        }}),
        // Method 'indentListMore'
        QtMocHelpers::MethodData<void()>(14, 4, QMC::AccessPublic, QMetaType::Void),
        // Method 'indentListLess'
        QtMocHelpers::MethodData<void()>(15, 4, QMC::AccessPublic, QMetaType::Void),
        // Method 'insertText'
        QtMocHelpers::MethodData<void(const QString &)>(16, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 17 },
        }}),
        // Method 'updateLink'
        QtMocHelpers::MethodData<void(const QString &, const QString &)>(18, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 19 }, { QMetaType::QString, 20 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'textItem'
        QtMocHelpers::PropertyData<ChatTextItemHelper*>(21, 0x80000000 | 22, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
        // property 'inQuote'
        QtMocHelpers::PropertyData<bool>(23, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
        // property 'hasAttachment'
        QtMocHelpers::PropertyData<bool>(24, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
        // property 'richFormatEnabled'
        QtMocHelpers::PropertyData<bool>(25, QMetaType::Bool, QMC::DefaultPropertyFlags, 3),
        // property 'styleFormatEnabled'
        QtMocHelpers::PropertyData<bool>(26, QMetaType::Bool, QMC::DefaultPropertyFlags, 3),
        // property 'bold'
        QtMocHelpers::PropertyData<bool>(27, QMetaType::Bool, QMC::DefaultPropertyFlags, 4),
        // property 'italic'
        QtMocHelpers::PropertyData<bool>(28, QMetaType::Bool, QMC::DefaultPropertyFlags, 4),
        // property 'underline'
        QtMocHelpers::PropertyData<bool>(29, QMetaType::Bool, QMC::DefaultPropertyFlags, 4),
        // property 'strikethrough'
        QtMocHelpers::PropertyData<bool>(30, QMetaType::Bool, QMC::DefaultPropertyFlags, 4),
        // property 'unorderedList'
        QtMocHelpers::PropertyData<bool>(31, QMetaType::Bool, QMC::DefaultPropertyFlags, 6),
        // property 'orderedList'
        QtMocHelpers::PropertyData<bool>(32, QMetaType::Bool, QMC::DefaultPropertyFlags, 6),
        // property 'currentStyle'
        QtMocHelpers::PropertyData<RichFormat::Format>(33, 0x80000000 | 12, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 5),
        // property 'canIndentListMore'
        QtMocHelpers::PropertyData<bool>(34, QMetaType::Bool, QMC::DefaultPropertyFlags, 6),
        // property 'canIndentListLess'
        QtMocHelpers::PropertyData<bool>(35, QMetaType::Bool, QMC::DefaultPropertyFlags, 6),
        // property 'currentLinkUrl'
        QtMocHelpers::PropertyData<QString>(36, QMetaType::QString, QMC::DefaultPropertyFlags, 4),
        // property 'currentLinkText'
        QtMocHelpers::PropertyData<QString>(37, QMetaType::QString, QMC::DefaultPropertyFlags, 4),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<ChatButtonHelper, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT static const QMetaObject::SuperData qt_meta_extradata_ZN16ChatButtonHelperE[] = {
    QMetaObject::SuperData::link<RichFormat::staticMetaObject>(),
    nullptr
};

Q_CONSTINIT const QMetaObject ChatButtonHelper::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16ChatButtonHelperE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16ChatButtonHelperE_t>.data,
    qt_static_metacall,
    qt_meta_extradata_ZN16ChatButtonHelperE,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN16ChatButtonHelperE_t>.metaTypes,
    nullptr
} };

void ChatButtonHelper::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ChatButtonHelper *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->textItemChanged(); break;
        case 1: _t->inQuoteChanged(); break;
        case 2: _t->hasAttachmentChanged(); break;
        case 3: _t->richFormatEnabledChanged(); break;
        case 4: _t->charFormatChanged(); break;
        case 5: _t->styleChanged(); break;
        case 6: _t->listChanged(); break;
        case 7: _t->setFormat((*reinterpret_cast<std::add_pointer_t<RichFormat::Format>>(_a[1]))); break;
        case 8: _t->indentListMore(); break;
        case 9: _t->indentListLess(); break;
        case 10: _t->insertText((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 11: _t->updateLink((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ChatButtonHelper::*)()>(_a, &ChatButtonHelper::textItemChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (ChatButtonHelper::*)()>(_a, &ChatButtonHelper::inQuoteChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (ChatButtonHelper::*)()>(_a, &ChatButtonHelper::hasAttachmentChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (ChatButtonHelper::*)()>(_a, &ChatButtonHelper::richFormatEnabledChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (ChatButtonHelper::*)()>(_a, &ChatButtonHelper::charFormatChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (ChatButtonHelper::*)()>(_a, &ChatButtonHelper::styleChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (ChatButtonHelper::*)()>(_a, &ChatButtonHelper::listChanged, 6))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< ChatTextItemHelper* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<ChatTextItemHelper**>(_v) = _t->textItem(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->inQuote(); break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->hasAttachment(); break;
        case 3: *reinterpret_cast<bool*>(_v) = _t->richFormatEnabled(); break;
        case 4: *reinterpret_cast<bool*>(_v) = _t->styleFormatEnabled(); break;
        case 5: *reinterpret_cast<bool*>(_v) = _t->bold(); break;
        case 6: *reinterpret_cast<bool*>(_v) = _t->italic(); break;
        case 7: *reinterpret_cast<bool*>(_v) = _t->underline(); break;
        case 8: *reinterpret_cast<bool*>(_v) = _t->strikethrough(); break;
        case 9: *reinterpret_cast<bool*>(_v) = _t->unorderedList(); break;
        case 10: *reinterpret_cast<bool*>(_v) = _t->orderedList(); break;
        case 11: *reinterpret_cast<RichFormat::Format*>(_v) = _t->currentStyle(); break;
        case 12: *reinterpret_cast<bool*>(_v) = _t->canIndentListMore(); break;
        case 13: *reinterpret_cast<bool*>(_v) = _t->canIndentListLess(); break;
        case 14: *reinterpret_cast<QString*>(_v) = _t->currentLinkUrl(); break;
        case 15: *reinterpret_cast<QString*>(_v) = _t->currentLinkText(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setTextItem(*reinterpret_cast<ChatTextItemHelper**>(_v)); break;
        case 1: _t->setInQuote(*reinterpret_cast<bool*>(_v)); break;
        case 2: _t->setHasAttachment(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

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

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

int ChatButtonHelper::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::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 -= 16;
    }
    return _id;
}

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

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

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

// SIGNAL 3
void ChatButtonHelper::richFormatEnabledChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void ChatButtonHelper::charFormatChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void ChatButtonHelper::styleChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void ChatButtonHelper::listChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}
QT_WARNING_POP
