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

#include <memory>
#include "../../../../../../kidletime-5.116.0/src/plugins/xsync/xsyncbasedpoller.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#include <QtCore/qplugin.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'xsyncbasedpoller.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.17. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_XSyncBasedPoller_t {
    QByteArrayData data[11];
    char stringdata0[149];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_XSyncBasedPoller_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_XSyncBasedPoller_t qt_meta_stringdata_XSyncBasedPoller = {
    {
QT_MOC_LITERAL(0, 0, 16), // "XSyncBasedPoller"
QT_MOC_LITERAL(1, 17, 10), // "addTimeout"
QT_MOC_LITERAL(2, 28, 0), // ""
QT_MOC_LITERAL(3, 29, 11), // "nextTimeout"
QT_MOC_LITERAL(4, 41, 13), // "removeTimeout"
QT_MOC_LITERAL(5, 55, 16), // "forcePollRequest"
QT_MOC_LITERAL(6, 72, 14), // "catchIdleEvent"
QT_MOC_LITERAL(7, 87, 22), // "stopCatchingIdleEvents"
QT_MOC_LITERAL(8, 110, 20), // "simulateUserActivity"
QT_MOC_LITERAL(9, 131, 4), // "poll"
QT_MOC_LITERAL(10, 136, 12) // "reloadAlarms"

    },
    "XSyncBasedPoller\0addTimeout\0\0nextTimeout\0"
    "removeTimeout\0forcePollRequest\0"
    "catchIdleEvent\0stopCatchingIdleEvents\0"
    "simulateUserActivity\0poll\0reloadAlarms"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_XSyncBasedPoller[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
       8,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       0,       // signalCount

 // slots: name, argc, parameters, tag, flags
       1,    1,   54,    2, 0x0a /* Public */,
       4,    1,   57,    2, 0x0a /* Public */,
       5,    0,   60,    2, 0x0a /* Public */,
       6,    0,   61,    2, 0x0a /* Public */,
       7,    0,   62,    2, 0x0a /* Public */,
       8,    0,   63,    2, 0x0a /* Public */,
       9,    0,   64,    2, 0x08 /* Private */,
      10,    0,   65,    2, 0x08 /* Private */,

 // slots: parameters
    QMetaType::Void, QMetaType::Int,    3,
    QMetaType::Void, QMetaType::Int,    3,
    QMetaType::Int,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Int,
    QMetaType::Void,

       0        // eod
};

void XSyncBasedPoller::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<XSyncBasedPoller *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->addTimeout((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 1: _t->removeTimeout((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 2: { int _r = _t->forcePollRequest();
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 3: _t->catchIdleEvent(); break;
        case 4: _t->stopCatchingIdleEvents(); break;
        case 5: _t->simulateUserActivity(); break;
        case 6: { int _r = _t->poll();
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 7: _t->reloadAlarms(); break;
        default: ;
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject XSyncBasedPoller::staticMetaObject = { {
    QMetaObject::SuperData::link<AbstractSystemPoller::staticMetaObject>(),
    qt_meta_stringdata_XSyncBasedPoller.data,
    qt_meta_data_XSyncBasedPoller,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *XSyncBasedPoller::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_XSyncBasedPoller.stringdata0))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "org.kde.kidletime.AbstractSystemPoller"))
        return static_cast< AbstractSystemPoller*>(this);
    return AbstractSystemPoller::qt_metacast(_clname);
}

int XSyncBasedPoller::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = AbstractSystemPoller::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 8)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 8)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 8;
    }
    return _id;
}

QT_PLUGIN_METADATA_SECTION
static constexpr unsigned char qt_pluginMetaData[] = {
    'Q', 'T', 'M', 'E', 'T', 'A', 'D', 'A', 'T', 'A', ' ', '!',
    // metadata version, Qt version, architectural requirements
    0, QT_VERSION_MAJOR, QT_VERSION_MINOR, qPluginArchRequirements(),
    0xbf, 
    // "IID"
    0x02,  0x78,  0x26,  'o',  'r',  'g',  '.',  'k', 
    'd',  'e',  '.',  'k',  'i',  'd',  'l',  'e', 
    't',  'i',  'm',  'e',  '.',  'A',  'b',  's', 
    't',  'r',  'a',  'c',  't',  'S',  'y',  's', 
    't',  'e',  'm',  'P',  'o',  'l',  'l',  'e', 
    'r', 
    // "className"
    0x03,  0x70,  'X',  'S',  'y',  'n',  'c',  'B', 
    'a',  's',  'e',  'd',  'P',  'o',  'l',  'l', 
    'e',  'r', 
    // "MetaData"
    0x04,  0xa1,  0x69,  'p',  'l',  'a',  't',  'f', 
    'o',  'r',  'm',  's',  0x81,  0x63,  'x',  'c', 
    'b', 
    0xff, 
};
QT_MOC_EXPORT_PLUGIN(XSyncBasedPoller, XSyncBasedPoller)

QT_WARNING_POP
QT_END_MOC_NAMESPACE
