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

#include "../../../liquidshell-1.10.1/SysLoad.hxx"
#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 'SysLoad.hxx' 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_ZN7SysLoadE_t {};
} // unnamed namespace

template <> constexpr inline auto SysLoad::qt_create_metaobjectdata<qt_meta_tag_ZN7SysLoadE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "SysLoad",
        "fetch",
        "",
        "cpuUserColor",
        "QColor",
        "cpuSystemColor",
        "cpuNiceColor",
        "cpuSummaryBar",
        "memUsedColor",
        "memCachedColor",
        "memSwapColor",
        "netReceivedColor",
        "netSentColor"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'fetch'
        QtMocHelpers::SlotData<void()>(1, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'cpuUserColor'
        QtMocHelpers::PropertyData<QColor>(3, 0x80000000 | 4, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag),
        // property 'cpuSystemColor'
        QtMocHelpers::PropertyData<QColor>(5, 0x80000000 | 4, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag),
        // property 'cpuNiceColor'
        QtMocHelpers::PropertyData<QColor>(6, 0x80000000 | 4, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag),
        // property 'cpuSummaryBar'
        QtMocHelpers::PropertyData<bool>(7, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable),
        // property 'memUsedColor'
        QtMocHelpers::PropertyData<QColor>(8, 0x80000000 | 4, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag),
        // property 'memCachedColor'
        QtMocHelpers::PropertyData<QColor>(9, 0x80000000 | 4, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag),
        // property 'memSwapColor'
        QtMocHelpers::PropertyData<QColor>(10, 0x80000000 | 4, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag),
        // property 'netReceivedColor'
        QtMocHelpers::PropertyData<QColor>(11, 0x80000000 | 4, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag),
        // property 'netSentColor'
        QtMocHelpers::PropertyData<QColor>(12, 0x80000000 | 4, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<SysLoad, qt_meta_tag_ZN7SysLoadE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject SysLoad::staticMetaObject = { {
    QMetaObject::SuperData::link<QFrame::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN7SysLoadE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN7SysLoadE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN7SysLoadE_t>.metaTypes,
    nullptr
} };

void SysLoad::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<SysLoad *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->fetch(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QColor*>(_v) = _t->cpuUserColor; break;
        case 1: *reinterpret_cast<QColor*>(_v) = _t->cpuSystemColor; break;
        case 2: *reinterpret_cast<QColor*>(_v) = _t->cpuNiceColor; break;
        case 3: *reinterpret_cast<bool*>(_v) = _t->cpuSummaryBar; break;
        case 4: *reinterpret_cast<QColor*>(_v) = _t->memUsedColor; break;
        case 5: *reinterpret_cast<QColor*>(_v) = _t->memCachedColor; break;
        case 6: *reinterpret_cast<QColor*>(_v) = _t->memSwapColor; break;
        case 7: *reinterpret_cast<QColor*>(_v) = _t->netReceivedColor; break;
        case 8: *reinterpret_cast<QColor*>(_v) = _t->netSentColor; break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: QtMocHelpers::setProperty(_t->cpuUserColor, *reinterpret_cast<QColor*>(_v)); break;
        case 1: QtMocHelpers::setProperty(_t->cpuSystemColor, *reinterpret_cast<QColor*>(_v)); break;
        case 2: QtMocHelpers::setProperty(_t->cpuNiceColor, *reinterpret_cast<QColor*>(_v)); break;
        case 3: QtMocHelpers::setProperty(_t->cpuSummaryBar, *reinterpret_cast<bool*>(_v)); break;
        case 4: QtMocHelpers::setProperty(_t->memUsedColor, *reinterpret_cast<QColor*>(_v)); break;
        case 5: QtMocHelpers::setProperty(_t->memCachedColor, *reinterpret_cast<QColor*>(_v)); break;
        case 6: QtMocHelpers::setProperty(_t->memSwapColor, *reinterpret_cast<QColor*>(_v)); break;
        case 7: QtMocHelpers::setProperty(_t->netReceivedColor, *reinterpret_cast<QColor*>(_v)); break;
        case 8: QtMocHelpers::setProperty(_t->netSentColor, *reinterpret_cast<QColor*>(_v)); break;
        default: break;
        }
    }
}

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

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

int SysLoad::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QFrame::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;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    }
    return _id;
}
QT_WARNING_POP
