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

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

template <> constexpr inline auto Dtk::Power::SystemPowerInterface::qt_create_metaobjectdata<qt_meta_tag_ZN3Dtk5Power20SystemPowerInterfaceE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Dtk::Power::SystemPowerInterface",
        "CpuGovernorChanged",
        "",
        "value",
        "ModeChanged",
        "PowerSavingModeAutoChanged",
        "PowerSavingModeAutoWhenBatteryLowChanged",
        "PowerSavingModeBrightnessDropPercentChanged",
        "PowerSavingModeEnabledChanged",
        "PowerSavingModeBrightnessDataChanged",
        "CpuBoostChanged",
        "setMode",
        "QDBusPendingReply<>",
        "mode",
        "CpuGovernor",
        "Mode",
        "PowerSavingModeAuto",
        "PowerSavingModeAutoWhenBatteryLow",
        "PowerSavingModeBrightnessDropPercent",
        "PowerSavingModeEnabled",
        "PowerSavingModeBrightnessData",
        "CpuBoost"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'CpuGovernorChanged'
        QtMocHelpers::SignalData<void(const QString &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 },
        }}),
        // Signal 'ModeChanged'
        QtMocHelpers::SignalData<void(const QString &)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 },
        }}),
        // Signal 'PowerSavingModeAutoChanged'
        QtMocHelpers::SignalData<void(const bool)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 3 },
        }}),
        // Signal 'PowerSavingModeAutoWhenBatteryLowChanged'
        QtMocHelpers::SignalData<void(const bool)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 3 },
        }}),
        // Signal 'PowerSavingModeBrightnessDropPercentChanged'
        QtMocHelpers::SignalData<void(const quint32)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 3 },
        }}),
        // Signal 'PowerSavingModeEnabledChanged'
        QtMocHelpers::SignalData<void(const bool)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 3 },
        }}),
        // Signal 'PowerSavingModeBrightnessDataChanged'
        QtMocHelpers::SignalData<void(const QString &)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 },
        }}),
        // Signal 'CpuBoostChanged'
        QtMocHelpers::SignalData<void(const bool)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 3 },
        }}),
        // Slot 'setMode'
        QtMocHelpers::SlotData<QDBusPendingReply<>(const QString &)>(11, 2, QMC::AccessPublic, 0x80000000 | 12, {{
            { QMetaType::QString, 13 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'CpuGovernor'
        QtMocHelpers::PropertyData<QString>(14, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 0),
        // property 'Mode'
        QtMocHelpers::PropertyData<QString>(15, QMetaType::QString, QMC::DefaultPropertyFlags, 1),
        // property 'PowerSavingModeAuto'
        QtMocHelpers::PropertyData<bool>(16, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
        // property 'PowerSavingModeAutoWhenBatteryLow'
        QtMocHelpers::PropertyData<bool>(17, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 3),
        // property 'PowerSavingModeBrightnessDropPercent'
        QtMocHelpers::PropertyData<quint32>(18, QMetaType::UInt, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 4),
        // property 'PowerSavingModeEnabled'
        QtMocHelpers::PropertyData<bool>(19, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 5),
        // property 'PowerSavingModeBrightnessData'
        QtMocHelpers::PropertyData<QString>(20, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 6),
        // property 'CpuBoost'
        QtMocHelpers::PropertyData<bool>(21, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 7),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<SystemPowerInterface, qt_meta_tag_ZN3Dtk5Power20SystemPowerInterfaceE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Dtk::Power::SystemPowerInterface::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3Dtk5Power20SystemPowerInterfaceE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3Dtk5Power20SystemPowerInterfaceE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN3Dtk5Power20SystemPowerInterfaceE_t>.metaTypes,
    nullptr
} };

void Dtk::Power::SystemPowerInterface::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<SystemPowerInterface *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->CpuGovernorChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 1: _t->ModeChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 2: _t->PowerSavingModeAutoChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 3: _t->PowerSavingModeAutoWhenBatteryLowChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 4: _t->PowerSavingModeBrightnessDropPercentChanged((*reinterpret_cast<std::add_pointer_t<quint32>>(_a[1]))); break;
        case 5: _t->PowerSavingModeEnabledChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 6: _t->PowerSavingModeBrightnessDataChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 7: _t->CpuBoostChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 8: { QDBusPendingReply<> _r = _t->setMode((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<>*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (SystemPowerInterface::*)(const QString & )>(_a, &SystemPowerInterface::CpuGovernorChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (SystemPowerInterface::*)(const QString & )>(_a, &SystemPowerInterface::ModeChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (SystemPowerInterface::*)(const bool )>(_a, &SystemPowerInterface::PowerSavingModeAutoChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (SystemPowerInterface::*)(const bool )>(_a, &SystemPowerInterface::PowerSavingModeAutoWhenBatteryLowChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (SystemPowerInterface::*)(const quint32 )>(_a, &SystemPowerInterface::PowerSavingModeBrightnessDropPercentChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (SystemPowerInterface::*)(const bool )>(_a, &SystemPowerInterface::PowerSavingModeEnabledChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (SystemPowerInterface::*)(const QString & )>(_a, &SystemPowerInterface::PowerSavingModeBrightnessDataChanged, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (SystemPowerInterface::*)(const bool )>(_a, &SystemPowerInterface::CpuBoostChanged, 7))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QString*>(_v) = _t->cpuGovernor(); break;
        case 1: *reinterpret_cast<QString*>(_v) = _t->mode(); break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->powerSavingModeAuto(); break;
        case 3: *reinterpret_cast<bool*>(_v) = _t->powerSavingModeAutoWhenBatteryLow(); break;
        case 4: *reinterpret_cast<quint32*>(_v) = _t->powerSavingModeBrightnessDropPercent(); break;
        case 5: *reinterpret_cast<bool*>(_v) = _t->powerSavingModeEnabled(); break;
        case 6: *reinterpret_cast<QString*>(_v) = _t->powerSavingModeBrightnessData(); break;
        case 7: *reinterpret_cast<bool*>(_v) = _t->cpuBoost(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setCpuGovernor(*reinterpret_cast<QString*>(_v)); break;
        case 2: _t->setPowerSavingModeAuto(*reinterpret_cast<bool*>(_v)); break;
        case 3: _t->setPowerSavingModeAutoWhenBatteryLow(*reinterpret_cast<bool*>(_v)); break;
        case 4: _t->setPowerSavingModeBrightnessDropPercent(*reinterpret_cast<quint32*>(_v)); break;
        case 5: _t->setPowerSavingModeEnabled(*reinterpret_cast<bool*>(_v)); break;
        case 6: _t->setPowerSavingModeBrightnessData(*reinterpret_cast<QString*>(_v)); break;
        case 7: _t->setCpuBoost(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

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

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

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

// SIGNAL 0
void Dtk::Power::SystemPowerInterface::CpuGovernorChanged(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Dtk::Power::SystemPowerInterface::ModeChanged(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Dtk::Power::SystemPowerInterface::PowerSavingModeAutoChanged(const bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void Dtk::Power::SystemPowerInterface::PowerSavingModeAutoWhenBatteryLowChanged(const bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void Dtk::Power::SystemPowerInterface::PowerSavingModeBrightnessDropPercentChanged(const quint32 _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void Dtk::Power::SystemPowerInterface::PowerSavingModeEnabledChanged(const bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}

// SIGNAL 6
void Dtk::Power::SystemPowerInterface::PowerSavingModeBrightnessDataChanged(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1);
}

// SIGNAL 7
void Dtk::Power::SystemPowerInterface::CpuBoostChanged(const bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1);
}
QT_WARNING_POP
