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

#include "../../../jami-client-qt/src/app/collabrichbinding.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 'collabrichbinding.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.2. 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_ZN17CollabRichBindingE_t {};
} // unnamed namespace

template <> constexpr inline auto CollabRichBinding::qt_create_metaobjectdata<qt_meta_tag_ZN17CollabRichBindingE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "CollabRichBinding",
        "textDocumentChanged",
        "",
        "localDelta",
        "deltaJson",
        "attachmentNeeded",
        "id",
        "viewWidthChanged",
        "clipboardHasImageChanged",
        "revisionChanged",
        "loadContentDelta",
        "applyRemoteDelta",
        "transformPositions",
        "QVariantList",
        "positions",
        "toggleInline",
        "attr",
        "start",
        "end",
        "setHeading",
        "level",
        "setList",
        "style",
        "setAlign",
        "align",
        "pasteText",
        "insertText",
        "text",
        "setLink",
        "href",
        "clearFormat",
        "selectionFormat",
        "QVariantMap",
        "insertImage",
        "position",
        "width",
        "height",
        "referencesAttachment",
        "exportToFile",
        "QUrl",
        "file",
        "title",
        "canExportAs",
        "suffix",
        "unresolvedImageCount",
        "imageInfoAt",
        "index",
        "imageAtPoint",
        "x",
        "y",
        "maxImageWidth",
        "previewImageWidth",
        "setImageWidth",
        "reflowAlignedImages",
        "textDocument",
        "QQuickTextDocument*",
        "revision",
        "clipboardHasImage",
        "viewWidth"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'textDocumentChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'localDelta'
        QtMocHelpers::SignalData<void(const QString &)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 4 },
        }}),
        // Signal 'attachmentNeeded'
        QtMocHelpers::SignalData<void(const QString &)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 6 },
        }}),
        // Signal 'viewWidthChanged'
        QtMocHelpers::SignalData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'clipboardHasImageChanged'
        QtMocHelpers::SignalData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'revisionChanged'
        QtMocHelpers::SignalData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'loadContentDelta'
        QtMocHelpers::MethodData<void(const QString &)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 4 },
        }}),
        // Method 'applyRemoteDelta'
        QtMocHelpers::MethodData<void(const QString &)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 4 },
        }}),
        // Method 'transformPositions'
        QtMocHelpers::MethodData<QVariantList(const QString &, const QVariantList &) const>(12, 2, QMC::AccessPublic, 0x80000000 | 13, {{
            { QMetaType::QString, 4 }, { 0x80000000 | 13, 14 },
        }}),
        // Method 'toggleInline'
        QtMocHelpers::MethodData<void(const QString &, int, int)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 16 }, { QMetaType::Int, 17 }, { QMetaType::Int, 18 },
        }}),
        // Method 'setHeading'
        QtMocHelpers::MethodData<void(int, int, int)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 20 }, { QMetaType::Int, 17 }, { QMetaType::Int, 18 },
        }}),
        // Method 'setList'
        QtMocHelpers::MethodData<void(const QString &, int, int)>(21, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 22 }, { QMetaType::Int, 17 }, { QMetaType::Int, 18 },
        }}),
        // Method 'setAlign'
        QtMocHelpers::MethodData<void(const QString &, int, int)>(23, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 24 }, { QMetaType::Int, 17 }, { QMetaType::Int, 18 },
        }}),
        // Method 'pasteText'
        QtMocHelpers::MethodData<void(int, int)>(25, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 17 }, { QMetaType::Int, 18 },
        }}),
        // Method 'insertText'
        QtMocHelpers::MethodData<void(int, int, const QString &)>(26, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 17 }, { QMetaType::Int, 18 }, { QMetaType::QString, 27 },
        }}),
        // Method 'setLink'
        QtMocHelpers::MethodData<void(const QString &, int, int)>(28, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 29 }, { QMetaType::Int, 17 }, { QMetaType::Int, 18 },
        }}),
        // Method 'clearFormat'
        QtMocHelpers::MethodData<void(int, int)>(30, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 17 }, { QMetaType::Int, 18 },
        }}),
        // Method 'selectionFormat'
        QtMocHelpers::MethodData<QVariantMap(int, int)>(31, 2, QMC::AccessPublic, 0x80000000 | 32, {{
            { QMetaType::Int, 17 }, { QMetaType::Int, 18 },
        }}),
        // Method 'insertImage'
        QtMocHelpers::MethodData<void(int, const QString &, int, int)>(33, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 34 }, { QMetaType::QString, 6 }, { QMetaType::Int, 35 }, { QMetaType::Int, 36 },
        }}),
        // Method 'insertImage'
        QtMocHelpers::MethodData<void(int, const QString &, int)>(33, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { QMetaType::Int, 34 }, { QMetaType::QString, 6 }, { QMetaType::Int, 35 },
        }}),
        // Method 'insertImage'
        QtMocHelpers::MethodData<void(int, const QString &)>(33, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { QMetaType::Int, 34 }, { QMetaType::QString, 6 },
        }}),
        // Method 'referencesAttachment'
        QtMocHelpers::MethodData<bool(const QString &) const>(37, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 6 },
        }}),
        // Method 'exportToFile'
        QtMocHelpers::MethodData<bool(const QUrl &, const QString &)>(38, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 39, 40 }, { QMetaType::QString, 41 },
        }}),
        // Method 'exportToFile'
        QtMocHelpers::MethodData<bool(const QUrl &)>(38, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Bool, {{
            { 0x80000000 | 39, 40 },
        }}),
        // Method 'canExportAs'
        QtMocHelpers::MethodData<bool(const QString &) const>(42, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 43 },
        }}),
        // Method 'unresolvedImageCount'
        QtMocHelpers::MethodData<int() const>(44, 2, QMC::AccessPublic, QMetaType::Int),
        // Method 'imageInfoAt'
        QtMocHelpers::MethodData<QVariantMap(int) const>(45, 2, QMC::AccessPublic, 0x80000000 | 32, {{
            { QMetaType::Int, 46 },
        }}),
        // Method 'imageAtPoint'
        QtMocHelpers::MethodData<int(qreal, qreal) const>(47, 2, QMC::AccessPublic, QMetaType::Int, {{
            { QMetaType::QReal, 48 }, { QMetaType::QReal, 49 },
        }}),
        // Method 'maxImageWidth'
        QtMocHelpers::MethodData<int() const>(50, 2, QMC::AccessPublic, QMetaType::Int),
        // Method 'previewImageWidth'
        QtMocHelpers::MethodData<int(int, int)>(51, 2, QMC::AccessPublic, QMetaType::Int, {{
            { QMetaType::Int, 46 }, { QMetaType::Int, 35 },
        }}),
        // Method 'setImageWidth'
        QtMocHelpers::MethodData<void(int, int)>(52, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 46 }, { QMetaType::Int, 35 },
        }}),
        // Method 'reflowAlignedImages'
        QtMocHelpers::MethodData<void()>(53, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'textDocument'
        QtMocHelpers::PropertyData<QQuickTextDocument*>(54, 0x80000000 | 55, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
        // property 'revision'
        QtMocHelpers::PropertyData<int>(56, QMetaType::Int, QMC::DefaultPropertyFlags, 5),
        // property 'clipboardHasImage'
        QtMocHelpers::PropertyData<bool>(57, QMetaType::Bool, QMC::DefaultPropertyFlags, 4),
        // property 'viewWidth'
        QtMocHelpers::PropertyData<int>(58, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 3),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<CollabRichBinding, qt_meta_tag_ZN17CollabRichBindingE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject CollabRichBinding::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN17CollabRichBindingE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN17CollabRichBindingE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN17CollabRichBindingE_t>.metaTypes,
    nullptr
} };

void CollabRichBinding::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<CollabRichBinding *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->textDocumentChanged(); break;
        case 1: _t->localDelta((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 2: _t->attachmentNeeded((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 3: _t->viewWidthChanged(); break;
        case 4: _t->clipboardHasImageChanged(); break;
        case 5: _t->revisionChanged(); break;
        case 6: _t->loadContentDelta((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 7: _t->applyRemoteDelta((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 8: { QVariantList _r = _t->transformPositions((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QVariantList>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QVariantList*>(_a[0]) = std::move(_r); }  break;
        case 9: _t->toggleInline((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3]))); break;
        case 10: _t->setHeading((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3]))); break;
        case 11: _t->setList((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3]))); break;
        case 12: _t->setAlign((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3]))); break;
        case 13: _t->pasteText((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 14: _t->insertText((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3]))); break;
        case 15: _t->setLink((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3]))); break;
        case 16: _t->clearFormat((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 17: { QVariantMap _r = _t->selectionFormat((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QVariantMap*>(_a[0]) = std::move(_r); }  break;
        case 18: _t->insertImage((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[4]))); break;
        case 19: _t->insertImage((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3]))); break;
        case 20: _t->insertImage((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 21: { bool _r = _t->referencesAttachment((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 22: { bool _r = _t->exportToFile((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 23: { bool _r = _t->exportToFile((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 24: { bool _r = _t->canExportAs((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 25: { int _r = _t->unresolvedImageCount();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 26: { QVariantMap _r = _t->imageInfoAt((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QVariantMap*>(_a[0]) = std::move(_r); }  break;
        case 27: { int _r = _t->imageAtPoint((*reinterpret_cast<std::add_pointer_t<qreal>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<qreal>>(_a[2])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 28: { int _r = _t->maxImageWidth();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 29: { int _r = _t->previewImageWidth((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 30: _t->setImageWidth((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 31: _t->reflowAlignedImages(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (CollabRichBinding::*)()>(_a, &CollabRichBinding::textDocumentChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (CollabRichBinding::*)(const QString & )>(_a, &CollabRichBinding::localDelta, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (CollabRichBinding::*)(const QString & )>(_a, &CollabRichBinding::attachmentNeeded, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (CollabRichBinding::*)()>(_a, &CollabRichBinding::viewWidthChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (CollabRichBinding::*)()>(_a, &CollabRichBinding::clipboardHasImageChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (CollabRichBinding::*)()>(_a, &CollabRichBinding::revisionChanged, 5))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickTextDocument* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QQuickTextDocument**>(_v) = _t->textDocument(); break;
        case 1: *reinterpret_cast<int*>(_v) = _t->revision(); break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->clipboardHasImage(); break;
        case 3: *reinterpret_cast<int*>(_v) = _t->viewWidth(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setTextDocument(*reinterpret_cast<QQuickTextDocument**>(_v)); break;
        case 3: _t->setViewWidth(*reinterpret_cast<int*>(_v)); break;
        default: break;
        }
    }
}

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

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

int CollabRichBinding::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 < 32)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 32;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 32)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 32;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 4;
    }
    return _id;
}

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

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

// SIGNAL 2
void CollabRichBinding::attachmentNeeded(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

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

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

// SIGNAL 5
void CollabRichBinding::revisionChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}
QT_WARNING_POP
