/****************************************************************************
** Meta object code from reading C++ file 'utils_sysinfo.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 "../../../../../thirdparty/AppUtils/utils_sysinfo.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 'utils_sysinfo.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_ZN12UtilsSysInfoE_t {};
} // unnamed namespace

template <> constexpr inline auto UtilsSysInfo::qt_create_metaobjectdata<qt_meta_tag_ZN12UtilsSysInfoE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "UtilsSysInfo",
        "getCpuArch",
        "",
        "getCpuCoreCountPhysical",
        "getCpuCoreCountLogical",
        "getRamTotal",
        "uint64_t",
        "getOsName",
        "getOsVersion",
        "getOsDisplayServer",
        "cpu_arch",
        "cpu_coreCount_physical",
        "cpu_coreCount_logical",
        "ram_total",
        "os_name",
        "os_version",
        "os_display_server"
    };

    QtMocHelpers::UintData qt_methods {
        // Method 'getCpuArch'
        QtMocHelpers::MethodData<QString() const>(1, 2, QMC::AccessPublic, QMetaType::QString),
        // Method 'getCpuCoreCountPhysical'
        QtMocHelpers::MethodData<int() const>(3, 2, QMC::AccessPublic, QMetaType::Int),
        // Method 'getCpuCoreCountLogical'
        QtMocHelpers::MethodData<int() const>(4, 2, QMC::AccessPublic, QMetaType::Int),
        // Method 'getRamTotal'
        QtMocHelpers::MethodData<uint64_t() const>(5, 2, QMC::AccessPublic, 0x80000000 | 6),
        // Method 'getOsName'
        QtMocHelpers::MethodData<QString() const>(7, 2, QMC::AccessPublic, QMetaType::QString),
        // Method 'getOsVersion'
        QtMocHelpers::MethodData<QString() const>(8, 2, QMC::AccessPublic, QMetaType::QString),
        // Method 'getOsDisplayServer'
        QtMocHelpers::MethodData<QString() const>(9, 2, QMC::AccessPublic, QMetaType::QString),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'cpu_arch'
        QtMocHelpers::PropertyData<QString>(10, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'cpu_coreCount_physical'
        QtMocHelpers::PropertyData<int>(11, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'cpu_coreCount_logical'
        QtMocHelpers::PropertyData<int>(12, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'ram_total'
        QtMocHelpers::PropertyData<quint64>(13, QMetaType::ULongLong, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'os_name'
        QtMocHelpers::PropertyData<QString>(14, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'os_version'
        QtMocHelpers::PropertyData<QString>(15, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'os_display_server'
        QtMocHelpers::PropertyData<QString>(16, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<UtilsSysInfo, qt_meta_tag_ZN12UtilsSysInfoE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject UtilsSysInfo::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12UtilsSysInfoE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12UtilsSysInfoE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12UtilsSysInfoE_t>.metaTypes,
    nullptr
} };

void UtilsSysInfo::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<UtilsSysInfo *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: { QString _r = _t->getCpuArch();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 1: { int _r = _t->getCpuCoreCountPhysical();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 2: { int _r = _t->getCpuCoreCountLogical();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 3: { uint64_t _r = _t->getRamTotal();
            if (_a[0]) *reinterpret_cast<uint64_t*>(_a[0]) = std::move(_r); }  break;
        case 4: { QString _r = _t->getOsName();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 5: { QString _r = _t->getOsVersion();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 6: { QString _r = _t->getOsDisplayServer();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QString*>(_v) = _t->getCpuArch(); break;
        case 1: *reinterpret_cast<int*>(_v) = _t->getCpuCoreCountPhysical(); break;
        case 2: *reinterpret_cast<int*>(_v) = _t->getCpuCoreCountLogical(); break;
        case 3: *reinterpret_cast<quint64*>(_v) = _t->getRamTotal(); break;
        case 4: *reinterpret_cast<QString*>(_v) = _t->getOsName(); break;
        case 5: *reinterpret_cast<QString*>(_v) = _t->getOsVersion(); break;
        case 6: *reinterpret_cast<QString*>(_v) = _t->getOsDisplayServer(); break;
        default: break;
        }
    }
}

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

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

int UtilsSysInfo::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 < 7)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 7;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 7)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 7;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 7;
    }
    return _id;
}
QT_WARNING_POP
