/****************************************************************************
** Meta object code from reading C++ file 'scannerdevice.h'
**
** Created by: The Qt Meta Object Compiler version 69 (Qt 6.11.2)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../../../deepin-scanner/src/device/scannerdevice.h"
#include <QtCore/qmetatype.h>
#include <QtCore/QList>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'scannerdevice.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.2. 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_ZN13ScannerDeviceE_t {};
} // unnamed namespace

template <> constexpr inline auto ScannerDevice::qt_create_metaobjectdata<qt_meta_tag_ZN13ScannerDeviceE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "ScannerDevice",
        "triggerOpenDevice",
        "",
        "deviceName",
        "triggerCloseDevice",
        "triggerStartScan",
        "filePath",
        "dpi",
        "ScanMode",
        "mode",
        "ColorMode",
        "colorMode",
        "PaperSize",
        "paperSize",
        "triggerCancelScan",
        "scanProgress",
        "percentage",
        "deviceOpened",
        "deviceClosed",
        "onWorkerError",
        "errorMessage",
        "onDeviceOpened",
        "QList<int>",
        "resolutions",
        "QList<ScannerDevice::ScanMode>",
        "modes",
        "onDeviceClosed",
        "onCaptureCompleted",
        "SCAN_MODE_FLATBED",
        "SCAN_MODE_ADF_SIMPLEX",
        "SCAN_MODE_ADF_DUPLEX",
        "PAPER_SIZE_AUTO",
        "PAPER_SIZE_A4",
        "PAPER_SIZE_A3",
        "PAPER_SIZE_A5",
        "PAPER_SIZE_A6",
        "PAPER_SIZE_B4",
        "PAPER_SIZE_B5",
        "COLOR_MODE_COLOR",
        "COLOR_MODE_GRAYSCALE",
        "COLOR_MODE_LINEART"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'triggerOpenDevice'
        QtMocHelpers::SignalData<void(const QString &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 },
        }}),
        // Signal 'triggerCloseDevice'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'triggerStartScan'
        QtMocHelpers::SignalData<void(const QString &, int, enum ScanMode, enum ColorMode, enum PaperSize)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 6 }, { QMetaType::Int, 7 }, { 0x80000000 | 8, 9 }, { 0x80000000 | 10, 11 },
            { 0x80000000 | 12, 13 },
        }}),
        // Signal 'triggerCancelScan'
        QtMocHelpers::SignalData<void()>(14, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'scanProgress'
        QtMocHelpers::SignalData<void(int)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 16 },
        }}),
        // Signal 'deviceOpened'
        QtMocHelpers::SignalData<void()>(17, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'deviceClosed'
        QtMocHelpers::SignalData<void()>(18, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'onWorkerError'
        QtMocHelpers::SlotData<void(const QString &)>(19, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 20 },
        }}),
        // Slot 'onDeviceOpened'
        QtMocHelpers::SlotData<void(const QList<int> &, const QList<ScannerDevice::ScanMode> &)>(21, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 22, 23 }, { 0x80000000 | 24, 25 },
        }}),
        // Slot 'onDeviceClosed'
        QtMocHelpers::SlotData<void()>(26, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onCaptureCompleted'
        QtMocHelpers::SlotData<void(const QString &)>(27, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 6 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'ScanMode'
        QtMocHelpers::EnumData<enum ScanMode>(8, 8, QMC::EnumFlags{}).add({
            {   28, ScanMode::SCAN_MODE_FLATBED },
            {   29, ScanMode::SCAN_MODE_ADF_SIMPLEX },
            {   30, ScanMode::SCAN_MODE_ADF_DUPLEX },
        }),
        // enum 'PaperSize'
        QtMocHelpers::EnumData<enum PaperSize>(12, 12, QMC::EnumFlags{}).add({
            {   31, PaperSize::PAPER_SIZE_AUTO },
            {   32, PaperSize::PAPER_SIZE_A4 },
            {   33, PaperSize::PAPER_SIZE_A3 },
            {   34, PaperSize::PAPER_SIZE_A5 },
            {   35, PaperSize::PAPER_SIZE_A6 },
            {   36, PaperSize::PAPER_SIZE_B4 },
            {   37, PaperSize::PAPER_SIZE_B5 },
        }),
        // enum 'ColorMode'
        QtMocHelpers::EnumData<enum ColorMode>(10, 10, QMC::EnumFlags{}).add({
            {   38, ColorMode::COLOR_MODE_COLOR },
            {   39, ColorMode::COLOR_MODE_GRAYSCALE },
            {   40, ColorMode::COLOR_MODE_LINEART },
        }),
    };
    return QtMocHelpers::metaObjectData<ScannerDevice, qt_meta_tag_ZN13ScannerDeviceE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject ScannerDevice::staticMetaObject = { {
    QMetaObject::SuperData::link<DeviceBase::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13ScannerDeviceE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13ScannerDeviceE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN13ScannerDeviceE_t>.metaTypes,
    nullptr
} };

void ScannerDevice::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ScannerDevice *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->triggerOpenDevice((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 1: _t->triggerCloseDevice(); break;
        case 2: _t->triggerStartScan((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<enum ScanMode>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<enum ColorMode>>(_a[4])),(*reinterpret_cast<std::add_pointer_t<enum PaperSize>>(_a[5]))); break;
        case 3: _t->triggerCancelScan(); break;
        case 4: _t->scanProgress((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 5: _t->deviceOpened(); break;
        case 6: _t->deviceClosed(); break;
        case 7: _t->onWorkerError((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 8: _t->onDeviceOpened((*reinterpret_cast<std::add_pointer_t<QList<int>>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QList<ScannerDevice::ScanMode>>>(_a[2]))); break;
        case 9: _t->onDeviceClosed(); break;
        case 10: _t->onCaptureCompleted((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 8:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QList<int> >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ScannerDevice::*)(const QString & )>(_a, &ScannerDevice::triggerOpenDevice, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (ScannerDevice::*)()>(_a, &ScannerDevice::triggerCloseDevice, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (ScannerDevice::*)(const QString & , int , ScanMode , ColorMode , PaperSize )>(_a, &ScannerDevice::triggerStartScan, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (ScannerDevice::*)()>(_a, &ScannerDevice::triggerCancelScan, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (ScannerDevice::*)(int )>(_a, &ScannerDevice::scanProgress, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (ScannerDevice::*)()>(_a, &ScannerDevice::deviceOpened, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (ScannerDevice::*)()>(_a, &ScannerDevice::deviceClosed, 6))
            return;
    }
}

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

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

int ScannerDevice::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = DeviceBase::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 11)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 11)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    }
    return _id;
}

// SIGNAL 0
void ScannerDevice::triggerOpenDevice(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

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

// SIGNAL 2
void ScannerDevice::triggerStartScan(const QString & _t1, int _t2, ScanMode _t3, ColorMode _t4, PaperSize _t5)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1, _t2, _t3, _t4, _t5);
}

// SIGNAL 3
void ScannerDevice::triggerCancelScan()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void ScannerDevice::scanProgress(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void ScannerDevice::deviceOpened()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void ScannerDevice::deviceClosed()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}
namespace {
struct qt_meta_tag_ZN13ScannerWorkerE_t {};
} // unnamed namespace

template <> constexpr inline auto ScannerWorker::qt_create_metaobjectdata<qt_meta_tag_ZN13ScannerWorkerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "ScannerWorker",
        "errorOccurred",
        "",
        "errorMessage",
        "deviceOpened",
        "QList<int>",
        "resolutions",
        "QList<ScannerDevice::ScanMode>",
        "modes",
        "deviceClosed",
        "captureCompleted",
        "filePath",
        "scanProgress",
        "percentage",
        "doOpenDevice",
        "deviceName",
        "doCloseDevice",
        "doStartScan",
        "tempOutputFilePath",
        "dpi",
        "ScannerDevice::ScanMode",
        "mode",
        "ScannerDevice::ColorMode",
        "colorMode",
        "ScannerDevice::PaperSize",
        "paperSize",
        "doCancelScan"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'errorOccurred'
        QtMocHelpers::SignalData<void(const QString &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 },
        }}),
        // Signal 'deviceOpened'
        QtMocHelpers::SignalData<void(const QList<int> &, const QList<ScannerDevice::ScanMode> &)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 6 }, { 0x80000000 | 7, 8 },
        }}),
        // Signal 'deviceClosed'
        QtMocHelpers::SignalData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'captureCompleted'
        QtMocHelpers::SignalData<void(const QString &)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 11 },
        }}),
        // Signal 'scanProgress'
        QtMocHelpers::SignalData<void(int)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 13 },
        }}),
        // Slot 'doOpenDevice'
        QtMocHelpers::SlotData<void(const QString &)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 15 },
        }}),
        // Slot 'doCloseDevice'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'doStartScan'
        QtMocHelpers::SlotData<void(const QString &, int, ScannerDevice::ScanMode, ScannerDevice::ColorMode, ScannerDevice::PaperSize)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 18 }, { QMetaType::Int, 19 }, { 0x80000000 | 20, 21 }, { 0x80000000 | 22, 23 },
            { 0x80000000 | 24, 25 },
        }}),
        // Slot 'doCancelScan'
        QtMocHelpers::SlotData<void()>(26, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<ScannerWorker, qt_meta_tag_ZN13ScannerWorkerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject ScannerWorker::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13ScannerWorkerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13ScannerWorkerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN13ScannerWorkerE_t>.metaTypes,
    nullptr
} };

void ScannerWorker::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ScannerWorker *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->errorOccurred((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 1: _t->deviceOpened((*reinterpret_cast<std::add_pointer_t<QList<int>>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QList<ScannerDevice::ScanMode>>>(_a[2]))); break;
        case 2: _t->deviceClosed(); break;
        case 3: _t->captureCompleted((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 4: _t->scanProgress((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 5: _t->doOpenDevice((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 6: _t->doCloseDevice(); break;
        case 7: _t->doStartScan((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<ScannerDevice::ScanMode>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<ScannerDevice::ColorMode>>(_a[4])),(*reinterpret_cast<std::add_pointer_t<ScannerDevice::PaperSize>>(_a[5]))); break;
        case 8: _t->doCancelScan(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 1:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QList<int> >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ScannerWorker::*)(const QString & )>(_a, &ScannerWorker::errorOccurred, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (ScannerWorker::*)(const QList<int> & , const QList<ScannerDevice::ScanMode> & )>(_a, &ScannerWorker::deviceOpened, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (ScannerWorker::*)()>(_a, &ScannerWorker::deviceClosed, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (ScannerWorker::*)(const QString & )>(_a, &ScannerWorker::captureCompleted, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (ScannerWorker::*)(int )>(_a, &ScannerWorker::scanProgress, 4))
            return;
    }
}

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

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

int ScannerWorker::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 ScannerWorker::errorOccurred(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void ScannerWorker::deviceOpened(const QList<int> & _t1, const QList<ScannerDevice::ScanMode> & _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2);
}

// SIGNAL 2
void ScannerWorker::deviceClosed()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void ScannerWorker::captureCompleted(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void ScannerWorker::scanProgress(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}
QT_WARNING_POP
