/****************************************************************************
** Meta object code from reading C++ file 'chatbarmessagecontentmodel.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.90/src/messagecontent/models/chatbarmessagecontentmodel.h"
#include <QtGui/qtextcursor.h>
#include <QtNetwork/QSslError>
#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 'chatbarmessagecontentmodel.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_ZN26ChatBarMessageContentModelE_t {};
} // unnamed namespace

template <> constexpr inline auto ChatBarMessageContentModel::qt_create_metaobjectdata<qt_meta_tag_ZN26ChatBarMessageContentModelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "ChatBarMessageContentModel",
        "QML.Element",
        "auto",
        "typeChanged",
        "",
        "ChatBarType::Type",
        "oldType",
        "newType",
        "threadRootIdChanged",
        "focusRowChanged",
        "hasRichFormattingChanged",
        "hasAttachmentChanged",
        "sendMessageWithEnterChanged",
        "hasAnyContentChanged",
        "setFocusRow",
        "focusRow",
        "mouse",
        "refocusCurrentComponent",
        "insertStyleAtCursor",
        "RichFormat::Format",
        "style",
        "addAttachment",
        "QUrl",
        "path",
        "addReply",
        "eventId",
        "updateCache",
        "addLocation",
        "latitude",
        "longitude",
        "asset",
        "removeReply",
        "drop",
        "QList<QUrl>",
        "urls",
        "transferPortal",
        "removeComponent",
        "row",
        "removeLast",
        "removeAttachment",
        "resetModel",
        "postMessage",
        "type",
        "threadRootId",
        "focusType",
        "Blocks::Type",
        "keyHelper",
        "ChatKeyHelper*",
        "focusedTextItem",
        "ChatTextItemHelper*",
        "hasRichFormatting",
        "hasAttachment",
        "sendMessageWithEnter",
        "hasAnyContent",
        "sendTypingNotifications"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'typeChanged'
        QtMocHelpers::SignalData<void(ChatBarType::Type, ChatBarType::Type)>(3, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 6 }, { 0x80000000 | 5, 7 },
        }}),
        // Signal 'threadRootIdChanged'
        QtMocHelpers::SignalData<void()>(8, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'focusRowChanged'
        QtMocHelpers::SignalData<void()>(9, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'hasRichFormattingChanged'
        QtMocHelpers::SignalData<void()>(10, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'hasAttachmentChanged'
        QtMocHelpers::SignalData<void()>(11, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'sendMessageWithEnterChanged'
        QtMocHelpers::SignalData<void()>(12, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'hasAnyContentChanged'
        QtMocHelpers::SignalData<void()>(13, 4, QMC::AccessPublic, QMetaType::Void),
        // Method 'setFocusRow'
        QtMocHelpers::MethodData<void(int, bool)>(14, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 15 }, { QMetaType::Bool, 16 },
        }}),
        // Method 'setFocusRow'
        QtMocHelpers::MethodData<void(int)>(14, 4, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { QMetaType::Int, 15 },
        }}),
        // Method 'refocusCurrentComponent'
        QtMocHelpers::MethodData<void() const>(17, 4, QMC::AccessPublic, QMetaType::Void),
        // Method 'insertStyleAtCursor'
        QtMocHelpers::MethodData<void(RichFormat::Format)>(18, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 19, 20 },
        }}),
        // Method 'addAttachment'
        QtMocHelpers::MethodData<void(const QUrl &)>(21, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 22, 23 },
        }}),
        // Method 'addReply'
        QtMocHelpers::MethodData<void(const QString &, bool)>(24, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 25 }, { QMetaType::Bool, 26 },
        }}),
        // Method 'addReply'
        QtMocHelpers::MethodData<void(const QString &)>(24, 4, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { QMetaType::QString, 25 },
        }}),
        // Method 'addLocation'
        QtMocHelpers::MethodData<void(qreal, qreal, const QString &)>(27, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QReal, 28 }, { QMetaType::QReal, 29 }, { QMetaType::QString, 30 },
        }}),
        // Method 'removeReply'
        QtMocHelpers::MethodData<void()>(31, 4, QMC::AccessPublic, QMetaType::Void),
        // Method 'drop'
        QtMocHelpers::MethodData<void(QList<QUrl>, const QString &)>(32, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 33, 34 }, { QMetaType::QString, 35 },
        }}),
        // Method 'removeComponent'
        QtMocHelpers::MethodData<void(int, bool)>(36, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 37 }, { QMetaType::Bool, 38 },
        }}),
        // Method 'removeComponent'
        QtMocHelpers::MethodData<void(int)>(36, 4, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { QMetaType::Int, 37 },
        }}),
        // Method 'removeAttachment'
        QtMocHelpers::MethodData<void()>(39, 4, QMC::AccessPublic, QMetaType::Void),
        // Method 'resetModel'
        QtMocHelpers::MethodData<void()>(40, 4, QMC::AccessPublic, QMetaType::Void),
        // Method 'postMessage'
        QtMocHelpers::MethodData<void()>(41, 4, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'type'
        QtMocHelpers::PropertyData<ChatBarType::Type>(42, 0x80000000 | 5, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
        // property 'threadRootId'
        QtMocHelpers::PropertyData<QString>(43, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
        // property 'focusRow'
        QtMocHelpers::PropertyData<int>(15, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
        // property 'focusType'
        QtMocHelpers::PropertyData<Blocks::Type>(44, 0x80000000 | 45, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 2),
        // property 'keyHelper'
        QtMocHelpers::PropertyData<ChatKeyHelper*>(46, 0x80000000 | 47, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'focusedTextItem'
        QtMocHelpers::PropertyData<ChatTextItemHelper*>(48, 0x80000000 | 49, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 2),
        // property 'hasRichFormatting'
        QtMocHelpers::PropertyData<bool>(50, QMetaType::Bool, QMC::DefaultPropertyFlags, 3),
        // property 'hasAttachment'
        QtMocHelpers::PropertyData<bool>(51, QMetaType::Bool, QMC::DefaultPropertyFlags, 4),
        // property 'sendMessageWithEnter'
        QtMocHelpers::PropertyData<bool>(52, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 5),
        // property 'hasAnyContent'
        QtMocHelpers::PropertyData<bool>(53, QMetaType::Bool, QMC::DefaultPropertyFlags, 6),
        // property 'sendTypingNotifications'
        QtMocHelpers::PropertyData<bool>(54, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<ChatBarMessageContentModel, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT static const QMetaObject::SuperData qt_meta_extradata_ZN26ChatBarMessageContentModelE[] = {
    QMetaObject::SuperData::link<ChatBarType::staticMetaObject>(),
    QMetaObject::SuperData::link<Blocks::staticMetaObject>(),
    nullptr
};

Q_CONSTINIT const QMetaObject ChatBarMessageContentModel::staticMetaObject = { {
    QMetaObject::SuperData::link<MessageContentModel::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN26ChatBarMessageContentModelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN26ChatBarMessageContentModelE_t>.data,
    qt_static_metacall,
    qt_meta_extradata_ZN26ChatBarMessageContentModelE,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN26ChatBarMessageContentModelE_t>.metaTypes,
    nullptr
} };

void ChatBarMessageContentModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ChatBarMessageContentModel *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->typeChanged((*reinterpret_cast<std::add_pointer_t<ChatBarType::Type>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<ChatBarType::Type>>(_a[2]))); break;
        case 1: _t->threadRootIdChanged(); break;
        case 2: _t->focusRowChanged(); break;
        case 3: _t->hasRichFormattingChanged(); break;
        case 4: _t->hasAttachmentChanged(); break;
        case 5: _t->sendMessageWithEnterChanged(); break;
        case 6: _t->hasAnyContentChanged(); break;
        case 7: _t->setFocusRow((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 8: _t->setFocusRow((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 9: _t->refocusCurrentComponent(); break;
        case 10: _t->insertStyleAtCursor((*reinterpret_cast<std::add_pointer_t<RichFormat::Format>>(_a[1]))); break;
        case 11: _t->addAttachment((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1]))); break;
        case 12: _t->addReply((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 13: _t->addReply((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 14: _t->addLocation((*reinterpret_cast<std::add_pointer_t<qreal>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<qreal>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3]))); break;
        case 15: _t->removeReply(); break;
        case 16: _t->drop((*reinterpret_cast<std::add_pointer_t<QList<QUrl>>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 17: _t->removeComponent((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 18: _t->removeComponent((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 19: _t->removeAttachment(); break;
        case 20: _t->resetModel(); break;
        case 21: _t->postMessage(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ChatBarMessageContentModel::*)(ChatBarType::Type , ChatBarType::Type )>(_a, &ChatBarMessageContentModel::typeChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (ChatBarMessageContentModel::*)()>(_a, &ChatBarMessageContentModel::threadRootIdChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (ChatBarMessageContentModel::*)()>(_a, &ChatBarMessageContentModel::focusRowChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (ChatBarMessageContentModel::*)()>(_a, &ChatBarMessageContentModel::hasRichFormattingChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (ChatBarMessageContentModel::*)()>(_a, &ChatBarMessageContentModel::hasAttachmentChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (ChatBarMessageContentModel::*)()>(_a, &ChatBarMessageContentModel::sendMessageWithEnterChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (ChatBarMessageContentModel::*)()>(_a, &ChatBarMessageContentModel::hasAnyContentChanged, 6))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 4:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< ChatKeyHelper* >(); break;
        case 5:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< ChatTextItemHelper* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<ChatBarType::Type*>(_v) = _t->type(); break;
        case 1: *reinterpret_cast<QString*>(_v) = _t->threadRootId(); break;
        case 2: *reinterpret_cast<int*>(_v) = _t->focusRow(); break;
        case 3: *reinterpret_cast<Blocks::Type*>(_v) = _t->focusType(); break;
        case 4: *reinterpret_cast<ChatKeyHelper**>(_v) = _t->keyHelper(); break;
        case 5: *reinterpret_cast<ChatTextItemHelper**>(_v) = _t->focusedTextItem(); break;
        case 6: *reinterpret_cast<bool*>(_v) = _t->hasRichFormatting(); break;
        case 7: *reinterpret_cast<bool*>(_v) = _t->hasAttachment(); break;
        case 8: *reinterpret_cast<bool*>(_v) = _t->sendMessageWithEnter(); break;
        case 9: *reinterpret_cast<bool*>(_v) = _t->hasAnyContent(); break;
        case 10: *reinterpret_cast<bool*>(_v) = _t->sendTypingNotifications(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setType(*reinterpret_cast<ChatBarType::Type*>(_v)); break;
        case 1: _t->setThreadRootId(*reinterpret_cast<QString*>(_v)); break;
        case 2: _t->setFocusRow(*reinterpret_cast<int*>(_v)); break;
        case 8: _t->setSendMessageWithEnter(*reinterpret_cast<bool*>(_v)); break;
        case 10: _t->setSendTypingNotifications(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

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

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

int ChatBarMessageContentModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = MessageContentModel::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)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 22;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    }
    return _id;
}

// SIGNAL 0
void ChatBarMessageContentModel::typeChanged(ChatBarType::Type _t1, ChatBarType::Type _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2);
}

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

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

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

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

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

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