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


#ifdef QT_MOC_HAS_STRINGDATA
static constexpr auto qt_meta_stringdata_ZN21DisplayManagerAdaptorE = QtMocHelpers::stringData(
    "DisplayManagerAdaptor",
    "D-Bus Interface",
    "org.freedesktop.DisplayManager",
    "D-Bus Introspection",
    "  <interface name=\"org.freedesktop.DisplayManager\">\n    <signal nam"
    "e=\"SeatAdded\">\n      <arg type=\"o\" name=\"seat\"/>\n    </signal>"
    "\n    <signal name=\"SeatRemoved\">\n      <arg type=\"o\" name=\"seat"
    "\"/>\n    </signal>\n    <signal name=\"SessionAdded\">\n      <arg ty"
    "pe=\"o\" name=\"session\"/>\n    </signal>\n    <signal name=\"Session"
    "Removed\">\n      <arg type=\"o\" name=\"session\"/>\n    </signal>\n "
    "   <property access=\"read\" type=\"ao\" name=\"Seats\"/>\n    <proper"
    "ty access=\"read\" type=\"ao\" name=\"Sessions\"/>\n  </interface>\n",
    "SeatAdded",
    "",
    "QDBusObjectPath",
    "seat",
    "SeatRemoved",
    "SessionAdded",
    "session",
    "SessionRemoved",
    "Seats",
    "QList<QDBusObjectPath>",
    "Sessions"
);
#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_ZN21DisplayManagerAdaptorE[] = {

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

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

 // signals: name, argc, parameters, tag, flags, initial metatype offsets
       5,    1,   42,    6, 0x06,    3 /* Public */,
       9,    1,   45,    6, 0x06,    5 /* Public */,
      10,    1,   48,    6, 0x06,    7 /* Public */,
      12,    1,   51,    6, 0x06,    9 /* Public */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 7,    8,
    QMetaType::Void, 0x80000000 | 7,    8,
    QMetaType::Void, 0x80000000 | 7,   11,
    QMetaType::Void, 0x80000000 | 7,   11,

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

       0        // eod
};

Q_CONSTINIT const QMetaObject DisplayManagerAdaptor::staticMetaObject = { {
    QMetaObject::SuperData::link<QDBusAbstractAdaptor::staticMetaObject>(),
    qt_meta_stringdata_ZN21DisplayManagerAdaptorE.offsetsAndSizes,
    qt_meta_data_ZN21DisplayManagerAdaptorE,
    qt_static_metacall,
    nullptr,
    qt_incomplete_metaTypeArray<qt_meta_tag_ZN21DisplayManagerAdaptorE_t,
        // property 'Seats'
        QtPrivate::TypeAndForceComplete<QList<QDBusObjectPath>, std::true_type>,
        // property 'Sessions'
        QtPrivate::TypeAndForceComplete<QList<QDBusObjectPath>, std::true_type>,
        // Q_OBJECT / Q_GADGET
        QtPrivate::TypeAndForceComplete<DisplayManagerAdaptor, std::true_type>,
        // method 'SeatAdded'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<const QDBusObjectPath &, std::false_type>,
        // method 'SeatRemoved'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<const QDBusObjectPath &, std::false_type>,
        // method 'SessionAdded'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<const QDBusObjectPath &, std::false_type>,
        // method 'SessionRemoved'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<const QDBusObjectPath &, std::false_type>
    >,
    nullptr
} };

void DisplayManagerAdaptor::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<DisplayManagerAdaptor *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->SeatAdded((*reinterpret_cast< std::add_pointer_t<QDBusObjectPath>>(_a[1]))); break;
        case 1: _t->SeatRemoved((*reinterpret_cast< std::add_pointer_t<QDBusObjectPath>>(_a[1]))); break;
        case 2: _t->SessionAdded((*reinterpret_cast< std::add_pointer_t<QDBusObjectPath>>(_a[1]))); break;
        case 3: _t->SessionRemoved((*reinterpret_cast< std::add_pointer_t<QDBusObjectPath>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _q_method_type = void (DisplayManagerAdaptor::*)(const QDBusObjectPath & );
            if (_q_method_type _q_method = &DisplayManagerAdaptor::SeatAdded; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
                *result = 0;
                return;
            }
        }
        {
            using _q_method_type = void (DisplayManagerAdaptor::*)(const QDBusObjectPath & );
            if (_q_method_type _q_method = &DisplayManagerAdaptor::SeatRemoved; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
                *result = 1;
                return;
            }
        }
        {
            using _q_method_type = void (DisplayManagerAdaptor::*)(const QDBusObjectPath & );
            if (_q_method_type _q_method = &DisplayManagerAdaptor::SessionAdded; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
                *result = 2;
                return;
            }
        }
        {
            using _q_method_type = void (DisplayManagerAdaptor::*)(const QDBusObjectPath & );
            if (_q_method_type _q_method = &DisplayManagerAdaptor::SessionRemoved; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
                *result = 3;
                return;
            }
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QList<QDBusObjectPath>*>(_v) = _t->seats(); break;
        case 1: *reinterpret_cast< QList<QDBusObjectPath>*>(_v) = _t->sessions(); break;
        default: break;
        }
    }
}

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

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

int DisplayManagerAdaptor::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 -= 2;
    }
    return _id;
}

// SIGNAL 0
void DisplayManagerAdaptor::SeatAdded(const QDBusObjectPath & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void DisplayManagerAdaptor::SeatRemoved(const QDBusObjectPath & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void DisplayManagerAdaptor::SessionAdded(const QDBusObjectPath & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void DisplayManagerAdaptor::SessionRemoved(const QDBusObjectPath & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}
QT_WARNING_POP
