/****************************************************************************
** Meta object code from reading C++ file 'AmarokScriptableServiceScript.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 "../../../../amarok-3.3.3/src/scripting/scriptengine/AmarokScriptableServiceScript.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 'AmarokScriptableServiceScript.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_ZN12AmarokScript23ScriptableServiceScriptE_t {};
} // unnamed namespace

template <> constexpr inline auto AmarokScript::ScriptableServiceScript::qt_create_metaobjectdata<qt_meta_tag_ZN12AmarokScript23ScriptableServiceScriptE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "AmarokScript::ScriptableServiceScript",
        "populate",
        "",
        "fetchInfo",
        "customize",
        "insertItem",
        "StreamItem*",
        "item",
        "setCurrentInfo",
        "infoHtml",
        "donePopulating",
        "setIcon",
        "QPixmap",
        "icon",
        "setEmblem",
        "setScalableEmblem",
        "emblemPath",
        "ScriptableServiceScript_prototype_ctor",
        "serviceName",
        "levels",
        "shortDescription",
        "rootHtml",
        "showSearchBar"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'populate'
        QtMocHelpers::SignalData<void(int, const QString &, const QString &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 }, { QMetaType::QString, 2 }, { QMetaType::QString, 2 },
        }}),
        // Signal 'fetchInfo'
        QtMocHelpers::SignalData<void(int, const QString &)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 }, { QMetaType::QString, 2 },
        }}),
        // Signal 'customize'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'insertItem'
        QtMocHelpers::MethodData<int(StreamItem *)>(5, 2, QMC::AccessPublic, QMetaType::Int, {{
            { 0x80000000 | 6, 7 },
        }}),
        // Method 'setCurrentInfo'
        QtMocHelpers::MethodData<void(const QString &)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 9 },
        }}),
        // Method 'donePopulating'
        QtMocHelpers::MethodData<int() const>(10, 2, QMC::AccessPublic, QMetaType::Int),
        // Method 'setIcon'
        QtMocHelpers::MethodData<void(const QPixmap &)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 12, 13 },
        }}),
        // Method 'setEmblem'
        QtMocHelpers::MethodData<void(const QPixmap &)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 12, 13 },
        }}),
        // Method 'setScalableEmblem'
        QtMocHelpers::MethodData<void(const QString &)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 16 },
        }}),
        // Method 'ScriptableServiceScript_prototype_ctor'
        QtMocHelpers::MethodData<QObject *(QString, int, QString, QString, bool)>(17, 2, QMC::AccessPublic, QMetaType::QObjectStar, {{
            { QMetaType::QString, 18 }, { QMetaType::Int, 19 }, { QMetaType::QString, 20 }, { QMetaType::QString, 21 },
            { QMetaType::Bool, 22 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<ScriptableServiceScript, qt_meta_tag_ZN12AmarokScript23ScriptableServiceScriptE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject AmarokScript::ScriptableServiceScript::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12AmarokScript23ScriptableServiceScriptE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12AmarokScript23ScriptableServiceScriptE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12AmarokScript23ScriptableServiceScriptE_t>.metaTypes,
    nullptr
} };

void AmarokScript::ScriptableServiceScript::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ScriptableServiceScript *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->populate((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3]))); break;
        case 1: _t->fetchInfo((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 2: _t->customize(); break;
        case 3: { int _r = _t->insertItem((*reinterpret_cast<std::add_pointer_t<StreamItem*>>(_a[1])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 4: _t->setCurrentInfo((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 5: { int _r = _t->donePopulating();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 6: _t->setIcon((*reinterpret_cast<std::add_pointer_t<QPixmap>>(_a[1]))); break;
        case 7: _t->setEmblem((*reinterpret_cast<std::add_pointer_t<QPixmap>>(_a[1]))); break;
        case 8: _t->setScalableEmblem((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 9: { QObject* _r = _t->ScriptableServiceScript_prototype_ctor((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[4])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[5])));
            if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ScriptableServiceScript::*)(int , const QString & , const QString & )>(_a, &ScriptableServiceScript::populate, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (ScriptableServiceScript::*)(int , const QString & )>(_a, &ScriptableServiceScript::fetchInfo, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (ScriptableServiceScript::*)()>(_a, &ScriptableServiceScript::customize, 2))
            return;
    }
}

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

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

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

// SIGNAL 0
void AmarokScript::ScriptableServiceScript::populate(int _t1, const QString & _t2, const QString & _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2, _t3);
}

// SIGNAL 1
void AmarokScript::ScriptableServiceScript::fetchInfo(int _t1, const QString & _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2);
}

// SIGNAL 2
void AmarokScript::ScriptableServiceScript::customize()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}
QT_WARNING_POP
