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

#include "../../../../subtitlecomposer/src/scripting/scripting_rangelist.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 'scripting_rangelist.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.10.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_ZN16SubtitleComposer9Scripting9RangeListE_t {};
} // unnamed namespace

template <> constexpr inline auto SubtitleComposer::Scripting::RangeList::qt_create_metaobjectdata<qt_meta_tag_ZN16SubtitleComposer9Scripting9RangeListE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "SubtitleComposer::Scripting::RangeList",
        "complement",
        "",
        "isEmpty",
        "rangesCount",
        "indexesCount",
        "firstIndex",
        "lastIndex",
        "range",
        "rangeIndex",
        "contains",
        "index",
        "clear",
        "trimToIndex",
        "trimToRange",
        "addIndex",
        "addRange",
        "shiftIndexesForwards",
        "fromIndex",
        "delta",
        "fillSplitGap",
        "shiftIndexesBackwards"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'complement'
        QtMocHelpers::SlotData<QObject *() const>(1, 2, QMC::AccessPublic, QMetaType::QObjectStar),
        // Slot 'isEmpty'
        QtMocHelpers::SlotData<bool() const>(3, 2, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'rangesCount'
        QtMocHelpers::SlotData<int() const>(4, 2, QMC::AccessPublic, QMetaType::Int),
        // Slot 'indexesCount'
        QtMocHelpers::SlotData<int() const>(5, 2, QMC::AccessPublic, QMetaType::Int),
        // Slot 'firstIndex'
        QtMocHelpers::SlotData<int() const>(6, 2, QMC::AccessPublic, QMetaType::Int),
        // Slot 'lastIndex'
        QtMocHelpers::SlotData<int() const>(7, 2, QMC::AccessPublic, QMetaType::Int),
        // Slot 'range'
        QtMocHelpers::SlotData<QObject *(int) const>(8, 2, QMC::AccessPublic, QMetaType::QObjectStar, {{
            { QMetaType::Int, 9 },
        }}),
        // Slot 'contains'
        QtMocHelpers::SlotData<bool(int) const>(10, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::Int, 11 },
        }}),
        // Slot 'clear'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'trimToIndex'
        QtMocHelpers::SlotData<void(int)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 11 },
        }}),
        // Slot 'trimToRange'
        QtMocHelpers::SlotData<void(QObject *)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QObjectStar, 8 },
        }}),
        // Slot 'addIndex'
        QtMocHelpers::SlotData<QObject *(int)>(15, 2, QMC::AccessPublic, QMetaType::QObjectStar, {{
            { QMetaType::Int, 11 },
        }}),
        // Slot 'addRange'
        QtMocHelpers::SlotData<QObject *(QObject *)>(16, 2, QMC::AccessPublic, QMetaType::QObjectStar, {{
            { QMetaType::QObjectStar, 8 },
        }}),
        // Slot 'shiftIndexesForwards'
        QtMocHelpers::SlotData<void(int, int, bool)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 18 }, { QMetaType::Int, 19 }, { QMetaType::Bool, 20 },
        }}),
        // Slot 'shiftIndexesBackwards'
        QtMocHelpers::SlotData<void(int, int)>(21, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 18 }, { QMetaType::Int, 19 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<RangeList, qt_meta_tag_ZN16SubtitleComposer9Scripting9RangeListE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject SubtitleComposer::Scripting::RangeList::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16SubtitleComposer9Scripting9RangeListE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16SubtitleComposer9Scripting9RangeListE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN16SubtitleComposer9Scripting9RangeListE_t>.metaTypes,
    nullptr
} };

void SubtitleComposer::Scripting::RangeList::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<RangeList *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: { QObject* _r = _t->complement();
            if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = std::move(_r); }  break;
        case 1: { bool _r = _t->isEmpty();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 2: { int _r = _t->rangesCount();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 3: { int _r = _t->indexesCount();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 4: { int _r = _t->firstIndex();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 5: { int _r = _t->lastIndex();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 6: { QObject* _r = _t->range((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = std::move(_r); }  break;
        case 7: { bool _r = _t->contains((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 8: _t->clear(); break;
        case 9: _t->trimToIndex((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 10: _t->trimToRange((*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[1]))); break;
        case 11: { QObject* _r = _t->addIndex((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = std::move(_r); }  break;
        case 12: { QObject* _r = _t->addRange((*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = std::move(_r); }  break;
        case 13: _t->shiftIndexesForwards((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[3]))); break;
        case 14: _t->shiftIndexesBackwards((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        default: ;
        }
    }
}

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

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

int SubtitleComposer::Scripting::RangeList::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 < 15)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 15;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 15)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 15;
    }
    return _id;
}
QT_WARNING_POP
