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

#include "../../../../../ktexttemplate-6.26.0/src/scriptabletags/scriptabletags.h"
#include <QtCore/qmetatype.h>
#include <QtCore/qplugin.h>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'scriptabletags.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.1. 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_ZN13KTextTemplate25ScriptableHelperFunctionsE_t {};
} // unnamed namespace

template <> constexpr inline auto KTextTemplate::ScriptableHelperFunctions::qt_create_metaobjectdata<qt_meta_tag_ZN13KTextTemplate25ScriptableHelperFunctionsE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "KTextTemplate::ScriptableHelperFunctions",
        "markSafeFunction",
        "QJSValue",
        "",
        "inputValue",
        "ScriptableFilterExpressionConstructor",
        "name",
        "parserObj",
        "ScriptableNodeConstructor",
        "callContext",
        "ScriptableVariableConstructor",
        "ScriptableTemplateConstructor",
        "content",
        "parent"
    };

    QtMocHelpers::UintData qt_methods {
        // Method 'markSafeFunction'
        QtMocHelpers::MethodData<QJSValue(QJSValue)>(1, 3, QMC::AccessPublic, 0x80000000 | 2, {{
            { 0x80000000 | 2, 4 },
        }}),
        // Method 'ScriptableFilterExpressionConstructor'
        QtMocHelpers::MethodData<QJSValue(QString, QObject *)>(5, 3, QMC::AccessPublic, 0x80000000 | 2, {{
            { QMetaType::QString, 6 }, { QMetaType::QObjectStar, 7 },
        }}),
        // Method 'ScriptableFilterExpressionConstructor'
        QtMocHelpers::MethodData<QJSValue(QString)>(5, 3, QMC::AccessPublic | QMC::MethodCloned, 0x80000000 | 2, {{
            { QMetaType::QString, 6 },
        }}),
        // Method 'ScriptableNodeConstructor'
        QtMocHelpers::MethodData<QJSValue(QJSValue)>(8, 3, QMC::AccessPublic, 0x80000000 | 2, {{
            { 0x80000000 | 2, 9 },
        }}),
        // Method 'ScriptableVariableConstructor'
        QtMocHelpers::MethodData<QJSValue(QString)>(10, 3, QMC::AccessPublic, 0x80000000 | 2, {{
            { QMetaType::QString, 6 },
        }}),
        // Method 'ScriptableTemplateConstructor'
        QtMocHelpers::MethodData<QJSValue(QString, QString, QObject *)>(11, 3, QMC::AccessPublic, 0x80000000 | 2, {{
            { QMetaType::QString, 12 }, { QMetaType::QString, 6 }, { QMetaType::QObjectStar, 13 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<ScriptableHelperFunctions, qt_meta_tag_ZN13KTextTemplate25ScriptableHelperFunctionsE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject KTextTemplate::ScriptableHelperFunctions::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13KTextTemplate25ScriptableHelperFunctionsE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13KTextTemplate25ScriptableHelperFunctionsE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN13KTextTemplate25ScriptableHelperFunctionsE_t>.metaTypes,
    nullptr
} };

void KTextTemplate::ScriptableHelperFunctions::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ScriptableHelperFunctions *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: { QJSValue _r = _t->markSafeFunction((*reinterpret_cast<std::add_pointer_t<QJSValue>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QJSValue*>(_a[0]) = std::move(_r); }  break;
        case 1: { QJSValue _r = _t->ScriptableFilterExpressionConstructor((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QJSValue*>(_a[0]) = std::move(_r); }  break;
        case 2: { QJSValue _r = _t->ScriptableFilterExpressionConstructor((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QJSValue*>(_a[0]) = std::move(_r); }  break;
        case 3: { QJSValue _r = _t->ScriptableNodeConstructor((*reinterpret_cast<std::add_pointer_t<QJSValue>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QJSValue*>(_a[0]) = std::move(_r); }  break;
        case 4: { QJSValue _r = _t->ScriptableVariableConstructor((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QJSValue*>(_a[0]) = std::move(_r); }  break;
        case 5: { QJSValue _r = _t->ScriptableTemplateConstructor((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[3])));
            if (_a[0]) *reinterpret_cast<QJSValue*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QJSValue >(); break;
            }
            break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QJSValue >(); break;
            }
            break;
        }
    }
}

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

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

int KTextTemplate::ScriptableHelperFunctions::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 < 6)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 6;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 6)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 6;
    }
    return _id;
}
namespace {
struct qt_meta_tag_ZN13KTextTemplate20ScriptableTagLibraryE_t {};
} // unnamed namespace

template <> constexpr inline auto KTextTemplate::ScriptableTagLibrary::qt_create_metaobjectdata<qt_meta_tag_ZN13KTextTemplate20ScriptableTagLibraryE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "KTextTemplate::ScriptableTagLibrary",
        "addFactory",
        "",
        "factoryName",
        "tagname",
        "addFilter",
        "filterName"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'addFactory'
        QtMocHelpers::SlotData<void(const QString &, const QString &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 }, { QMetaType::QString, 4 },
        }}),
        // Slot 'addFilter'
        QtMocHelpers::SlotData<void(const QString &)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 6 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<ScriptableTagLibrary, qt_meta_tag_ZN13KTextTemplate20ScriptableTagLibraryE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject KTextTemplate::ScriptableTagLibrary::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13KTextTemplate20ScriptableTagLibraryE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13KTextTemplate20ScriptableTagLibraryE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN13KTextTemplate20ScriptableTagLibraryE_t>.metaTypes,
    nullptr
} };

void KTextTemplate::ScriptableTagLibrary::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ScriptableTagLibrary *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->addFactory((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 1: _t->addFilter((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        default: ;
        }
    }
}

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

void *KTextTemplate::ScriptableTagLibrary::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13KTextTemplate20ScriptableTagLibraryE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "TagLibraryInterface"))
        return static_cast< TagLibraryInterface*>(this);
    if (!strcmp(_clname, "org.kde.KTextTemplate.TagLibraryInterface/1.0"))
        return static_cast< KTextTemplate::TagLibraryInterface*>(this);
    return QObject::qt_metacast(_clname);
}

int KTextTemplate::ScriptableTagLibrary::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 < 2)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 2;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 2)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 2;
    }
    return _id;
}
using namespace KTextTemplate;

#ifdef QT_MOC_EXPORT_PLUGIN_V2
static constexpr unsigned char qt_pluginMetaDataV2_ScriptableTagLibrary[] = {
    0xbf, 
    // "IID"
    0x02,  0x78,  0x29,  'o',  'r',  'g',  '.',  'k', 
    'd',  'e',  '.',  'K',  'T',  'e',  'x',  't', 
    'T',  'e',  'm',  'p',  'l',  'a',  't',  'e', 
    '.',  'T',  'a',  'g',  'L',  'i',  'b',  'r', 
    'a',  'r',  'y',  'I',  'n',  't',  'e',  'r', 
    'f',  'a',  'c',  'e', 
    // "className"
    0x03,  0x74,  'S',  'c',  'r',  'i',  'p',  't', 
    'a',  'b',  'l',  'e',  'T',  'a',  'g',  'L', 
    'i',  'b',  'r',  'a',  'r',  'y', 
    0xff, 
};
QT_MOC_EXPORT_PLUGIN_V2(KTextTemplate::ScriptableTagLibrary, ScriptableTagLibrary, qt_pluginMetaDataV2_ScriptableTagLibrary)
#else
QT_PLUGIN_METADATA_SECTION
Q_CONSTINIT static constexpr unsigned char qt_pluginMetaData_ScriptableTagLibrary[] = {
    'Q', 'T', 'M', 'E', 'T', 'A', 'D', 'A', 'T', 'A', ' ', '!',
    // metadata version, Qt version, architectural requirements
    0, QT_VERSION_MAJOR, QT_VERSION_MINOR, qPluginArchRequirements(),
    0xbf, 
    // "IID"
    0x02,  0x78,  0x29,  'o',  'r',  'g',  '.',  'k', 
    'd',  'e',  '.',  'K',  'T',  'e',  'x',  't', 
    'T',  'e',  'm',  'p',  'l',  'a',  't',  'e', 
    '.',  'T',  'a',  'g',  'L',  'i',  'b',  'r', 
    'a',  'r',  'y',  'I',  'n',  't',  'e',  'r', 
    'f',  'a',  'c',  'e', 
    // "className"
    0x03,  0x74,  'S',  'c',  'r',  'i',  'p',  't', 
    'a',  'b',  'l',  'e',  'T',  'a',  'g',  'L', 
    'i',  'b',  'r',  'a',  'r',  'y', 
    0xff, 
};
QT_MOC_EXPORT_PLUGIN(KTextTemplate::ScriptableTagLibrary, ScriptableTagLibrary)
#endif  // QT_MOC_EXPORT_PLUGIN_V2

QT_WARNING_POP
