/****************************************************************************
** Meta object code from reading C++ file 'helper.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 "../../../KDiskMark/src/helper.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 'helper.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_ZN13HelperAdaptorE_t {};
} // unnamed namespace

template <> constexpr inline auto HelperAdaptor::qt_create_metaobjectdata<qt_meta_tag_ZN13HelperAdaptorE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "HelperAdaptor",
        "D-Bus Interface",
        "dev.jonmagon.kdiskmark.helper",
        "taskFinished",
        "",
        "initSession",
        "QVariantMap",
        "endSession",
        "prepareBenchmarkFile",
        "benchmarkPath",
        "fileSize",
        "fillZeros",
        "startBenchmarkTest",
        "measuringTime",
        "randomReadPercentage",
        "cacheBypass",
        "continuousGeneration",
        "blockSize",
        "queueDepth",
        "threads",
        "rw",
        "flushPageCache",
        "removeBenchmarkFile",
        "stopCurrentTask",
        "checkCowStatus",
        "path",
        "createNoCowDirectory"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'taskFinished'
        QtMocHelpers::SignalData<void(bool, QString, QString)>(3, 4, QMC::AccessPublic | QMC::MethodScriptable, QMetaType::Void, {{
            { QMetaType::Bool, 4 }, { QMetaType::QString, 4 }, { QMetaType::QString, 4 },
        }}),
        // Slot 'initSession'
        QtMocHelpers::SlotData<QVariantMap()>(5, 4, QMC::AccessPublic | QMC::MethodScriptable, 0x80000000 | 6),
        // Slot 'endSession'
        QtMocHelpers::SlotData<QVariantMap()>(7, 4, QMC::AccessPublic | QMC::MethodScriptable, 0x80000000 | 6),
        // Slot 'prepareBenchmarkFile'
        QtMocHelpers::SlotData<QVariantMap(const QString &, int, bool)>(8, 4, QMC::AccessPublic | QMC::MethodScriptable, 0x80000000 | 6, {{
            { QMetaType::QString, 9 }, { QMetaType::Int, 10 }, { QMetaType::Bool, 11 },
        }}),
        // Slot 'startBenchmarkTest'
        QtMocHelpers::SlotData<QVariantMap(int, int, int, bool, bool, bool, int, int, int, const QString &)>(12, 4, QMC::AccessPublic | QMC::MethodScriptable, 0x80000000 | 6, {{
            { QMetaType::Int, 13 }, { QMetaType::Int, 10 }, { QMetaType::Int, 14 }, { QMetaType::Bool, 11 },
            { QMetaType::Bool, 15 }, { QMetaType::Bool, 16 }, { QMetaType::Int, 17 }, { QMetaType::Int, 18 },
            { QMetaType::Int, 19 }, { QMetaType::QString, 20 },
        }}),
        // Slot 'flushPageCache'
        QtMocHelpers::SlotData<QVariantMap()>(21, 4, QMC::AccessPublic | QMC::MethodScriptable, 0x80000000 | 6),
        // Slot 'removeBenchmarkFile'
        QtMocHelpers::SlotData<QVariantMap()>(22, 4, QMC::AccessPublic | QMC::MethodScriptable, 0x80000000 | 6),
        // Slot 'stopCurrentTask'
        QtMocHelpers::SlotData<QVariantMap()>(23, 4, QMC::AccessPublic | QMC::MethodScriptable, 0x80000000 | 6),
        // Slot 'checkCowStatus'
        QtMocHelpers::SlotData<QVariantMap(const QString &)>(24, 4, QMC::AccessPublic | QMC::MethodScriptable, 0x80000000 | 6, {{
            { QMetaType::QString, 25 },
        }}),
        // Slot 'createNoCowDirectory'
        QtMocHelpers::SlotData<QVariantMap(const QString &)>(26, 4, QMC::AccessPublic | QMC::MethodScriptable, 0x80000000 | 6, {{
            { QMetaType::QString, 25 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<HelperAdaptor, qt_meta_tag_ZN13HelperAdaptorE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject HelperAdaptor::staticMetaObject = { {
    QMetaObject::SuperData::link<QDBusAbstractAdaptor::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13HelperAdaptorE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13HelperAdaptorE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN13HelperAdaptorE_t>.metaTypes,
    nullptr
} };

void HelperAdaptor::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<HelperAdaptor *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->taskFinished((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3]))); break;
        case 1: { QVariantMap _r = _t->initSession();
            if (_a[0]) *reinterpret_cast<QVariantMap*>(_a[0]) = std::move(_r); }  break;
        case 2: { QVariantMap _r = _t->endSession();
            if (_a[0]) *reinterpret_cast<QVariantMap*>(_a[0]) = std::move(_r); }  break;
        case 3: { QVariantMap _r = _t->prepareBenchmarkFile((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[3])));
            if (_a[0]) *reinterpret_cast<QVariantMap*>(_a[0]) = std::move(_r); }  break;
        case 4: { QVariantMap _r = _t->startBenchmarkTest((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[4])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[5])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[6])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[7])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[8])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[9])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[10])));
            if (_a[0]) *reinterpret_cast<QVariantMap*>(_a[0]) = std::move(_r); }  break;
        case 5: { QVariantMap _r = _t->flushPageCache();
            if (_a[0]) *reinterpret_cast<QVariantMap*>(_a[0]) = std::move(_r); }  break;
        case 6: { QVariantMap _r = _t->removeBenchmarkFile();
            if (_a[0]) *reinterpret_cast<QVariantMap*>(_a[0]) = std::move(_r); }  break;
        case 7: { QVariantMap _r = _t->stopCurrentTask();
            if (_a[0]) *reinterpret_cast<QVariantMap*>(_a[0]) = std::move(_r); }  break;
        case 8: { QVariantMap _r = _t->checkCowStatus((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QVariantMap*>(_a[0]) = std::move(_r); }  break;
        case 9: { QVariantMap _r = _t->createNoCowDirectory((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QVariantMap*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (HelperAdaptor::*)(bool , QString , QString )>(_a, &HelperAdaptor::taskFinished, 0))
            return;
    }
}

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

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

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

// SIGNAL 0
void HelperAdaptor::taskFinished(bool _t1, QString _t2, QString _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2, _t3);
}
namespace {
struct qt_meta_tag_ZN6HelperE_t {};
} // unnamed namespace

template <> constexpr inline auto Helper::qt_create_metaobjectdata<qt_meta_tag_ZN6HelperE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Helper",
        "taskFinished",
        ""
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'taskFinished'
        QtMocHelpers::SignalData<void(bool, QString, QString)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 2 }, { QMetaType::QString, 2 }, { QMetaType::QString, 2 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<Helper, qt_meta_tag_ZN6HelperE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Helper::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6HelperE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6HelperE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN6HelperE_t>.metaTypes,
    nullptr
} };

void Helper::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Helper *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->taskFinished((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Helper::*)(bool , QString , QString )>(_a, &Helper::taskFinished, 0))
            return;
    }
}

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

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

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

// SIGNAL 0
void Helper::taskFinished(bool _t1, QString _t2, QString _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2, _t3);
}
QT_WARNING_POP
