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

template <> constexpr inline auto StatSyncing::Controller::qt_create_metaobjectdata<qt_meta_tag_ZN11StatSyncing10ControllerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "StatSyncing::Controller",
        "trackScrobbled",
        "",
        "ScrobblingServicePtr",
        "service",
        "Meta::TrackPtr",
        "track",
        "scrobbleFailed",
        "error",
        "synchronize",
        "scrobble",
        "playedFraction",
        "time",
        "createProvider",
        "type",
        "QVariantMap",
        "config",
        "reconfigureProvider",
        "id",
        "slotProviderUpdated",
        "delayedStartSynchronization",
        "slotCollectionAdded",
        "Collections::Collection*",
        "collection",
        "CollectionManager::CollectionStatus",
        "status",
        "slotCollectionRemoved",
        "startNonInteractiveSynchronization",
        "synchronizeWithMode",
        "mode",
        "slotTrackFinishedPlaying",
        "slotResetLastSubmittedNowPlayingTrack",
        "slotUpdateNowPlayingWithCurrentTrack"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'trackScrobbled'
        QtMocHelpers::SignalData<void(const ScrobblingServicePtr &, const Meta::TrackPtr &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 }, { 0x80000000 | 5, 6 },
        }}),
        // Signal 'scrobbleFailed'
        QtMocHelpers::SignalData<void(const ScrobblingServicePtr &, const Meta::TrackPtr &, int)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 }, { 0x80000000 | 5, 6 }, { QMetaType::Int, 8 },
        }}),
        // Slot 'synchronize'
        QtMocHelpers::SlotData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'scrobble'
        QtMocHelpers::SlotData<void(const Meta::TrackPtr &, double, const QDateTime &)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 6 }, { QMetaType::Double, 11 }, { QMetaType::QDateTime, 12 },
        }}),
        // Slot 'scrobble'
        QtMocHelpers::SlotData<void(const Meta::TrackPtr &, double)>(10, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { 0x80000000 | 5, 6 }, { QMetaType::Double, 11 },
        }}),
        // Slot 'scrobble'
        QtMocHelpers::SlotData<void(const Meta::TrackPtr &)>(10, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { 0x80000000 | 5, 6 },
        }}),
        // Slot 'createProvider'
        QtMocHelpers::SlotData<void(const QString &, const QVariantMap &)>(13, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 14 }, { 0x80000000 | 15, 16 },
        }}),
        // Slot 'reconfigureProvider'
        QtMocHelpers::SlotData<void(const QString &, const QVariantMap &)>(17, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 18 }, { 0x80000000 | 15, 16 },
        }}),
        // Slot 'slotProviderUpdated'
        QtMocHelpers::SlotData<void()>(19, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'delayedStartSynchronization'
        QtMocHelpers::SlotData<void()>(20, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'slotCollectionAdded'
        QtMocHelpers::SlotData<void(Collections::Collection *, CollectionManager::CollectionStatus)>(21, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 22, 23 }, { 0x80000000 | 24, 25 },
        }}),
        // Slot 'slotCollectionRemoved'
        QtMocHelpers::SlotData<void(const QString &)>(26, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 18 },
        }}),
        // Slot 'startNonInteractiveSynchronization'
        QtMocHelpers::SlotData<void()>(27, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'synchronizeWithMode'
        QtMocHelpers::SlotData<void(int)>(28, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 29 },
        }}),
        // Slot 'slotTrackFinishedPlaying'
        QtMocHelpers::SlotData<void(const Meta::TrackPtr &, double)>(30, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 5, 6 }, { QMetaType::Double, 11 },
        }}),
        // Slot 'slotResetLastSubmittedNowPlayingTrack'
        QtMocHelpers::SlotData<void()>(31, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'slotUpdateNowPlayingWithCurrentTrack'
        QtMocHelpers::SlotData<void()>(32, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<Controller, qt_meta_tag_ZN11StatSyncing10ControllerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject StatSyncing::Controller::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11StatSyncing10ControllerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11StatSyncing10ControllerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN11StatSyncing10ControllerE_t>.metaTypes,
    nullptr
} };

void StatSyncing::Controller::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Controller *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->trackScrobbled((*reinterpret_cast<std::add_pointer_t<ScrobblingServicePtr>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Meta::TrackPtr>>(_a[2]))); break;
        case 1: _t->scrobbleFailed((*reinterpret_cast<std::add_pointer_t<ScrobblingServicePtr>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Meta::TrackPtr>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3]))); break;
        case 2: _t->synchronize(); break;
        case 3: _t->scrobble((*reinterpret_cast<std::add_pointer_t<Meta::TrackPtr>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<double>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QDateTime>>(_a[3]))); break;
        case 4: _t->scrobble((*reinterpret_cast<std::add_pointer_t<Meta::TrackPtr>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<double>>(_a[2]))); break;
        case 5: _t->scrobble((*reinterpret_cast<std::add_pointer_t<Meta::TrackPtr>>(_a[1]))); break;
        case 6: _t->createProvider((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[2]))); break;
        case 7: _t->reconfigureProvider((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[2]))); break;
        case 8: _t->slotProviderUpdated(); break;
        case 9: _t->delayedStartSynchronization(); break;
        case 10: _t->slotCollectionAdded((*reinterpret_cast<std::add_pointer_t<Collections::Collection*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<CollectionManager::CollectionStatus>>(_a[2]))); break;
        case 11: _t->slotCollectionRemoved((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 12: _t->startNonInteractiveSynchronization(); break;
        case 13: _t->synchronizeWithMode((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 14: _t->slotTrackFinishedPlaying((*reinterpret_cast<std::add_pointer_t<Meta::TrackPtr>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<double>>(_a[2]))); break;
        case 15: _t->slotResetLastSubmittedNowPlayingTrack(); break;
        case 16: _t->slotUpdateNowPlayingWithCurrentTrack(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Controller::*)(const ScrobblingServicePtr & , const Meta::TrackPtr & )>(_a, &Controller::trackScrobbled, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Controller::*)(const ScrobblingServicePtr & , const Meta::TrackPtr & , int )>(_a, &Controller::scrobbleFailed, 1))
            return;
    }
}

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

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

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

// SIGNAL 0
void StatSyncing::Controller::trackScrobbled(const ScrobblingServicePtr & _t1, const Meta::TrackPtr & _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2);
}

// SIGNAL 1
void StatSyncing::Controller::scrobbleFailed(const ScrobblingServicePtr & _t1, const Meta::TrackPtr & _t2, int _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2, _t3);
}
QT_WARNING_POP
