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

template <> constexpr inline auto OSDWidget::qt_create_metaobjectdata<qt_meta_tag_ZN9OSDWidgetE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "OSDWidget",
        "show",
        "",
        "text",
        "QPixmap",
        "newImage",
        "ratingChanged",
        "rating",
        "path",
        "volumeChanged",
        "volume",
        "hide",
        "setVisible",
        "visible",
        "setDuration",
        "ms",
        "setTextColor",
        "QColor",
        "color",
        "yOffset",
        "setYOffset",
        "y",
        "alignment",
        "setAlignment",
        "Alignment",
        "screen",
        "setScreen",
        "setPaused",
        "paused",
        "setImage",
        "image",
        "setText",
        "setRating",
        "setTranslucent",
        "enabled",
        "setFadeOpacity",
        "value",
        "setFontScale",
        "scale",
        "setHideWhenFullscreenWindowIsActive"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'show'
        QtMocHelpers::SlotData<void(const QString &, const QPixmap &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 }, { 0x80000000 | 4, 5 },
        }}),
        // Slot 'show'
        QtMocHelpers::SlotData<void(const QString &)>(1, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { QMetaType::QString, 3 },
        }}),
        // Slot 'ratingChanged'
        QtMocHelpers::SlotData<void(const short)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Short, 7 },
        }}),
        // Slot 'ratingChanged'
        QtMocHelpers::SlotData<void(const QString &, int)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 8 }, { QMetaType::Int, 7 },
        }}),
        // Slot 'volumeChanged'
        QtMocHelpers::SlotData<void(int)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 10 },
        }}),
        // Slot 'show'
        QtMocHelpers::SlotData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'hide'
        QtMocHelpers::SlotData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setVisible'
        QtMocHelpers::SlotData<void(bool)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 13 },
        }}),
        // Slot 'setDuration'
        QtMocHelpers::SlotData<void(int)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 15 },
        }}),
        // Slot 'setTextColor'
        QtMocHelpers::SlotData<void(const QColor &)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 17, 18 },
        }}),
        // Slot 'yOffset'
        QtMocHelpers::SlotData<uint() const>(19, 2, QMC::AccessPublic, QMetaType::UInt),
        // Slot 'setYOffset'
        QtMocHelpers::SlotData<void(int)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 21 },
        }}),
        // Slot 'alignment'
        QtMocHelpers::SlotData<int() const>(22, 2, QMC::AccessPublic, QMetaType::Int),
        // Slot 'setAlignment'
        QtMocHelpers::SlotData<void(enum Alignment)>(23, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 24, 22 },
        }}),
        // Slot 'screen'
        QtMocHelpers::SlotData<int() const>(25, 2, QMC::AccessPublic, QMetaType::Int),
        // Slot 'setScreen'
        QtMocHelpers::SlotData<void(int)>(26, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 25 },
        }}),
        // Slot 'setPaused'
        QtMocHelpers::SlotData<void(bool)>(27, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 28 },
        }}),
        // Slot 'setImage'
        QtMocHelpers::SlotData<void(const QPixmap &)>(29, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 30 },
        }}),
        // Slot 'setText'
        QtMocHelpers::SlotData<void(const QString &)>(31, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 },
        }}),
        // Slot 'setRating'
        QtMocHelpers::SlotData<void(const short)>(32, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Short, 7 },
        }}),
        // Slot 'setTranslucent'
        QtMocHelpers::SlotData<void(bool)>(33, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 34 },
        }}),
        // Slot 'setFadeOpacity'
        QtMocHelpers::SlotData<void(qreal)>(35, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QReal, 36 },
        }}),
        // Slot 'setFontScale'
        QtMocHelpers::SlotData<void(int)>(37, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 38 },
        }}),
        // Slot 'setHideWhenFullscreenWindowIsActive'
        QtMocHelpers::SlotData<void(bool)>(39, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 11 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<OSDWidget, qt_meta_tag_ZN9OSDWidgetE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject OSDWidget::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9OSDWidgetE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9OSDWidgetE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN9OSDWidgetE_t>.metaTypes,
    nullptr
} };

void OSDWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<OSDWidget *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->show((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QPixmap>>(_a[2]))); break;
        case 1: _t->show((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 2: _t->ratingChanged((*reinterpret_cast<std::add_pointer_t<short>>(_a[1]))); break;
        case 3: _t->ratingChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 4: _t->volumeChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 5: _t->show(); break;
        case 6: _t->hide(); break;
        case 7: _t->setVisible((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 8: _t->setDuration((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 9: _t->setTextColor((*reinterpret_cast<std::add_pointer_t<QColor>>(_a[1]))); break;
        case 10: { uint _r = _t->yOffset();
            if (_a[0]) *reinterpret_cast<uint*>(_a[0]) = std::move(_r); }  break;
        case 11: _t->setYOffset((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 12: { int _r = _t->alignment();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 13: _t->setAlignment((*reinterpret_cast<std::add_pointer_t<enum Alignment>>(_a[1]))); break;
        case 14: { int _r = _t->screen();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 15: _t->setScreen((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 16: _t->setPaused((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 17: _t->setImage((*reinterpret_cast<std::add_pointer_t<QPixmap>>(_a[1]))); break;
        case 18: _t->setText((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 19: _t->setRating((*reinterpret_cast<std::add_pointer_t<short>>(_a[1]))); break;
        case 20: _t->setTranslucent((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 21: _t->setFadeOpacity((*reinterpret_cast<std::add_pointer_t<qreal>>(_a[1]))); break;
        case 22: _t->setFontScale((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 23: _t->setHideWhenFullscreenWindowIsActive((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        default: ;
        }
    }
}

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

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

int OSDWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 24)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 24;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 24)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 24;
    }
    return _id;
}
namespace {
struct qt_meta_tag_ZN16OSDPreviewWidgetE_t {};
} // unnamed namespace

template <> constexpr inline auto OSDPreviewWidget::qt_create_metaobjectdata<qt_meta_tag_ZN16OSDPreviewWidgetE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "OSDPreviewWidget",
        "positionChanged",
        "",
        "setTextColor",
        "QColor",
        "color",
        "setScreen",
        "screen",
        "setFontScale",
        "scale",
        "setTranslucent",
        "enabled",
        "setUseCustomColors",
        "use",
        "fg",
        "hide"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'positionChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setTextColor'
        QtMocHelpers::SlotData<void(const QColor &)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 5 },
        }}),
        // Slot 'setScreen'
        QtMocHelpers::SlotData<void(int)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 7 },
        }}),
        // Slot 'setFontScale'
        QtMocHelpers::SlotData<void(int)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 9 },
        }}),
        // Slot 'setTranslucent'
        QtMocHelpers::SlotData<void(bool)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 11 },
        }}),
        // Slot 'setUseCustomColors'
        QtMocHelpers::SlotData<void(const bool, const QColor &)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 13 }, { 0x80000000 | 4, 14 },
        }}),
        // Slot 'hide'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<OSDPreviewWidget, qt_meta_tag_ZN16OSDPreviewWidgetE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject OSDPreviewWidget::staticMetaObject = { {
    QMetaObject::SuperData::link<OSDWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16OSDPreviewWidgetE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16OSDPreviewWidgetE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN16OSDPreviewWidgetE_t>.metaTypes,
    nullptr
} };

void OSDPreviewWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<OSDPreviewWidget *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->positionChanged(); break;
        case 1: _t->setTextColor((*reinterpret_cast<std::add_pointer_t<QColor>>(_a[1]))); break;
        case 2: _t->setScreen((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 3: _t->setFontScale((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 4: _t->setTranslucent((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 5: _t->setUseCustomColors((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QColor>>(_a[2]))); break;
        case 6: _t->hide(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (OSDPreviewWidget::*)()>(_a, &OSDPreviewWidget::positionChanged, 0))
            return;
    }
}

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

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

int OSDPreviewWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = OSDWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 7)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 7;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 7)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 7;
    }
    return _id;
}

// SIGNAL 0
void OSDPreviewWidget::positionChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}
namespace {
struct qt_meta_tag_ZN6Amarok3OSDE_t {};
} // unnamed namespace

template <> constexpr inline auto Amarok::OSD::qt_create_metaobjectdata<qt_meta_tag_ZN6Amarok3OSDE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Amarok::OSD",
        "muteStateChanged",
        "",
        "mute",
        "trackPlaying",
        "Meta::TrackPtr",
        "track",
        "stopped",
        "paused",
        "metadataChanged",
        "forceToggleOSD"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'muteStateChanged'
        QtMocHelpers::SlotData<void(bool)>(1, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::Bool, 3 },
        }}),
        // Slot 'trackPlaying'
        QtMocHelpers::SlotData<void(const Meta::TrackPtr &)>(4, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 5, 6 },
        }}),
        // Slot 'stopped'
        QtMocHelpers::SlotData<void()>(7, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'paused'
        QtMocHelpers::SlotData<void()>(8, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'metadataChanged'
        QtMocHelpers::SlotData<void()>(9, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'forceToggleOSD'
        QtMocHelpers::SlotData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<OSD, qt_meta_tag_ZN6Amarok3OSDE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Amarok::OSD::staticMetaObject = { {
    QMetaObject::SuperData::link<OSDWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6Amarok3OSDE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6Amarok3OSDE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN6Amarok3OSDE_t>.metaTypes,
    nullptr
} };

void Amarok::OSD::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<OSD *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->muteStateChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 1: _t->trackPlaying((*reinterpret_cast<std::add_pointer_t<Meta::TrackPtr>>(_a[1]))); break;
        case 2: _t->stopped(); break;
        case 3: _t->paused(); break;
        case 4: _t->metadataChanged(); break;
        case 5: _t->forceToggleOSD(); break;
        default: ;
        }
    }
}

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

void *Amarok::OSD::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6Amarok3OSDE_t>.strings))
        return static_cast<void*>(this);
    return OSDWidget::qt_metacast(_clname);
}

int Amarok::OSD::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = OSDWidget::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)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 6;
    }
    return _id;
}
QT_WARNING_POP
