/****************************************************************************
** Meta object code from reading C++ file 'UmsCollectionLocation.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/core-impl/collections/umscollection/UmsCollectionLocation.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 'UmsCollectionLocation.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_ZN21UmsCollectionLocationE_t {};
} // unnamed namespace

template <> constexpr inline auto UmsCollectionLocation::qt_create_metaobjectdata<qt_meta_tag_ZN21UmsCollectionLocationE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "UmsCollectionLocation",
        "slotRemoveOperationFinished",
        "",
        "slotTrackTransferred",
        "QUrl",
        "sourceTrackUrl"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'slotRemoveOperationFinished'
        QtMocHelpers::SlotData<void()>(1, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'slotTrackTransferred'
        QtMocHelpers::SlotData<void(const QUrl &)>(3, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 4, 5 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<UmsCollectionLocation, qt_meta_tag_ZN21UmsCollectionLocationE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject UmsCollectionLocation::staticMetaObject = { {
    QMetaObject::SuperData::link<Collections::CollectionLocation::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN21UmsCollectionLocationE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN21UmsCollectionLocationE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN21UmsCollectionLocationE_t>.metaTypes,
    nullptr
} };

void UmsCollectionLocation::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<UmsCollectionLocation *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->slotRemoveOperationFinished(); break;
        case 1: _t->slotTrackTransferred((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1]))); break;
        default: ;
        }
    }
}

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

void *UmsCollectionLocation::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN21UmsCollectionLocationE_t>.strings))
        return static_cast<void*>(this);
    return Collections::CollectionLocation::qt_metacast(_clname);
}

int UmsCollectionLocation::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Collections::CollectionLocation::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 2)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 2;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 2)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 2;
    }
    return _id;
}
namespace {
struct qt_meta_tag_ZN14UmsTransferJobE_t {};
} // unnamed namespace

template <> constexpr inline auto UmsTransferJob::qt_create_metaobjectdata<qt_meta_tag_ZN14UmsTransferJobE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "UmsTransferJob",
        "sourceFileTransferDone",
        "",
        "QUrl",
        "source",
        "fileTransferDone",
        "destination",
        "slotCancel",
        "startNextJob",
        "slotChildJobPercent",
        "KJob*",
        "job",
        "percentage",
        "slotResult"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'sourceFileTransferDone'
        QtMocHelpers::SignalData<void(const QUrl &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'fileTransferDone'
        QtMocHelpers::SignalData<void(const QUrl &)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 6 },
        }}),
        // Slot 'slotCancel'
        QtMocHelpers::SlotData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'startNextJob'
        QtMocHelpers::SlotData<void()>(8, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'slotChildJobPercent'
        QtMocHelpers::SlotData<void(KJob *, unsigned long)>(9, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 10, 11 }, { QMetaType::ULong, 12 },
        }}),
        // Slot 'slotResult'
        QtMocHelpers::SlotData<void(KJob *)>(13, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 10, 11 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<UmsTransferJob, qt_meta_tag_ZN14UmsTransferJobE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject UmsTransferJob::staticMetaObject = { {
    QMetaObject::SuperData::link<KCompositeJob::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14UmsTransferJobE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14UmsTransferJobE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN14UmsTransferJobE_t>.metaTypes,
    nullptr
} };

void UmsTransferJob::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<UmsTransferJob *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->sourceFileTransferDone((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1]))); break;
        case 1: _t->fileTransferDone((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1]))); break;
        case 2: _t->slotCancel(); break;
        case 3: _t->startNextJob(); break;
        case 4: _t->slotChildJobPercent((*reinterpret_cast<std::add_pointer_t<KJob*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<ulong>>(_a[2]))); break;
        case 5: _t->slotResult((*reinterpret_cast<std::add_pointer_t<KJob*>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 4:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< KJob* >(); break;
            }
            break;
        case 5:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< KJob* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (UmsTransferJob::*)(const QUrl & )>(_a, &UmsTransferJob::sourceFileTransferDone, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (UmsTransferJob::*)(const QUrl & )>(_a, &UmsTransferJob::fileTransferDone, 1))
            return;
    }
}

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

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

int UmsTransferJob::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = KCompositeJob::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)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 6;
    }
    return _id;
}

// SIGNAL 0
void UmsTransferJob::sourceFileTransferDone(const QUrl & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void UmsTransferJob::fileTransferDone(const QUrl & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}
QT_WARNING_POP
