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

#include "../../../../rsibreak-0.13.0/src/rsiwidget.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 'rsiwidget.h' 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_ZN9RSIObjectE_t {};
} // unnamed namespace

template <> constexpr inline auto RSIObject::qt_create_metaobjectdata<qt_meta_tag_ZN9RSIObjectE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "RSIObject",
        "D-Bus Interface",
        "org.rsibreak.rsiwidget",
        "slotWelcome",
        "",
        "slotLock",
        "minimize",
        "maximize",
        "setCounters",
        "updateIdleAvg",
        "readConfig",
        "tinyBreakSkipped",
        "bigBreakSkipped",
        "resume",
        "suspend",
        "idleTime",
        "tinyLeft",
        "bigLeft",
        "currentIcon"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'slotWelcome'
        QtMocHelpers::SlotData<void()>(3, 4, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'slotLock'
        QtMocHelpers::SlotData<void()>(5, 4, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'minimize'
        QtMocHelpers::SlotData<void()>(6, 4, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'maximize'
        QtMocHelpers::SlotData<void()>(7, 4, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'setCounters'
        QtMocHelpers::SlotData<void(int)>(8, 4, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 4 },
        }}),
        // Slot 'updateIdleAvg'
        QtMocHelpers::SlotData<void(double)>(9, 4, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Double, 4 },
        }}),
        // Slot 'readConfig'
        QtMocHelpers::SlotData<void()>(10, 4, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'tinyBreakSkipped'
        QtMocHelpers::SlotData<void()>(11, 4, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'bigBreakSkipped'
        QtMocHelpers::SlotData<void()>(12, 4, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'resume'
        QtMocHelpers::SlotData<void()>(13, 4, QMC::AccessPublic, QMetaType::Void),
        // Slot 'suspend'
        QtMocHelpers::SlotData<void()>(14, 4, QMC::AccessPublic, QMetaType::Void),
        // Slot 'idleTime'
        QtMocHelpers::SlotData<int()>(15, 4, QMC::AccessPublic, QMetaType::Int),
        // Slot 'tinyLeft'
        QtMocHelpers::SlotData<int()>(16, 4, QMC::AccessPublic, QMetaType::Int),
        // Slot 'bigLeft'
        QtMocHelpers::SlotData<int()>(17, 4, QMC::AccessPublic, QMetaType::Int),
        // Slot 'currentIcon'
        QtMocHelpers::SlotData<QString()>(18, 4, QMC::AccessPublic, QMetaType::QString),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<RSIObject, qt_meta_tag_ZN9RSIObjectE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject RSIObject::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9RSIObjectE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9RSIObjectE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN9RSIObjectE_t>.metaTypes,
    nullptr
} };

void RSIObject::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<RSIObject *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->slotWelcome(); break;
        case 1: _t->slotLock(); break;
        case 2: _t->minimize(); break;
        case 3: _t->maximize(); break;
        case 4: _t->setCounters((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 5: _t->updateIdleAvg((*reinterpret_cast<std::add_pointer_t<double>>(_a[1]))); break;
        case 6: _t->readConfig(); break;
        case 7: _t->tinyBreakSkipped(); break;
        case 8: _t->bigBreakSkipped(); break;
        case 9: _t->resume(); break;
        case 10: _t->suspend(); break;
        case 11: { int _r = _t->idleTime();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 12: { int _r = _t->tinyLeft();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 13: { int _r = _t->bigLeft();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 14: { QString _r = _t->currentIcon();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
}

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

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

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