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


#ifdef QT_MOC_HAS_STRINGDATA
static constexpr auto qt_meta_stringdata_ZN11SeatAdaptorE = QtMocHelpers::stringData(
    "SeatAdaptor",
    "D-Bus Interface",
    "org.freedesktop.DisplayManager.Seat",
    "D-Bus Introspection",
    "  <interface name=\"org.freedesktop.DisplayManager.Seat\">\n    <metho"
    "d name=\"SwitchToGreeter\"/>\n    <method name=\"SwitchToUser\">\n    "
    "  <arg direction=\"in\" type=\"s\" name=\"username\"/>\n      <arg dir"
    "ection=\"in\" type=\"s\" name=\"session_name\"/>\n    </method>\n    <"
    "method name=\"SwitchToGuest\">\n      <arg direction=\"in\" type=\"s\""
    " name=\"session_name\"/>\n    </method>\n    <method name=\"Lock\"/>\n"
    "    <property access=\"read\" type=\"b\" name=\"CanSwitch\"/>\n    <pr"
    "operty access=\"read\" type=\"b\" name=\"HasGuestAccount\"/>\n    <pro"
    "perty access=\"read\" type=\"ao\" name=\"Sessions\"/>\n  </interface>\n",
    "Lock",
    "",
    "SwitchToGreeter",
    "SwitchToGuest",
    "session_name",
    "SwitchToUser",
    "username",
    "CanSwitch",
    "HasGuestAccount",
    "Sessions",
    "QList<QDBusObjectPath>"
);
#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_ZN11SeatAdaptorE[] = {

 // content:
      12,       // revision
       0,       // classname
       2,   14, // classinfo
       4,   18, // methods
       3,   52, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       0,       // signalCount

 // classinfo: key, value
       1,    2,
       3,    4,

 // slots: name, argc, parameters, tag, flags, initial metatype offsets
       5,    0,   42,    6, 0x0a,    4 /* Public */,
       7,    0,   43,    6, 0x0a,    5 /* Public */,
       8,    1,   44,    6, 0x0a,    6 /* Public */,
      10,    2,   47,    6, 0x0a,    8 /* Public */,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,    9,
    QMetaType::Void, QMetaType::QString, QMetaType::QString,   11,    9,

 // properties: name, type, flags, notifyId, revision
      12, QMetaType::Bool, 0x00015001, uint(-1), 0,
      13, QMetaType::Bool, 0x00015001, uint(-1), 0,
      14, 0x80000000 | 15, 0x00015009, uint(-1), 0,

       0        // eod
};

Q_CONSTINIT const QMetaObject SeatAdaptor::staticMetaObject = { {
    QMetaObject::SuperData::link<QDBusAbstractAdaptor::staticMetaObject>(),
    qt_meta_stringdata_ZN11SeatAdaptorE.offsetsAndSizes,
    qt_meta_data_ZN11SeatAdaptorE,
    qt_static_metacall,
    nullptr,
    qt_incomplete_metaTypeArray<qt_meta_tag_ZN11SeatAdaptorE_t,
        // property 'CanSwitch'
        QtPrivate::TypeAndForceComplete<bool, std::true_type>,
        // property 'HasGuestAccount'
        QtPrivate::TypeAndForceComplete<bool, std::true_type>,
        // property 'Sessions'
        QtPrivate::TypeAndForceComplete<QList<QDBusObjectPath>, std::true_type>,
        // Q_OBJECT / Q_GADGET
        QtPrivate::TypeAndForceComplete<SeatAdaptor, std::true_type>,
        // method 'Lock'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        // method 'SwitchToGreeter'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        // method 'SwitchToGuest'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
        // method 'SwitchToUser'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
        QtPrivate::TypeAndForceComplete<const QString &, std::false_type>
    >,
    nullptr
} };

void SeatAdaptor::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<SeatAdaptor *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->Lock(); break;
        case 1: _t->SwitchToGreeter(); break;
        case 2: _t->SwitchToGuest((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1]))); break;
        case 3: _t->SwitchToUser((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<QString>>(_a[2]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< bool*>(_v) = _t->canSwitch(); break;
        case 1: *reinterpret_cast< bool*>(_v) = _t->hasGuestAccount(); break;
        case 2: *reinterpret_cast< QList<QDBusObjectPath>*>(_v) = _t->sessions(); break;
        default: break;
        }
    }
}

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

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

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