/****************************************************************************
** Meta object code from reading C++ file 'AmarokEngineScript.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/AmarokEngineScript.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 'AmarokEngineScript.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_ZN12AmarokScript18AmarokEngineScriptE_t {};
} // unnamed namespace

template <> constexpr inline auto AmarokScript::AmarokEngineScript::qt_create_metaobjectdata<qt_meta_tag_ZN12AmarokScript18AmarokEngineScriptE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "AmarokScript::AmarokEngineScript",
        "trackFinished",
        "",
        "trackChanged",
        "newMetaData",
        "QHash<qint64,QString>",
        "metaData",
        "newTrack",
        "trackSeeked",
        "volumeChanged",
        "trackPlayPause",
        "state",
        "trackPositionChanged",
        "slotNewMetaData",
        "slotPaused",
        "slotPlaying",
        "Play",
        "Stop",
        "forceInstant",
        "Pause",
        "Next",
        "Prev",
        "PlayPause",
        "Seek",
        "ms",
        "SeekRelative",
        "SeekForward",
        "SeekBackward",
        "IncreaseVolume",
        "ticks",
        "DecreaseVolume",
        "Mute",
        "trackPosition",
        "trackPositionMs",
        "engineState",
        "currentTrack",
        "QJSValue",
        "randomMode",
        "dynamicMode",
        "repeatPlaylist",
        "repeatTrack",
        "volume",
        "fadeoutLength"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'trackFinished'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'trackChanged'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'newMetaData'
        QtMocHelpers::SignalData<void(const QHash<qint64,QString> &, bool)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 6 }, { QMetaType::Bool, 7 },
        }}),
        // Signal 'trackSeeked'
        QtMocHelpers::SignalData<void(int)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Signal 'volumeChanged'
        QtMocHelpers::SignalData<void(int)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Signal 'trackPlayPause'
        QtMocHelpers::SignalData<void(int)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 11 },
        }}),
        // Slot 'trackPositionChanged'
        QtMocHelpers::SlotData<void(qint64)>(12, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::LongLong, 2 },
        }}),
        // Slot 'slotNewMetaData'
        QtMocHelpers::SlotData<void()>(13, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'slotPaused'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'slotPlaying'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPrivate, QMetaType::Void),
        // Method 'Play'
        QtMocHelpers::MethodData<void() const>(16, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'Stop'
        QtMocHelpers::MethodData<void(bool) const>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 18 },
        }}),
        // Method 'Stop'
        QtMocHelpers::MethodData<void() const>(17, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Method 'Pause'
        QtMocHelpers::MethodData<void() const>(19, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'Next'
        QtMocHelpers::MethodData<void() const>(20, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'Prev'
        QtMocHelpers::MethodData<void() const>(21, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'PlayPause'
        QtMocHelpers::MethodData<void() const>(22, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'Seek'
        QtMocHelpers::MethodData<void(int) const>(23, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 24 },
        }}),
        // Method 'SeekRelative'
        QtMocHelpers::MethodData<void(int) const>(25, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 24 },
        }}),
        // Method 'SeekForward'
        QtMocHelpers::MethodData<void(int) const>(26, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 24 },
        }}),
        // Method 'SeekForward'
        QtMocHelpers::MethodData<void() const>(26, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Method 'SeekBackward'
        QtMocHelpers::MethodData<void(int) const>(27, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 24 },
        }}),
        // Method 'SeekBackward'
        QtMocHelpers::MethodData<void() const>(27, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Method 'IncreaseVolume'
        QtMocHelpers::MethodData<int(int)>(28, 2, QMC::AccessPublic, QMetaType::Int, {{
            { QMetaType::Int, 29 },
        }}),
        // Method 'IncreaseVolume'
        QtMocHelpers::MethodData<int()>(28, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Int),
        // Method 'DecreaseVolume'
        QtMocHelpers::MethodData<int(int)>(30, 2, QMC::AccessPublic, QMetaType::Int, {{
            { QMetaType::Int, 29 },
        }}),
        // Method 'DecreaseVolume'
        QtMocHelpers::MethodData<int()>(30, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Int),
        // Method 'Mute'
        QtMocHelpers::MethodData<void()>(31, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'trackPosition'
        QtMocHelpers::MethodData<int() const>(32, 2, QMC::AccessPublic, QMetaType::Int),
        // Method 'trackPositionMs'
        QtMocHelpers::MethodData<int() const>(33, 2, QMC::AccessPublic, QMetaType::Int),
        // Method 'engineState'
        QtMocHelpers::MethodData<int() const>(34, 2, QMC::AccessPublic, QMetaType::Int),
        // Method 'currentTrack'
        QtMocHelpers::MethodData<QJSValue() const>(35, 2, QMC::AccessPublic, 0x80000000 | 36),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'randomMode'
        QtMocHelpers::PropertyData<bool>(37, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'dynamicMode'
        QtMocHelpers::PropertyData<bool>(38, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'repeatPlaylist'
        QtMocHelpers::PropertyData<bool>(39, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'repeatTrack'
        QtMocHelpers::PropertyData<bool>(40, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'volume'
        QtMocHelpers::PropertyData<int>(41, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'fadeoutLength'
        QtMocHelpers::PropertyData<int>(42, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<AmarokEngineScript, qt_meta_tag_ZN12AmarokScript18AmarokEngineScriptE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject AmarokScript::AmarokEngineScript::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12AmarokScript18AmarokEngineScriptE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12AmarokScript18AmarokEngineScriptE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12AmarokScript18AmarokEngineScriptE_t>.metaTypes,
    nullptr
} };

void AmarokScript::AmarokEngineScript::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<AmarokEngineScript *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->trackFinished(); break;
        case 1: _t->trackChanged(); break;
        case 2: _t->newMetaData((*reinterpret_cast<std::add_pointer_t<QHash<qint64,QString>>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 3: _t->trackSeeked((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 4: _t->volumeChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 5: _t->trackPlayPause((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 6: _t->trackPositionChanged((*reinterpret_cast<std::add_pointer_t<qint64>>(_a[1]))); break;
        case 7: _t->slotNewMetaData(); break;
        case 8: _t->slotPaused(); break;
        case 9: _t->slotPlaying(); break;
        case 10: _t->Play(); break;
        case 11: _t->Stop((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 12: _t->Stop(); break;
        case 13: _t->Pause(); break;
        case 14: _t->Next(); break;
        case 15: _t->Prev(); break;
        case 16: _t->PlayPause(); break;
        case 17: _t->Seek((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 18: _t->SeekRelative((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 19: _t->SeekForward((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 20: _t->SeekForward(); break;
        case 21: _t->SeekBackward((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 22: _t->SeekBackward(); break;
        case 23: { int _r = _t->IncreaseVolume((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 24: { int _r = _t->IncreaseVolume();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 25: { int _r = _t->DecreaseVolume((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 26: { int _r = _t->DecreaseVolume();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 27: _t->Mute(); break;
        case 28: { int _r = _t->trackPosition();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 29: { int _r = _t->trackPositionMs();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 30: { int _r = _t->engineState();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 31: { QJSValue _r = _t->currentTrack();
            if (_a[0]) *reinterpret_cast<QJSValue*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (AmarokEngineScript::*)()>(_a, &AmarokEngineScript::trackFinished, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (AmarokEngineScript::*)()>(_a, &AmarokEngineScript::trackChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (AmarokEngineScript::*)(const QHash<qint64,QString> & , bool )>(_a, &AmarokEngineScript::newMetaData, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (AmarokEngineScript::*)(int )>(_a, &AmarokEngineScript::trackSeeked, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (AmarokEngineScript::*)(int )>(_a, &AmarokEngineScript::volumeChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (AmarokEngineScript::*)(int )>(_a, &AmarokEngineScript::trackPlayPause, 5))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->randomMode(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->dynamicMode(); break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->repeatPlaylist(); break;
        case 3: *reinterpret_cast<bool*>(_v) = _t->repeatTrack(); break;
        case 4: *reinterpret_cast<int*>(_v) = _t->volume(); break;
        case 5: *reinterpret_cast<int*>(_v) = _t->fadeoutLength(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setRandomMode(*reinterpret_cast<bool*>(_v)); break;
        case 2: _t->setRepeatPlaylist(*reinterpret_cast<bool*>(_v)); break;
        case 3: _t->setRepeatTrack(*reinterpret_cast<bool*>(_v)); break;
        case 4: _t->setVolume(*reinterpret_cast<int*>(_v)); break;
        case 5: _t->setFadeoutLength(*reinterpret_cast<int*>(_v)); break;
        default: break;
        }
    }
}

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

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

int AmarokScript::AmarokEngineScript::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 -= 6;
    }
    return _id;
}

// SIGNAL 0
void AmarokScript::AmarokEngineScript::trackFinished()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void AmarokScript::AmarokEngineScript::trackChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void AmarokScript::AmarokEngineScript::newMetaData(const QHash<qint64,QString> & _t1, bool _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1, _t2);
}

// SIGNAL 3
void AmarokScript::AmarokEngineScript::trackSeeked(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void AmarokScript::AmarokEngineScript::volumeChanged(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void AmarokScript::AmarokEngineScript::trackPlayPause(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}
QT_WARNING_POP
