/****************************************************************************
** Meta object code from reading C++ file 'AbstractScanResultProcessor.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/scanner/AbstractScanResultProcessor.h"
#include <QtCore/qmetatype.h>
#include <QtCore/QSharedPointer>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'AbstractScanResultProcessor.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_ZN27AbstractScanResultProcessorE_t {};
} // unnamed namespace

template <> constexpr inline auto AbstractScanResultProcessor::qt_create_metaobjectdata<qt_meta_tag_ZN27AbstractScanResultProcessorE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "AbstractScanResultProcessor",
        "endProgressOperation",
        "",
        "incrementProgress",
        "totalSteps",
        "scanStarted",
        "GenericScanManager::ScanType",
        "type",
        "scanDirectoryCount",
        "count",
        "scanDirectoryScanned",
        "QSharedPointer<CollectionScanner::Directory>",
        "dir",
        "scanSucceeded",
        "scanFailed",
        "message",
        "abort"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'endProgressOperation'
        QtMocHelpers::SignalData<void(QObject *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QObjectStar, 2 },
        }}),
        // Signal 'incrementProgress'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'totalSteps'
        QtMocHelpers::SignalData<void(int)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 4 },
        }}),
        // Slot 'scanStarted'
        QtMocHelpers::SlotData<void(GenericScanManager::ScanType)>(5, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
        // Slot 'scanDirectoryCount'
        QtMocHelpers::SlotData<void(int)>(8, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::Int, 9 },
        }}),
        // Slot 'scanDirectoryScanned'
        QtMocHelpers::SlotData<void(QSharedPointer<CollectionScanner::Directory>)>(10, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 11, 12 },
        }}),
        // Slot 'scanSucceeded'
        QtMocHelpers::SlotData<void()>(13, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'scanFailed'
        QtMocHelpers::SlotData<void(const QString &)>(14, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::QString, 15 },
        }}),
        // Slot 'abort'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessProtected, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<AbstractScanResultProcessor, qt_meta_tag_ZN27AbstractScanResultProcessorE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject AbstractScanResultProcessor::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN27AbstractScanResultProcessorE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN27AbstractScanResultProcessorE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN27AbstractScanResultProcessorE_t>.metaTypes,
    nullptr
} };

void AbstractScanResultProcessor::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<AbstractScanResultProcessor *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->endProgressOperation((*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[1]))); break;
        case 1: _t->incrementProgress(); break;
        case 2: _t->totalSteps((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 3: _t->scanStarted((*reinterpret_cast<std::add_pointer_t<GenericScanManager::ScanType>>(_a[1]))); break;
        case 4: _t->scanDirectoryCount((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 5: _t->scanDirectoryScanned((*reinterpret_cast<std::add_pointer_t<QSharedPointer<CollectionScanner::Directory>>>(_a[1]))); break;
        case 6: _t->scanSucceeded(); break;
        case 7: _t->scanFailed((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 8: _t->abort(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< GenericScanManager::ScanType >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (AbstractScanResultProcessor::*)(QObject * )>(_a, &AbstractScanResultProcessor::endProgressOperation, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (AbstractScanResultProcessor::*)()>(_a, &AbstractScanResultProcessor::incrementProgress, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (AbstractScanResultProcessor::*)(int )>(_a, &AbstractScanResultProcessor::totalSteps, 2))
            return;
    }
}

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

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

int AbstractScanResultProcessor::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 < 9)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 9)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    }
    return _id;
}

// SIGNAL 0
void AbstractScanResultProcessor::endProgressOperation(QObject * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void AbstractScanResultProcessor::incrementProgress()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void AbstractScanResultProcessor::totalSteps(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}
QT_WARNING_POP
