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

template <> constexpr inline auto StreamItem::qt_create_metaobjectdata<qt_meta_tag_ZN10StreamItemE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "StreamItem",
        "itemName",
        "infoHtml",
        "playableUrl",
        "callbackData",
        "level",
        "album",
        "artist",
        "genre",
        "composer",
        "year",
        "coverUrl"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
        // property 'itemName'
        QtMocHelpers::PropertyData<QString>(1, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'infoHtml'
        QtMocHelpers::PropertyData<QString>(2, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'playableUrl'
        QtMocHelpers::PropertyData<QString>(3, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'callbackData'
        QtMocHelpers::PropertyData<QString>(4, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'level'
        QtMocHelpers::PropertyData<int>(5, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'album'
        QtMocHelpers::PropertyData<QString>(6, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'artist'
        QtMocHelpers::PropertyData<QString>(7, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'genre'
        QtMocHelpers::PropertyData<QString>(8, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'composer'
        QtMocHelpers::PropertyData<QString>(9, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'year'
        QtMocHelpers::PropertyData<int>(10, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'coverUrl'
        QtMocHelpers::PropertyData<QString>(11, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<StreamItem, qt_meta_tag_ZN10StreamItemE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject StreamItem::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10StreamItemE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10StreamItemE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10StreamItemE_t>.metaTypes,
    nullptr
} };

void StreamItem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<StreamItem *>(_o);
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QString*>(_v) = _t->itemName(); break;
        case 1: *reinterpret_cast<QString*>(_v) = _t->infoHtml(); break;
        case 2: *reinterpret_cast<QString*>(_v) = _t->playableUrl(); break;
        case 3: *reinterpret_cast<QString*>(_v) = _t->callbackData(); break;
        case 4: *reinterpret_cast<int*>(_v) = _t->level(); break;
        case 5: *reinterpret_cast<QString*>(_v) = _t->album(); break;
        case 6: *reinterpret_cast<QString*>(_v) = _t->artist(); break;
        case 7: *reinterpret_cast<QString*>(_v) = _t->genre(); break;
        case 8: *reinterpret_cast<QString*>(_v) = _t->composer(); break;
        case 9: *reinterpret_cast<int*>(_v) = _t->year(); break;
        case 10: *reinterpret_cast<QString*>(_v) = _t->coverUrl(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setItemName(*reinterpret_cast<QString*>(_v)); break;
        case 1: _t->setInfoHtml(*reinterpret_cast<QString*>(_v)); break;
        case 2: _t->setPlayableUrl(*reinterpret_cast<QString*>(_v)); break;
        case 3: _t->setCallbackData(*reinterpret_cast<QString*>(_v)); break;
        case 4: _t->setLevel(*reinterpret_cast<int*>(_v)); break;
        case 5: _t->setAlbum(*reinterpret_cast<QString*>(_v)); break;
        case 6: _t->setArtist(*reinterpret_cast<QString*>(_v)); break;
        case 7: _t->setGenre(*reinterpret_cast<QString*>(_v)); break;
        case 8: _t->setComposer(*reinterpret_cast<QString*>(_v)); break;
        case 9: _t->setYear(*reinterpret_cast<int*>(_v)); break;
        case 10: _t->setCoverUrl(*reinterpret_cast<QString*>(_v)); break;
        default: break;
        }
    }
}

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

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

int StreamItem::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    }
    return _id;
}
QT_WARNING_POP
