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

template <> constexpr inline auto OS::ProcessRefreshWorker::qt_create_metaobjectdata<qt_meta_tag_ZN2OS20ProcessRefreshWorkerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "OS::ProcessRefreshWorker",
        "fetched",
        "",
        "consumer",
        "token",
        "QList<Process>",
        "processes",
        "fetch",
        "includeKernelTasks",
        "includeOtherUsers",
        "collectIOMetrics",
        "isSuperuser",
        "effectiveUid",
        "myUid"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'fetched'
        QtMocHelpers::SignalData<void(int, quint64, const QList<Process> &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 3 }, { QMetaType::ULongLong, 4 }, { 0x80000000 | 5, 6 },
        }}),
        // Slot 'fetch'
        QtMocHelpers::SlotData<void(int, quint64, bool, bool, bool, bool, uint, uint)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 3 }, { QMetaType::ULongLong, 4 }, { QMetaType::Bool, 8 }, { QMetaType::Bool, 9 },
            { QMetaType::Bool, 10 }, { QMetaType::Bool, 11 }, { QMetaType::UInt, 12 }, { QMetaType::UInt, 13 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<ProcessRefreshWorker, qt_meta_tag_ZN2OS20ProcessRefreshWorkerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject OS::ProcessRefreshWorker::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN2OS20ProcessRefreshWorkerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN2OS20ProcessRefreshWorkerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN2OS20ProcessRefreshWorkerE_t>.metaTypes,
    nullptr
} };

void OS::ProcessRefreshWorker::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ProcessRefreshWorker *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->fetched((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<quint64>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QList<Process>>>(_a[3]))); break;
        case 1: _t->fetch((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<quint64>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<bool>>(_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<uint>>(_a[7])),(*reinterpret_cast<std::add_pointer_t<uint>>(_a[8]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ProcessRefreshWorker::*)(int , quint64 , const QList<Process> & )>(_a, &ProcessRefreshWorker::fetched, 0))
            return;
    }
}

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

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

int OS::ProcessRefreshWorker::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 < 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;
}

// SIGNAL 0
void OS::ProcessRefreshWorker::fetched(int _t1, quint64 _t2, const QList<Process> & _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2, _t3);
}
namespace {
struct qt_meta_tag_ZN2OS21ProcessRefreshServiceE_t {};
} // unnamed namespace

template <> constexpr inline auto OS::ProcessRefreshService::qt_create_metaobjectdata<qt_meta_tag_ZN2OS21ProcessRefreshServiceE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "OS::ProcessRefreshService",
        "requestRefresh",
        "",
        "consumer",
        "token",
        "includeKernelTasks",
        "includeOtherUsers",
        "collectIOMetrics",
        "isSuperuser",
        "effectiveUid",
        "myUid",
        "snapshotReady",
        "QList<Process>",
        "processes"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'requestRefresh'
        QtMocHelpers::SignalData<void(int, quint64, bool, bool, bool, bool, uint, uint)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 3 }, { QMetaType::ULongLong, 4 }, { QMetaType::Bool, 5 }, { QMetaType::Bool, 6 },
            { QMetaType::Bool, 7 }, { QMetaType::Bool, 8 }, { QMetaType::UInt, 9 }, { QMetaType::UInt, 10 },
        }}),
        // Signal 'snapshotReady'
        QtMocHelpers::SignalData<void(int, quint64, const QList<Process> &)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 3 }, { QMetaType::ULongLong, 4 }, { 0x80000000 | 12, 13 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<ProcessRefreshService, qt_meta_tag_ZN2OS21ProcessRefreshServiceE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject OS::ProcessRefreshService::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN2OS21ProcessRefreshServiceE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN2OS21ProcessRefreshServiceE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN2OS21ProcessRefreshServiceE_t>.metaTypes,
    nullptr
} };

void OS::ProcessRefreshService::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ProcessRefreshService *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->requestRefresh((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<quint64>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<bool>>(_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<uint>>(_a[7])),(*reinterpret_cast<std::add_pointer_t<uint>>(_a[8]))); break;
        case 1: _t->snapshotReady((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<quint64>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QList<Process>>>(_a[3]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ProcessRefreshService::*)(int , quint64 , bool , bool , bool , bool , uint , uint )>(_a, &ProcessRefreshService::requestRefresh, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (ProcessRefreshService::*)(int , quint64 , const QList<Process> & )>(_a, &ProcessRefreshService::snapshotReady, 1))
            return;
    }
}

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

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

int OS::ProcessRefreshService::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 < 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;
}

// SIGNAL 0
void OS::ProcessRefreshService::requestRefresh(int _t1, quint64 _t2, bool _t3, bool _t4, bool _t5, bool _t6, uint _t7, uint _t8)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2, _t3, _t4, _t5, _t6, _t7, _t8);
}

// SIGNAL 1
void OS::ProcessRefreshService::snapshotReady(int _t1, quint64 _t2, const QList<Process> & _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2, _t3);
}
QT_WARNING_POP
