/****************************************************************************
** Meta object code from reading C++ file 'dbusscreensaver.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/dbusscreensaver.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 'dbusscreensaver.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_ZN15DBusScreenSaverE_t {};
} // unnamed namespace

template <> constexpr inline auto DBusScreenSaver::qt_create_metaobjectdata<qt_meta_tag_ZN15DBusScreenSaverE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "DBusScreenSaver",
        "allScreenSaverChanged",
        "",
        "allScreenSaver",
        "batteryScreenSaverTimeoutChanged",
        "batteryScreenSaverTimeout",
        "linePowerScreenSaverTimeoutChanged",
        "linePowerScreenSaverTimeout",
        "currentScreenSaverChanged",
        "currentScreenSaver",
        "isRunningChanged",
        "isRunning",
        "lockScreenAtAwakeChanged",
        "lockScreenAtAwake",
        "lockScreenDelayChanged",
        "lockScreenDelay",
        "onSessionPropertyChanged",
        "interface",
        "QVariantMap",
        "changed_properties",
        "QDBusMessage",
        "message",
        "onDBusPropertyChanged",
        "onConfigChanged",
        "key",
        "onInputEventReceived",
        "QEvent::Type",
        "type"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'allScreenSaverChanged'
        QtMocHelpers::SignalData<void(QStringList)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QStringList, 3 },
        }}),
        // Signal 'batteryScreenSaverTimeoutChanged'
        QtMocHelpers::SignalData<void(int)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 5 },
        }}),
        // Signal 'linePowerScreenSaverTimeoutChanged'
        QtMocHelpers::SignalData<void(int)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 7 },
        }}),
        // Signal 'currentScreenSaverChanged'
        QtMocHelpers::SignalData<void(QString)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 9 },
        }}),
        // Signal 'isRunningChanged'
        QtMocHelpers::SignalData<void(bool)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 11 },
        }}),
        // Signal 'lockScreenAtAwakeChanged'
        QtMocHelpers::SignalData<void(bool)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 13 },
        }}),
        // Signal 'lockScreenDelayChanged'
        QtMocHelpers::SignalData<void(int)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 15 },
        }}),
        // Slot 'onSessionPropertyChanged'
        QtMocHelpers::SlotData<void(const QString &, const QVariantMap &, const QDBusMessage &)>(16, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 17 }, { 0x80000000 | 18, 19 }, { 0x80000000 | 20, 21 },
        }}),
        // Slot 'onDBusPropertyChanged'
        QtMocHelpers::SlotData<void(const QString &, const QVariantMap &, const QDBusMessage &)>(22, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 17 }, { 0x80000000 | 18, 19 }, { 0x80000000 | 20, 21 },
        }}),
        // Slot 'onConfigChanged'
        QtMocHelpers::SlotData<void(const QString &)>(23, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 24 },
        }}),
        // Slot 'onInputEventReceived'
        QtMocHelpers::SlotData<void(QEvent::Type)>(25, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 26, 27 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'allScreenSaver'
        QtMocHelpers::PropertyData<QStringList>(3, QMetaType::QStringList, QMC::DefaultPropertyFlags, 0),
        // property 'batteryScreenSaverTimeout'
        QtMocHelpers::PropertyData<int>(5, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
        // property 'linePowerScreenSaverTimeout'
        QtMocHelpers::PropertyData<int>(7, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
        // property 'currentScreenSaver'
        QtMocHelpers::PropertyData<QString>(9, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 3),
        // property 'isRunning'
        QtMocHelpers::PropertyData<bool>(11, QMetaType::Bool, QMC::DefaultPropertyFlags, 4),
        // property 'lockScreenAtAwake'
        QtMocHelpers::PropertyData<bool>(13, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 5),
        // property 'lockScreenDelay'
        QtMocHelpers::PropertyData<int>(15, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 6),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<DBusScreenSaver, qt_meta_tag_ZN15DBusScreenSaverE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject DBusScreenSaver::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15DBusScreenSaverE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15DBusScreenSaverE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN15DBusScreenSaverE_t>.metaTypes,
    nullptr
} };

void DBusScreenSaver::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<DBusScreenSaver *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->allScreenSaverChanged((*reinterpret_cast<std::add_pointer_t<QStringList>>(_a[1]))); break;
        case 1: _t->batteryScreenSaverTimeoutChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 2: _t->linePowerScreenSaverTimeoutChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 3: _t->currentScreenSaverChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 4: _t->isRunningChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 5: _t->lockScreenAtAwakeChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 6: _t->lockScreenDelayChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 7: _t->onSessionPropertyChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QDBusMessage>>(_a[3]))); break;
        case 8: _t->onDBusPropertyChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QDBusMessage>>(_a[3]))); break;
        case 9: _t->onConfigChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 10: _t->onInputEventReceived((*reinterpret_cast<std::add_pointer_t<QEvent::Type>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 7:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 2:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QDBusMessage >(); break;
            }
            break;
        case 8:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 2:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QDBusMessage >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (DBusScreenSaver::*)(QStringList )>(_a, &DBusScreenSaver::allScreenSaverChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (DBusScreenSaver::*)(int )>(_a, &DBusScreenSaver::batteryScreenSaverTimeoutChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (DBusScreenSaver::*)(int )>(_a, &DBusScreenSaver::linePowerScreenSaverTimeoutChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (DBusScreenSaver::*)(QString )>(_a, &DBusScreenSaver::currentScreenSaverChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (DBusScreenSaver::*)(bool )>(_a, &DBusScreenSaver::isRunningChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (DBusScreenSaver::*)(bool )>(_a, &DBusScreenSaver::lockScreenAtAwakeChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (DBusScreenSaver::*)(int )>(_a, &DBusScreenSaver::lockScreenDelayChanged, 6))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QStringList*>(_v) = _t->allScreenSaver(); break;
        case 1: *reinterpret_cast<int*>(_v) = _t->batteryScreenSaverTimeout(); break;
        case 2: *reinterpret_cast<int*>(_v) = _t->linePowerScreenSaverTimeout(); break;
        case 3: *reinterpret_cast<QString*>(_v) = _t->currentScreenSaver(); break;
        case 4: *reinterpret_cast<bool*>(_v) = _t->isRunning(); break;
        case 5: *reinterpret_cast<bool*>(_v) = _t->lockScreenAtAwake(); break;
        case 6: *reinterpret_cast<int*>(_v) = _t->lockScreenDelay(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 1: _t->setBatteryScreenSaverTimeout(*reinterpret_cast<int*>(_v)); break;
        case 2: _t->setLinePowerScreenSaverTimeout(*reinterpret_cast<int*>(_v)); break;
        case 3: _t->setCurrentScreenSaver(*reinterpret_cast<QString*>(_v)); break;
        case 5: _t->setLockScreenAtAwake(*reinterpret_cast<bool*>(_v)); break;
        case 6: _t->setLockScreenDelay(*reinterpret_cast<int*>(_v)); break;
        default: break;
        }
    }
}

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

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

int DBusScreenSaver::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 < 11)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 11)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    }
    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;
}

// SIGNAL 0
void DBusScreenSaver::allScreenSaverChanged(QStringList _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void DBusScreenSaver::batteryScreenSaverTimeoutChanged(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void DBusScreenSaver::linePowerScreenSaverTimeoutChanged(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void DBusScreenSaver::currentScreenSaverChanged(QString _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void DBusScreenSaver::isRunningChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void DBusScreenSaver::lockScreenAtAwakeChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}

// SIGNAL 6
void DBusScreenSaver::lockScreenDelayChanged(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1);
}
QT_WARNING_POP
