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

template <> constexpr inline auto Dtk::Accounts::DUserInterface::qt_create_metaobjectdata<qt_meta_tag_ZN3Dtk8Accounts14DUserInterfaceE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Dtk::Accounts::DUserInterface",
        "DataChanged",
        "",
        "getPasswordExpirationPolicy",
        "QDBusPendingReply<qint64,qint64,qint64,qint64,qint64,qint64>",
        "setAccountType",
        "QDBusPendingReply<void>",
        "accountType",
        "setAutomaticLogin",
        "enabled",
        "setEmail",
        "email",
        "setHomeDirectory",
        "homedir",
        "setIconFile",
        "filename",
        "setLanguage",
        "language",
        "setLocation",
        "location",
        "setLocked",
        "locked",
        "setPassword",
        "password",
        "hint",
        "setPasswordHint",
        "setPasswordMode",
        "mode",
        "setRealName",
        "name",
        "setShell",
        "shell",
        "setUserName",
        "setXSession",
        "x_session",
        "automaticLogin",
        "localAccount",
        "systemAccount",
        "passwordMode",
        "loginTime",
        "homeDirectory",
        "iconFile",
        "passwordHint",
        "realName",
        "userName",
        "xSession",
        "loginFrequency",
        "UID"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'DataChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'getPasswordExpirationPolicy'
        QtMocHelpers::SlotData<QDBusPendingReply<qint64,qint64,qint64,qint64,qint64,qint64>()>(3, 2, QMC::AccessPublic, 0x80000000 | 4),
        // Slot 'setAccountType'
        QtMocHelpers::SlotData<QDBusPendingReply<void>(qint32)>(5, 2, QMC::AccessPublic, 0x80000000 | 6, {{
            { QMetaType::Int, 7 },
        }}),
        // Slot 'setAutomaticLogin'
        QtMocHelpers::SlotData<QDBusPendingReply<void>(bool)>(8, 2, QMC::AccessPublic, 0x80000000 | 6, {{
            { QMetaType::Bool, 9 },
        }}),
        // Slot 'setEmail'
        QtMocHelpers::SlotData<QDBusPendingReply<void>(const QString &)>(10, 2, QMC::AccessPublic, 0x80000000 | 6, {{
            { QMetaType::QString, 11 },
        }}),
        // Slot 'setHomeDirectory'
        QtMocHelpers::SlotData<QDBusPendingReply<void>(const QString &)>(12, 2, QMC::AccessPublic, 0x80000000 | 6, {{
            { QMetaType::QString, 13 },
        }}),
        // Slot 'setIconFile'
        QtMocHelpers::SlotData<QDBusPendingReply<void>(const QString &)>(14, 2, QMC::AccessPublic, 0x80000000 | 6, {{
            { QMetaType::QString, 15 },
        }}),
        // Slot 'setLanguage'
        QtMocHelpers::SlotData<QDBusPendingReply<void>(const QString &)>(16, 2, QMC::AccessPublic, 0x80000000 | 6, {{
            { QMetaType::QString, 17 },
        }}),
        // Slot 'setLocation'
        QtMocHelpers::SlotData<QDBusPendingReply<void>(const QString &)>(18, 2, QMC::AccessPublic, 0x80000000 | 6, {{
            { QMetaType::QString, 19 },
        }}),
        // Slot 'setLocked'
        QtMocHelpers::SlotData<QDBusPendingReply<void>(bool)>(20, 2, QMC::AccessPublic, 0x80000000 | 6, {{
            { QMetaType::Bool, 21 },
        }}),
        // Slot 'setPassword'
        QtMocHelpers::SlotData<QDBusPendingReply<void>(const QString &, const QString &)>(22, 2, QMC::AccessPublic, 0x80000000 | 6, {{
            { QMetaType::QString, 23 }, { QMetaType::QString, 24 },
        }}),
        // Slot 'setPasswordHint'
        QtMocHelpers::SlotData<QDBusPendingReply<void>(const QString &)>(25, 2, QMC::AccessPublic, 0x80000000 | 6, {{
            { QMetaType::QString, 24 },
        }}),
        // Slot 'setPasswordMode'
        QtMocHelpers::SlotData<QDBusPendingReply<void>(qint32)>(26, 2, QMC::AccessPublic, 0x80000000 | 6, {{
            { QMetaType::Int, 27 },
        }}),
        // Slot 'setRealName'
        QtMocHelpers::SlotData<QDBusPendingReply<void>(const QString &)>(28, 2, QMC::AccessPublic, 0x80000000 | 6, {{
            { QMetaType::QString, 29 },
        }}),
        // Slot 'setShell'
        QtMocHelpers::SlotData<QDBusPendingReply<void>(const QString &)>(30, 2, QMC::AccessPublic, 0x80000000 | 6, {{
            { QMetaType::QString, 31 },
        }}),
        // Slot 'setUserName'
        QtMocHelpers::SlotData<QDBusPendingReply<void>(const QString &)>(32, 2, QMC::AccessPublic, 0x80000000 | 6, {{
            { QMetaType::QString, 29 },
        }}),
        // Slot 'setXSession'
        QtMocHelpers::SlotData<QDBusPendingReply<void>(const QString &)>(33, 2, QMC::AccessPublic, 0x80000000 | 6, {{
            { QMetaType::QString, 34 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'automaticLogin'
        QtMocHelpers::PropertyData<bool>(35, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'localAccount'
        QtMocHelpers::PropertyData<bool>(36, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'locked'
        QtMocHelpers::PropertyData<bool>(21, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'systemAccount'
        QtMocHelpers::PropertyData<bool>(37, QMetaType::Bool, QMC::DefaultPropertyFlags),
        // property 'accountType'
        QtMocHelpers::PropertyData<qint32>(7, QMetaType::Int, QMC::DefaultPropertyFlags),
        // property 'passwordMode'
        QtMocHelpers::PropertyData<qint32>(38, QMetaType::Int, QMC::DefaultPropertyFlags),
        // property 'loginTime'
        QtMocHelpers::PropertyData<qint64>(39, QMetaType::LongLong, QMC::DefaultPropertyFlags),
        // property 'email'
        QtMocHelpers::PropertyData<QString>(11, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'homeDirectory'
        QtMocHelpers::PropertyData<QString>(40, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'iconFile'
        QtMocHelpers::PropertyData<QString>(41, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'language'
        QtMocHelpers::PropertyData<QString>(17, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'location'
        QtMocHelpers::PropertyData<QString>(19, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'passwordHint'
        QtMocHelpers::PropertyData<QString>(42, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'realName'
        QtMocHelpers::PropertyData<QString>(43, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'shell'
        QtMocHelpers::PropertyData<QString>(31, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'userName'
        QtMocHelpers::PropertyData<QString>(44, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'xSession'
        QtMocHelpers::PropertyData<QString>(45, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'loginFrequency'
        QtMocHelpers::PropertyData<quint64>(46, QMetaType::ULongLong, QMC::DefaultPropertyFlags),
        // property 'UID'
        QtMocHelpers::PropertyData<quint64>(47, QMetaType::ULongLong, QMC::DefaultPropertyFlags),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<DUserInterface, qt_meta_tag_ZN3Dtk8Accounts14DUserInterfaceE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Dtk::Accounts::DUserInterface::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3Dtk8Accounts14DUserInterfaceE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3Dtk8Accounts14DUserInterfaceE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN3Dtk8Accounts14DUserInterfaceE_t>.metaTypes,
    nullptr
} };

void Dtk::Accounts::DUserInterface::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<DUserInterface *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->DataChanged(); break;
        case 1: { QDBusPendingReply<qint64,qint64,qint64,qint64,qint64,qint64> _r = _t->getPasswordExpirationPolicy();
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<qint64,qint64,qint64,qint64,qint64,qint64>*>(_a[0]) = std::move(_r); }  break;
        case 2: { QDBusPendingReply<void> _r = _t->setAccountType((*reinterpret_cast<std::add_pointer_t<qint32>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<void>*>(_a[0]) = std::move(_r); }  break;
        case 3: { QDBusPendingReply<void> _r = _t->setAutomaticLogin((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<void>*>(_a[0]) = std::move(_r); }  break;
        case 4: { QDBusPendingReply<void> _r = _t->setEmail((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<void>*>(_a[0]) = std::move(_r); }  break;
        case 5: { QDBusPendingReply<void> _r = _t->setHomeDirectory((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<void>*>(_a[0]) = std::move(_r); }  break;
        case 6: { QDBusPendingReply<void> _r = _t->setIconFile((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<void>*>(_a[0]) = std::move(_r); }  break;
        case 7: { QDBusPendingReply<void> _r = _t->setLanguage((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<void>*>(_a[0]) = std::move(_r); }  break;
        case 8: { QDBusPendingReply<void> _r = _t->setLocation((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<void>*>(_a[0]) = std::move(_r); }  break;
        case 9: { QDBusPendingReply<void> _r = _t->setLocked((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<void>*>(_a[0]) = std::move(_r); }  break;
        case 10: { QDBusPendingReply<void> _r = _t->setPassword((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<void>*>(_a[0]) = std::move(_r); }  break;
        case 11: { QDBusPendingReply<void> _r = _t->setPasswordHint((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<void>*>(_a[0]) = std::move(_r); }  break;
        case 12: { QDBusPendingReply<void> _r = _t->setPasswordMode((*reinterpret_cast<std::add_pointer_t<qint32>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<void>*>(_a[0]) = std::move(_r); }  break;
        case 13: { QDBusPendingReply<void> _r = _t->setRealName((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<void>*>(_a[0]) = std::move(_r); }  break;
        case 14: { QDBusPendingReply<void> _r = _t->setShell((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<void>*>(_a[0]) = std::move(_r); }  break;
        case 15: { QDBusPendingReply<void> _r = _t->setUserName((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<void>*>(_a[0]) = std::move(_r); }  break;
        case 16: { QDBusPendingReply<void> _r = _t->setXSession((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<void>*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (DUserInterface::*)()>(_a, &DUserInterface::DataChanged, 0))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->automaticLogin(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->localAccount(); break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->locked(); break;
        case 3: *reinterpret_cast<bool*>(_v) = _t->systemAccount(); break;
        case 4: *reinterpret_cast<qint32*>(_v) = _t->accountType(); break;
        case 5: *reinterpret_cast<qint32*>(_v) = _t->passwordMode(); break;
        case 6: *reinterpret_cast<qint64*>(_v) = _t->loginTime(); break;
        case 7: *reinterpret_cast<QString*>(_v) = _t->email(); break;
        case 8: *reinterpret_cast<QString*>(_v) = _t->homeDirectory(); break;
        case 9: *reinterpret_cast<QString*>(_v) = _t->iconFile(); break;
        case 10: *reinterpret_cast<QString*>(_v) = _t->language(); break;
        case 11: *reinterpret_cast<QString*>(_v) = _t->location(); break;
        case 12: *reinterpret_cast<QString*>(_v) = _t->passwordHint(); break;
        case 13: *reinterpret_cast<QString*>(_v) = _t->realName(); break;
        case 14: *reinterpret_cast<QString*>(_v) = _t->shell(); break;
        case 15: *reinterpret_cast<QString*>(_v) = _t->userName(); break;
        case 16: *reinterpret_cast<QString*>(_v) = _t->xSession(); break;
        case 17: *reinterpret_cast<quint64*>(_v) = _t->loginFrequency(); break;
        case 18: *reinterpret_cast<quint64*>(_v) = _t->UID(); break;
        default: break;
        }
    }
}

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

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

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

// SIGNAL 0
void Dtk::Accounts::DUserInterface::DataChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}
QT_WARNING_POP
