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

#include "../../login/dbus/login1sessioninterface.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 'login1sessioninterface.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.10.2. 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_ZN3Dtk5Login22Login1SessionInterfaceE_t {};
} // unnamed namespace

template <> constexpr inline auto Dtk::Login::Login1SessionInterface::qt_create_metaobjectdata<qt_meta_tag_ZN3Dtk5Login22Login1SessionInterfaceE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Dtk::Login::Login1SessionInterface",
        "locked",
        "",
        "pauseDevice",
        "value",
        "device",
        "location",
        "resumeDevice",
        "descriptor",
        "unlocked",
        "activate",
        "QDBusPendingReply<>",
        "kill",
        "who",
        "signalNumber",
        "lock",
        "pauseDeviceComplete",
        "major",
        "minor",
        "releaseControl",
        "releaseDevice",
        "setBrightness",
        "subsystem",
        "name",
        "brightness",
        "setIdleHint",
        "idle",
        "setLockedHint",
        "setType",
        "type",
        "takeControl",
        "force",
        "takeDevice",
        "QDBusPendingReply<int,bool>",
        "terminate",
        "unlock",
        "active",
        "idleHint",
        "lockedHint",
        "remote",
        "sessionClass",
        "desktop",
        "display",
        "id",
        "remoteHost",
        "remoteUser",
        "scope",
        "service",
        "state",
        "TTY",
        "seat",
        "DBusSeatPath",
        "user",
        "DBusUserPath",
        "audit",
        "leader",
        "VTNr",
        "idleSinceHint",
        "idleSinceHintMonotonic",
        "timestamp",
        "timestampMonotonic"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'locked'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'pauseDevice'
        QtMocHelpers::SignalData<void(const quint32, const quint32, const QString &)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 4 }, { QMetaType::UInt, 5 }, { QMetaType::QString, 6 },
        }}),
        // Signal 'resumeDevice'
        QtMocHelpers::SignalData<void(const quint32, const quint32, const int)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 4 }, { QMetaType::UInt, 5 }, { QMetaType::Int, 8 },
        }}),
        // Signal 'unlocked'
        QtMocHelpers::SignalData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'activate'
        QtMocHelpers::SlotData<QDBusPendingReply<>()>(10, 2, QMC::AccessPublic, 0x80000000 | 11),
        // Slot 'kill'
        QtMocHelpers::SlotData<QDBusPendingReply<>(const QString &, qint32)>(12, 2, QMC::AccessPublic, 0x80000000 | 11, {{
            { QMetaType::QString, 13 }, { QMetaType::Int, 14 },
        }}),
        // Slot 'lock'
        QtMocHelpers::SlotData<QDBusPendingReply<>()>(15, 2, QMC::AccessPublic, 0x80000000 | 11),
        // Slot 'pauseDeviceComplete'
        QtMocHelpers::SlotData<QDBusPendingReply<>(quint32, quint32)>(16, 2, QMC::AccessPublic, 0x80000000 | 11, {{
            { QMetaType::UInt, 17 }, { QMetaType::UInt, 18 },
        }}),
        // Slot 'releaseControl'
        QtMocHelpers::SlotData<QDBusPendingReply<>()>(19, 2, QMC::AccessPublic, 0x80000000 | 11),
        // Slot 'releaseDevice'
        QtMocHelpers::SlotData<QDBusPendingReply<>(quint32, quint32)>(20, 2, QMC::AccessPublic, 0x80000000 | 11, {{
            { QMetaType::UInt, 17 }, { QMetaType::UInt, 18 },
        }}),
        // Slot 'setBrightness'
        QtMocHelpers::SlotData<QDBusPendingReply<>(const QString &, const QString &, quint32)>(21, 2, QMC::AccessPublic, 0x80000000 | 11, {{
            { QMetaType::QString, 22 }, { QMetaType::QString, 23 }, { QMetaType::UInt, 24 },
        }}),
        // Slot 'setIdleHint'
        QtMocHelpers::SlotData<QDBusPendingReply<>(bool)>(25, 2, QMC::AccessPublic, 0x80000000 | 11, {{
            { QMetaType::Bool, 26 },
        }}),
        // Slot 'setLockedHint'
        QtMocHelpers::SlotData<QDBusPendingReply<>(bool)>(27, 2, QMC::AccessPublic, 0x80000000 | 11, {{
            { QMetaType::Bool, 1 },
        }}),
        // Slot 'setType'
        QtMocHelpers::SlotData<QDBusPendingReply<>(const QString &)>(28, 2, QMC::AccessPublic, 0x80000000 | 11, {{
            { QMetaType::QString, 29 },
        }}),
        // Slot 'takeControl'
        QtMocHelpers::SlotData<QDBusPendingReply<>(bool)>(30, 2, QMC::AccessPublic, 0x80000000 | 11, {{
            { QMetaType::Bool, 31 },
        }}),
        // Slot 'takeDevice'
        QtMocHelpers::SlotData<QDBusPendingReply<int,bool>(quint32, quint32)>(32, 2, QMC::AccessPublic, 0x80000000 | 33, {{
            { QMetaType::UInt, 17 }, { QMetaType::UInt, 18 },
        }}),
        // Slot 'terminate'
        QtMocHelpers::SlotData<QDBusPendingReply<>()>(34, 2, QMC::AccessPublic, 0x80000000 | 11),
        // Slot 'unlock'
        QtMocHelpers::SlotData<QDBusPendingReply<>()>(35, 2, QMC::AccessPublic, 0x80000000 | 11),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'active'
        QtMocHelpers::PropertyData<bool>(36, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'idleHint'
        QtMocHelpers::PropertyData<bool>(37, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'lockedHint'
        QtMocHelpers::PropertyData<bool>(38, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'remote'
        QtMocHelpers::PropertyData<bool>(39, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'sessionClass'
        QtMocHelpers::PropertyData<QString>(40, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'desktop'
        QtMocHelpers::PropertyData<QString>(41, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'display'
        QtMocHelpers::PropertyData<QString>(42, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'id'
        QtMocHelpers::PropertyData<QString>(43, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'name'
        QtMocHelpers::PropertyData<QString>(23, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'remoteHost'
        QtMocHelpers::PropertyData<QString>(44, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'remoteUser'
        QtMocHelpers::PropertyData<QString>(45, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'scope'
        QtMocHelpers::PropertyData<QString>(46, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'service'
        QtMocHelpers::PropertyData<QString>(47, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'state'
        QtMocHelpers::PropertyData<QString>(48, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'TTY'
        QtMocHelpers::PropertyData<QString>(49, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'type'
        QtMocHelpers::PropertyData<QString>(29, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'seat'
        QtMocHelpers::PropertyData<DBusSeatPath>(50, 0x80000000 | 51, QMC::DefaultPropertyFlags | QMC::EnumOrFlag),
        // property 'user'
        QtMocHelpers::PropertyData<DBusUserPath>(52, 0x80000000 | 53, QMC::DefaultPropertyFlags | QMC::EnumOrFlag),
        // property 'audit'
        QtMocHelpers::PropertyData<quint32>(54, QMetaType::UInt, QMC::DefaultPropertyFlags),
        // property 'leader'
        QtMocHelpers::PropertyData<quint32>(55, QMetaType::UInt, QMC::DefaultPropertyFlags),
        // property 'VTNr'
        QtMocHelpers::PropertyData<quint32>(56, QMetaType::UInt, QMC::DefaultPropertyFlags),
        // property 'idleSinceHint'
        QtMocHelpers::PropertyData<quint64>(57, QMetaType::ULongLong, QMC::DefaultPropertyFlags),
        // property 'idleSinceHintMonotonic'
        QtMocHelpers::PropertyData<quint64>(58, QMetaType::ULongLong, QMC::DefaultPropertyFlags),
        // property 'timestamp'
        QtMocHelpers::PropertyData<quint64>(59, QMetaType::ULongLong, QMC::DefaultPropertyFlags),
        // property 'timestampMonotonic'
        QtMocHelpers::PropertyData<quint64>(60, QMetaType::ULongLong, QMC::DefaultPropertyFlags),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<Login1SessionInterface, qt_meta_tag_ZN3Dtk5Login22Login1SessionInterfaceE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Dtk::Login::Login1SessionInterface::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3Dtk5Login22Login1SessionInterfaceE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3Dtk5Login22Login1SessionInterfaceE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN3Dtk5Login22Login1SessionInterfaceE_t>.metaTypes,
    nullptr
} };

void Dtk::Login::Login1SessionInterface::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Login1SessionInterface *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->locked(); break;
        case 1: _t->pauseDevice((*reinterpret_cast<std::add_pointer_t<quint32>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<quint32>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[3]))); break;
        case 2: _t->resumeDevice((*reinterpret_cast<std::add_pointer_t<quint32>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<quint32>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3]))); break;
        case 3: _t->unlocked(); break;
        case 4: { QDBusPendingReply<> _r = _t->activate();
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<>*>(_a[0]) = std::move(_r); }  break;
        case 5: { QDBusPendingReply<> _r = _t->kill((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<qint32>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<>*>(_a[0]) = std::move(_r); }  break;
        case 6: { QDBusPendingReply<> _r = _t->lock();
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<>*>(_a[0]) = std::move(_r); }  break;
        case 7: { QDBusPendingReply<> _r = _t->pauseDeviceComplete((*reinterpret_cast<std::add_pointer_t<quint32>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<quint32>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<>*>(_a[0]) = std::move(_r); }  break;
        case 8: { QDBusPendingReply<> _r = _t->releaseControl();
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<>*>(_a[0]) = std::move(_r); }  break;
        case 9: { QDBusPendingReply<> _r = _t->releaseDevice((*reinterpret_cast<std::add_pointer_t<quint32>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<quint32>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<>*>(_a[0]) = std::move(_r); }  break;
        case 10: { QDBusPendingReply<> _r = _t->setBrightness((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<quint32>>(_a[3])));
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<>*>(_a[0]) = std::move(_r); }  break;
        case 11: { QDBusPendingReply<> _r = _t->setIdleHint((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<>*>(_a[0]) = std::move(_r); }  break;
        case 12: { QDBusPendingReply<> _r = _t->setLockedHint((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<>*>(_a[0]) = std::move(_r); }  break;
        case 13: { QDBusPendingReply<> _r = _t->setType((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<>*>(_a[0]) = std::move(_r); }  break;
        case 14: { QDBusPendingReply<> _r = _t->takeControl((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<>*>(_a[0]) = std::move(_r); }  break;
        case 15: { QDBusPendingReply<int,bool> _r = _t->takeDevice((*reinterpret_cast<std::add_pointer_t<quint32>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<quint32>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<int,bool>*>(_a[0]) = std::move(_r); }  break;
        case 16: { QDBusPendingReply<> _r = _t->terminate();
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<>*>(_a[0]) = std::move(_r); }  break;
        case 17: { QDBusPendingReply<> _r = _t->unlock();
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<>*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Login1SessionInterface::*)()>(_a, &Login1SessionInterface::locked, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Login1SessionInterface::*)(const quint32 , const quint32 , const QString & )>(_a, &Login1SessionInterface::pauseDevice, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Login1SessionInterface::*)(const quint32 , const quint32 , const int )>(_a, &Login1SessionInterface::resumeDevice, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (Login1SessionInterface::*)()>(_a, &Login1SessionInterface::unlocked, 3))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->active(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->idleHint(); break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->lockedHint(); break;
        case 3: *reinterpret_cast<bool*>(_v) = _t->remote(); break;
        case 4: *reinterpret_cast<QString*>(_v) = _t->sessionClass(); break;
        case 5: *reinterpret_cast<QString*>(_v) = _t->desktop(); break;
        case 6: *reinterpret_cast<QString*>(_v) = _t->display(); break;
        case 7: *reinterpret_cast<QString*>(_v) = _t->id(); break;
        case 8: *reinterpret_cast<QString*>(_v) = _t->name(); break;
        case 9: *reinterpret_cast<QString*>(_v) = _t->remoteHost(); break;
        case 10: *reinterpret_cast<QString*>(_v) = _t->remoteUser(); break;
        case 11: *reinterpret_cast<QString*>(_v) = _t->scope(); break;
        case 12: *reinterpret_cast<QString*>(_v) = _t->service(); break;
        case 13: *reinterpret_cast<QString*>(_v) = _t->state(); break;
        case 14: *reinterpret_cast<QString*>(_v) = _t->TTY(); break;
        case 15: *reinterpret_cast<QString*>(_v) = _t->type(); break;
        case 16: *reinterpret_cast<DBusSeatPath*>(_v) = _t->seat(); break;
        case 17: *reinterpret_cast<DBusUserPath*>(_v) = _t->user(); break;
        case 18: *reinterpret_cast<quint32*>(_v) = _t->audit(); break;
        case 19: *reinterpret_cast<quint32*>(_v) = _t->leader(); break;
        case 20: *reinterpret_cast<quint32*>(_v) = _t->VTNr(); break;
        case 21: *reinterpret_cast<quint64*>(_v) = _t->idleSinceHint(); break;
        case 22: *reinterpret_cast<quint64*>(_v) = _t->idleSinceHintMonotonic(); break;
        case 23: *reinterpret_cast<quint64*>(_v) = _t->timestamp(); break;
        case 24: *reinterpret_cast<quint64*>(_v) = _t->timestampMonotonic(); break;
        default: break;
        }
    }
}

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

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

int Dtk::Login::Login1SessionInterface::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 < 18)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 18;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 18)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 18;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 25;
    }
    return _id;
}

// SIGNAL 0
void Dtk::Login::Login1SessionInterface::locked()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void Dtk::Login::Login1SessionInterface::pauseDevice(const quint32 _t1, const quint32 _t2, const QString & _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2, _t3);
}

// SIGNAL 2
void Dtk::Login::Login1SessionInterface::resumeDevice(const quint32 _t1, const quint32 _t2, const int _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1, _t2, _t3);
}

// SIGNAL 3
void Dtk::Login::Login1SessionInterface::unlocked()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}
QT_WARNING_POP
