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

#include "Login1Seat.h"
#include <QtCore/qmetatype.h>
#include <QtCore/QList>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'Login1Seat.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 68
#error "This file was generated using the moc from 6.8.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_ZN33OrgFreedesktopLogin1SeatInterfaceE_t {};
} // unnamed namespace


#ifdef QT_MOC_HAS_STRINGDATA
static constexpr auto qt_meta_stringdata_ZN33OrgFreedesktopLogin1SeatInterfaceE = QtMocHelpers::stringData(
    "OrgFreedesktopLogin1SeatInterface",
    "ActivateSession",
    "QDBusPendingReply<>",
    "",
    "in0",
    "SwitchTo",
    "SwitchToNext",
    "SwitchToPrevious",
    "Terminate",
    "ActiveSession",
    "NamedSessionPath",
    "CanGraphical",
    "CanMultiSession",
    "CanTTY",
    "Id",
    "IdleHint",
    "IdleSinceHint",
    "IdleSinceHintMonotonic",
    "Sessions",
    "QList<NamedSessionPath>"
);
#else  // !QT_MOC_HAS_STRINGDATA
#error "qtmochelpers.h not found or too old."
#endif // !QT_MOC_HAS_STRINGDATA

Q_CONSTINIT static const uint qt_meta_data_ZN33OrgFreedesktopLogin1SeatInterfaceE[] = {

 // content:
      12,       // revision
       0,       // classname
       0,    0, // classinfo
       5,   14, // methods
       9,   53, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       0,       // signalCount

 // slots: name, argc, parameters, tag, flags, initial metatype offsets
       1,    1,   44,    3, 0x0a,   10 /* Public */,
       5,    1,   47,    3, 0x0a,   12 /* Public */,
       6,    0,   50,    3, 0x0a,   14 /* Public */,
       7,    0,   51,    3, 0x0a,   15 /* Public */,
       8,    0,   52,    3, 0x0a,   16 /* Public */,

 // slots: parameters
    0x80000000 | 2, QMetaType::QString,    4,
    0x80000000 | 2, QMetaType::UInt,    4,
    0x80000000 | 2,
    0x80000000 | 2,
    0x80000000 | 2,

 // properties: name, type, flags, notifyId, revision
       9, 0x80000000 | 10, 0x00015009, uint(-1), 0,
      11, QMetaType::Bool, 0x00015001, uint(-1), 0,
      12, QMetaType::Bool, 0x00015001, uint(-1), 0,
      13, QMetaType::Bool, 0x00015001, uint(-1), 0,
      14, QMetaType::QString, 0x00015001, uint(-1), 0,
      15, QMetaType::Bool, 0x00015001, uint(-1), 0,
      16, QMetaType::ULongLong, 0x00015001, uint(-1), 0,
      17, QMetaType::ULongLong, 0x00015001, uint(-1), 0,
      18, 0x80000000 | 19, 0x00015009, uint(-1), 0,

       0        // eod
};

Q_CONSTINIT const QMetaObject OrgFreedesktopLogin1SeatInterface::staticMetaObject = { {
    QMetaObject::SuperData::link<QDBusAbstractInterface::staticMetaObject>(),
    qt_meta_stringdata_ZN33OrgFreedesktopLogin1SeatInterfaceE.offsetsAndSizes,
    qt_meta_data_ZN33OrgFreedesktopLogin1SeatInterfaceE,
    qt_static_metacall,
    nullptr,
    qt_incomplete_metaTypeArray<qt_meta_tag_ZN33OrgFreedesktopLogin1SeatInterfaceE_t,
        // property 'ActiveSession'
        QtPrivate::TypeAndForceComplete<NamedSessionPath, std::true_type>,
        // property 'CanGraphical'
        QtPrivate::TypeAndForceComplete<bool, std::true_type>,
        // property 'CanMultiSession'
        QtPrivate::TypeAndForceComplete<bool, std::true_type>,
        // property 'CanTTY'
        QtPrivate::TypeAndForceComplete<bool, std::true_type>,
        // property 'Id'
        QtPrivate::TypeAndForceComplete<QString, std::true_type>,
        // property 'IdleHint'
        QtPrivate::TypeAndForceComplete<bool, std::true_type>,
        // property 'IdleSinceHint'
        QtPrivate::TypeAndForceComplete<qulonglong, std::true_type>,
        // property 'IdleSinceHintMonotonic'
        QtPrivate::TypeAndForceComplete<qulonglong, std::true_type>,
        // property 'Sessions'
        QtPrivate::TypeAndForceComplete<QList<NamedSessionPath>, std::true_type>,
        // Q_OBJECT / Q_GADGET
        QtPrivate::TypeAndForceComplete<OrgFreedesktopLogin1SeatInterface, std::true_type>,
        // method 'ActivateSession'
        QtPrivate::TypeAndForceComplete<QDBusPendingReply<>, std::false_type>,
        QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
        // method 'SwitchTo'
        QtPrivate::TypeAndForceComplete<QDBusPendingReply<>, std::false_type>,
        QtPrivate::TypeAndForceComplete<uint, std::false_type>,
        // method 'SwitchToNext'
        QtPrivate::TypeAndForceComplete<QDBusPendingReply<>, std::false_type>,
        // method 'SwitchToPrevious'
        QtPrivate::TypeAndForceComplete<QDBusPendingReply<>, std::false_type>,
        // method 'Terminate'
        QtPrivate::TypeAndForceComplete<QDBusPendingReply<>, std::false_type>
    >,
    nullptr
} };

void OrgFreedesktopLogin1SeatInterface::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<OrgFreedesktopLogin1SeatInterface *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: { QDBusPendingReply<> _r = _t->ActivateSession((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = std::move(_r); }  break;
        case 1: { QDBusPendingReply<> _r = _t->SwitchTo((*reinterpret_cast< std::add_pointer_t<uint>>(_a[1])));
            if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = std::move(_r); }  break;
        case 2: { QDBusPendingReply<> _r = _t->SwitchToNext();
            if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = std::move(_r); }  break;
        case 3: { QDBusPendingReply<> _r = _t->SwitchToPrevious();
            if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = std::move(_r); }  break;
        case 4: { QDBusPendingReply<> _r = _t->Terminate();
            if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< NamedSessionPath*>(_v) = _t->activeSession(); break;
        case 1: *reinterpret_cast< bool*>(_v) = _t->canGraphical(); break;
        case 2: *reinterpret_cast< bool*>(_v) = _t->canMultiSession(); break;
        case 3: *reinterpret_cast< bool*>(_v) = _t->canTTY(); break;
        case 4: *reinterpret_cast< QString*>(_v) = _t->id(); break;
        case 5: *reinterpret_cast< bool*>(_v) = _t->idleHint(); break;
        case 6: *reinterpret_cast< qulonglong*>(_v) = _t->idleSinceHint(); break;
        case 7: *reinterpret_cast< qulonglong*>(_v) = _t->idleSinceHintMonotonic(); break;
        case 8: *reinterpret_cast< QList<NamedSessionPath>*>(_v) = _t->sessions(); break;
        default: break;
        }
    }
}

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

void *OrgFreedesktopLogin1SeatInterface::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_ZN33OrgFreedesktopLogin1SeatInterfaceE.stringdata0))
        return static_cast<void*>(this);
    return QDBusAbstractInterface::qt_metacast(_clname);
}

int OrgFreedesktopLogin1SeatInterface::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QDBusAbstractInterface::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 5)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 5;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 5)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 5;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    }
    return _id;
}
QT_WARNING_POP
