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

#include "jobviewiface.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 'jobviewiface.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.0. 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_ZN24OrgKdeJobViewV2InterfaceE_t {};
} // unnamed namespace

template <> constexpr inline auto OrgKdeJobViewV2Interface::qt_create_metaobjectdata<qt_meta_tag_ZN24OrgKdeJobViewV2InterfaceE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "OrgKdeJobViewV2Interface",
        "cancelRequested",
        "",
        "resumeRequested",
        "suspendRequested",
        "clearDescriptionField",
        "Q_NOREPLY",
        "number",
        "setDescriptionField",
        "QDBusPendingReply<bool>",
        "name",
        "value",
        "setDestUrl",
        "QDBusVariant",
        "destUrl",
        "setElapsedTime",
        "elapsedTime",
        "setError",
        "errorCode",
        "setInfoMessage",
        "message",
        "setPercent",
        "percent",
        "setProcessedAmount",
        "amount",
        "unit",
        "setSpeed",
        "bytesPerSecond",
        "setSuspended",
        "suspended",
        "setTotalAmount",
        "terminate",
        "errorMessage"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'cancelRequested'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'resumeRequested'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'suspendRequested'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'clearDescriptionField'
        QtMocHelpers::SlotData<void(uint)>(5, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 7 },
        }}),
        // Slot 'setDescriptionField'
        QtMocHelpers::SlotData<QDBusPendingReply<bool>(uint, const QString &, const QString &)>(8, 2, QMC::AccessPublic, 0x80000000 | 9, {{
            { QMetaType::UInt, 7 }, { QMetaType::QString, 10 }, { QMetaType::QString, 11 },
        }}),
        // Slot 'setDestUrl'
        QtMocHelpers::SlotData<void(const QDBusVariant &)>(12, 6, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 13, 14 },
        }}),
        // Slot 'setElapsedTime'
        QtMocHelpers::SlotData<void(qulonglong)>(15, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::ULongLong, 16 },
        }}),
        // Slot 'setError'
        QtMocHelpers::SlotData<void(uint)>(17, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 18 },
        }}),
        // Slot 'setInfoMessage'
        QtMocHelpers::SlotData<void(const QString &)>(19, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 20 },
        }}),
        // Slot 'setPercent'
        QtMocHelpers::SlotData<void(uint)>(21, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 22 },
        }}),
        // Slot 'setProcessedAmount'
        QtMocHelpers::SlotData<void(qulonglong, const QString &)>(23, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::ULongLong, 24 }, { QMetaType::QString, 25 },
        }}),
        // Slot 'setSpeed'
        QtMocHelpers::SlotData<void(qulonglong)>(26, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::ULongLong, 27 },
        }}),
        // Slot 'setSuspended'
        QtMocHelpers::SlotData<void(bool)>(28, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 29 },
        }}),
        // Slot 'setTotalAmount'
        QtMocHelpers::SlotData<void(qulonglong, const QString &)>(30, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::ULongLong, 24 }, { QMetaType::QString, 25 },
        }}),
        // Slot 'terminate'
        QtMocHelpers::SlotData<void(const QString &)>(31, 6, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 32 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<OrgKdeJobViewV2Interface, qt_meta_tag_ZN24OrgKdeJobViewV2InterfaceE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject OrgKdeJobViewV2Interface::staticMetaObject = { {
    QMetaObject::SuperData::link<QDBusAbstractInterface::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN24OrgKdeJobViewV2InterfaceE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN24OrgKdeJobViewV2InterfaceE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN24OrgKdeJobViewV2InterfaceE_t>.metaTypes,
    nullptr
} };

void OrgKdeJobViewV2Interface::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<OrgKdeJobViewV2Interface *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->cancelRequested(); break;
        case 1: _t->resumeRequested(); break;
        case 2: _t->suspendRequested(); break;
        case 3: _t->clearDescriptionField((*reinterpret_cast<std::add_pointer_t<uint>>(_a[1]))); break;
        case 4: { QDBusPendingReply<bool> _r = _t->setDescriptionField((*reinterpret_cast<std::add_pointer_t<uint>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3])));
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<bool>*>(_a[0]) = std::move(_r); }  break;
        case 5: _t->setDestUrl((*reinterpret_cast<std::add_pointer_t<QDBusVariant>>(_a[1]))); break;
        case 6: _t->setElapsedTime((*reinterpret_cast<std::add_pointer_t<qulonglong>>(_a[1]))); break;
        case 7: _t->setError((*reinterpret_cast<std::add_pointer_t<uint>>(_a[1]))); break;
        case 8: _t->setInfoMessage((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 9: _t->setPercent((*reinterpret_cast<std::add_pointer_t<uint>>(_a[1]))); break;
        case 10: _t->setProcessedAmount((*reinterpret_cast<std::add_pointer_t<qulonglong>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 11: _t->setSpeed((*reinterpret_cast<std::add_pointer_t<qulonglong>>(_a[1]))); break;
        case 12: _t->setSuspended((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 13: _t->setTotalAmount((*reinterpret_cast<std::add_pointer_t<qulonglong>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 14: _t->terminate((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (OrgKdeJobViewV2Interface::*)()>(_a, &OrgKdeJobViewV2Interface::cancelRequested, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (OrgKdeJobViewV2Interface::*)()>(_a, &OrgKdeJobViewV2Interface::resumeRequested, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (OrgKdeJobViewV2Interface::*)()>(_a, &OrgKdeJobViewV2Interface::suspendRequested, 2))
            return;
    }
}

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

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

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

// SIGNAL 0
void OrgKdeJobViewV2Interface::cancelRequested()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

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

// SIGNAL 2
void OrgKdeJobViewV2Interface::suspendRequested()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}
QT_WARNING_POP
