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

template <> constexpr inline auto Dtk::Login::DLoginSession::qt_create_metaobjectdata<qt_meta_tag_ZN3Dtk5Login13DLoginSessionE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Dtk::Login::DLoginSession",
        "lockedChanged",
        "",
        "locked",
        "autostartAdded",
        "fileName",
        "autostartRemoved",
        "activate",
        "DExpected<void>",
        "kill",
        "Dtk::Login::SessionRole",
        "who",
        "signalNumber",
        "lock",
        "setIdleHint",
        "idle",
        "setType",
        "Dtk::Login::SessionType",
        "type",
        "terminate",
        "autostartList",
        "DExpected<QStringList>",
        "isAutostart",
        "DExpected<bool>",
        "removeAutostart",
        "addAutostart",
        "active",
        "idleHint",
        "remote",
        "sessionClass",
        "SessionClass",
        "desktop",
        "display",
        "id",
        "name",
        "remoteHost",
        "remoteUser",
        "scope",
        "service",
        "state",
        "SessionState",
        "TTY",
        "SessionType",
        "seat",
        "user",
        "audit",
        "leader",
        "VTNr",
        "idleSinceHint",
        "idleSinceHintMonotonic",
        "createdTime",
        "createdTimeMonotonic"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'lockedChanged'
        QtMocHelpers::SignalData<void(bool)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 3 },
        }}),
        // Signal 'autostartAdded'
        QtMocHelpers::SignalData<void(const QString &)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 5 },
        }}),
        // Signal 'autostartRemoved'
        QtMocHelpers::SignalData<void(const QString &)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 5 },
        }}),
        // Slot 'activate'
        QtMocHelpers::SlotData<DExpected<void>()>(7, 2, QMC::AccessPublic, 0x80000000 | 8),
        // Slot 'kill'
        QtMocHelpers::SlotData<DExpected<void>(Dtk::Login::SessionRole, qint32)>(9, 2, QMC::AccessPublic, 0x80000000 | 8, {{
            { 0x80000000 | 10, 11 }, { QMetaType::Int, 12 },
        }}),
        // Slot 'lock'
        QtMocHelpers::SlotData<DExpected<void>()>(13, 2, QMC::AccessPublic, 0x80000000 | 8),
        // Slot 'setIdleHint'
        QtMocHelpers::SlotData<DExpected<void>(bool)>(14, 2, QMC::AccessPublic, 0x80000000 | 8, {{
            { QMetaType::Bool, 15 },
        }}),
        // Slot 'setType'
        QtMocHelpers::SlotData<DExpected<void>(Dtk::Login::SessionType)>(16, 2, QMC::AccessPublic, 0x80000000 | 8, {{
            { 0x80000000 | 17, 18 },
        }}),
        // Slot 'terminate'
        QtMocHelpers::SlotData<DExpected<void>()>(19, 2, QMC::AccessPublic, 0x80000000 | 8),
        // Slot 'autostartList'
        QtMocHelpers::SlotData<DExpected<QStringList>()>(20, 2, QMC::AccessPublic, 0x80000000 | 21),
        // Slot 'isAutostart'
        QtMocHelpers::SlotData<DExpected<bool>(const QString &)>(22, 2, QMC::AccessPublic, 0x80000000 | 23, {{
            { QMetaType::QString, 5 },
        }}),
        // Slot 'removeAutostart'
        QtMocHelpers::SlotData<DExpected<bool>(const QString &)>(24, 2, QMC::AccessPublic, 0x80000000 | 23, {{
            { QMetaType::QString, 5 },
        }}),
        // Slot 'addAutostart'
        QtMocHelpers::SlotData<DExpected<bool>(const QString &)>(25, 2, QMC::AccessPublic, 0x80000000 | 23, {{
            { QMetaType::QString, 5 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'active'
        QtMocHelpers::PropertyData<bool>(26, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'idleHint'
        QtMocHelpers::PropertyData<bool>(27, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'locked'
        QtMocHelpers::PropertyData<bool>(3, QMetaType::Bool, QMC::DefaultPropertyFlags, 0),
        // property 'remote'
        QtMocHelpers::PropertyData<bool>(28, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'sessionClass'
        QtMocHelpers::PropertyData<SessionClass>(29, 0x80000000 | 30, QMC::DefaultPropertyFlags | QMC::EnumOrFlag),
        // property 'desktop'
        QtMocHelpers::PropertyData<QString>(31, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'display'
        QtMocHelpers::PropertyData<QString>(32, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'id'
        QtMocHelpers::PropertyData<QString>(33, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'name'
        QtMocHelpers::PropertyData<QString>(34, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'remoteHost'
        QtMocHelpers::PropertyData<QString>(35, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'remoteUser'
        QtMocHelpers::PropertyData<QString>(36, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'scope'
        QtMocHelpers::PropertyData<QString>(37, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'service'
        QtMocHelpers::PropertyData<QString>(38, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'state'
        QtMocHelpers::PropertyData<SessionState>(39, 0x80000000 | 40, QMC::DefaultPropertyFlags | QMC::EnumOrFlag),
        // property 'TTY'
        QtMocHelpers::PropertyData<QString>(41, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'type'
        QtMocHelpers::PropertyData<SessionType>(18, 0x80000000 | 42, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'seat'
        QtMocHelpers::PropertyData<QString>(43, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'user'
        QtMocHelpers::PropertyData<quint32>(44, QMetaType::UInt, QMC::DefaultPropertyFlags),
        // property 'audit'
        QtMocHelpers::PropertyData<quint32>(45, QMetaType::UInt, QMC::DefaultPropertyFlags),
        // property 'leader'
        QtMocHelpers::PropertyData<quint32>(46, QMetaType::UInt, QMC::DefaultPropertyFlags),
        // property 'VTNr'
        QtMocHelpers::PropertyData<quint32>(47, QMetaType::UInt, QMC::DefaultPropertyFlags),
        // property 'idleSinceHint'
        QtMocHelpers::PropertyData<QDateTime>(48, QMetaType::QDateTime, QMC::DefaultPropertyFlags),
        // property 'idleSinceHintMonotonic'
        QtMocHelpers::PropertyData<quint64>(49, QMetaType::ULongLong, QMC::DefaultPropertyFlags),
        // property 'createdTime'
        QtMocHelpers::PropertyData<QDateTime>(50, QMetaType::QDateTime, QMC::DefaultPropertyFlags),
        // property 'createdTimeMonotonic'
        QtMocHelpers::PropertyData<quint64>(51, QMetaType::ULongLong, QMC::DefaultPropertyFlags),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<DLoginSession, qt_meta_tag_ZN3Dtk5Login13DLoginSessionE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Dtk::Login::DLoginSession::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3Dtk5Login13DLoginSessionE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3Dtk5Login13DLoginSessionE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN3Dtk5Login13DLoginSessionE_t>.metaTypes,
    nullptr
} };

void Dtk::Login::DLoginSession::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<DLoginSession *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->lockedChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 1: _t->autostartAdded((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 2: _t->autostartRemoved((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 3: { DExpected<void> _r = _t->activate();
            if (_a[0]) *reinterpret_cast<DExpected<void>*>(_a[0]) = std::move(_r); }  break;
        case 4: { DExpected<void> _r = _t->kill((*reinterpret_cast<std::add_pointer_t<Dtk::Login::SessionRole>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<qint32>>(_a[2])));
            if (_a[0]) *reinterpret_cast<DExpected<void>*>(_a[0]) = std::move(_r); }  break;
        case 5: { DExpected<void> _r = _t->lock();
            if (_a[0]) *reinterpret_cast<DExpected<void>*>(_a[0]) = std::move(_r); }  break;
        case 6: { DExpected<void> _r = _t->setIdleHint((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])));
            if (_a[0]) *reinterpret_cast<DExpected<void>*>(_a[0]) = std::move(_r); }  break;
        case 7: { DExpected<void> _r = _t->setType((*reinterpret_cast<std::add_pointer_t<Dtk::Login::SessionType>>(_a[1])));
            if (_a[0]) *reinterpret_cast<DExpected<void>*>(_a[0]) = std::move(_r); }  break;
        case 8: { DExpected<void> _r = _t->terminate();
            if (_a[0]) *reinterpret_cast<DExpected<void>*>(_a[0]) = std::move(_r); }  break;
        case 9: { DExpected<QStringList> _r = _t->autostartList();
            if (_a[0]) *reinterpret_cast<DExpected<QStringList>*>(_a[0]) = std::move(_r); }  break;
        case 10: { DExpected<bool> _r = _t->isAutostart((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<DExpected<bool>*>(_a[0]) = std::move(_r); }  break;
        case 11: { DExpected<bool> _r = _t->removeAutostart((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<DExpected<bool>*>(_a[0]) = std::move(_r); }  break;
        case 12: { DExpected<bool> _r = _t->addAutostart((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<DExpected<bool>*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 4:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Dtk::Login::SessionRole >(); break;
            }
            break;
        case 7:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Dtk::Login::SessionType >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (DLoginSession::*)(bool )>(_a, &DLoginSession::lockedChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (DLoginSession::*)(const QString & )>(_a, &DLoginSession::autostartAdded, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (DLoginSession::*)(const QString & )>(_a, &DLoginSession::autostartRemoved, 2))
            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->locked(); break;
        case 3: *reinterpret_cast<bool*>(_v) = _t->remote(); break;
        case 4: *reinterpret_cast<SessionClass*>(_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<SessionState*>(_v) = _t->state(); break;
        case 14: *reinterpret_cast<QString*>(_v) = _t->TTY(); break;
        case 15: *reinterpret_cast<SessionType*>(_v) = _t->type(); break;
        case 16: *reinterpret_cast<QString*>(_v) = _t->seat(); break;
        case 17: *reinterpret_cast<quint32*>(_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<QDateTime*>(_v) = _t->idleSinceHint(); break;
        case 22: *reinterpret_cast<quint64*>(_v) = _t->idleSinceHintMonotonic(); break;
        case 23: *reinterpret_cast<QDateTime*>(_v) = _t->createdTime(); break;
        case 24: *reinterpret_cast<quint64*>(_v) = _t->createdTimeMonotonic(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 1: _t->setIdleHint(*reinterpret_cast<bool*>(_v)); break;
        case 15: _t->setType(*reinterpret_cast<SessionType*>(_v)); break;
        default: break;
        }
    }
}

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

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

int Dtk::Login::DLoginSession::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 < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    }
    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::DLoginSession::lockedChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Dtk::Login::DLoginSession::autostartAdded(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Dtk::Login::DLoginSession::autostartRemoved(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}
QT_WARNING_POP
