/****************************************************************************
** Meta object code from reading C++ file 'kabstractidletimepoller_p.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 "../../../../kidletime-6.26.0/src/kabstractidletimepoller_p.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 'kabstractidletimepoller_p.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_ZN23KAbstractIdleTimePollerE_t {};
} // unnamed namespace

template <> constexpr inline auto KAbstractIdleTimePoller::qt_create_metaobjectdata<qt_meta_tag_ZN23KAbstractIdleTimePollerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "KAbstractIdleTimePoller",
        "resumingFromIdle",
        "",
        "timeoutReached",
        "msec",
        "addTimeout",
        "nextTimeout",
        "removeTimeout",
        "timeouts",
        "QList<int>",
        "forcePollRequest",
        "catchIdleEvent",
        "stopCatchingIdleEvents",
        "simulateUserActivity"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'resumingFromIdle'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'timeoutReached'
        QtMocHelpers::SignalData<void(int)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 4 },
        }}),
        // Slot 'addTimeout'
        QtMocHelpers::SlotData<void(int)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 6 },
        }}),
        // Slot 'removeTimeout'
        QtMocHelpers::SlotData<void(int)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 6 },
        }}),
        // Slot 'timeouts'
        QtMocHelpers::SlotData<QList<int>() const>(8, 2, QMC::AccessPublic, 0x80000000 | 9),
        // Slot 'forcePollRequest'
        QtMocHelpers::SlotData<int()>(10, 2, QMC::AccessPublic, QMetaType::Int),
        // Slot 'catchIdleEvent'
        QtMocHelpers::SlotData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'stopCatchingIdleEvents'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'simulateUserActivity'
        QtMocHelpers::SlotData<void()>(13, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<KAbstractIdleTimePoller, qt_meta_tag_ZN23KAbstractIdleTimePollerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject KAbstractIdleTimePoller::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN23KAbstractIdleTimePollerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN23KAbstractIdleTimePollerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN23KAbstractIdleTimePollerE_t>.metaTypes,
    nullptr
} };

void KAbstractIdleTimePoller::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<KAbstractIdleTimePoller *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->resumingFromIdle(); break;
        case 1: _t->timeoutReached((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 2: _t->addTimeout((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 3: _t->removeTimeout((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 4: { QList<int> _r = _t->timeouts();
            if (_a[0]) *reinterpret_cast<QList<int>*>(_a[0]) = std::move(_r); }  break;
        case 5: { int _r = _t->forcePollRequest();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 6: _t->catchIdleEvent(); break;
        case 7: _t->stopCatchingIdleEvents(); break;
        case 8: _t->simulateUserActivity(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (KAbstractIdleTimePoller::*)()>(_a, &KAbstractIdleTimePoller::resumingFromIdle, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (KAbstractIdleTimePoller::*)(int )>(_a, &KAbstractIdleTimePoller::timeoutReached, 1))
            return;
    }
}

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

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

int KAbstractIdleTimePoller::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;
    }
    return _id;
}

// SIGNAL 0
void KAbstractIdleTimePoller::resumingFromIdle()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

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