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

template <> constexpr inline auto Dtk::Accounts::DSystemAccountsInterface::qt_create_metaobjectdata<qt_meta_tag_ZN3Dtk8Accounts24DSystemAccountsInterfaceE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Dtk::Accounts::DSystemAccountsInterface",
        "ReceivedUserAdded",
        "",
        "path",
        "ReceivedUserDeleted",
        "UserListChanged",
        "list",
        "createUser",
        "QDBusPendingReply<QDBusObjectPath>",
        "name",
        "fullName",
        "accountType",
        "deleteUser",
        "QDBusPendingReply<void>",
        "rmFiles",
        "getPresetGroups",
        "QDBusPendingReply<QStringList>",
        "isPasswordValid",
        "QDBusPendingReply<bool,QString,qint32>",
        "password",
        "isUsernameValid",
        "username",
        "receiveUserAdded",
        "user",
        "receiveUserDeleted",
        "UserList"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'ReceivedUserAdded'
        QtMocHelpers::SignalData<void(QString)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 },
        }}),
        // Signal 'ReceivedUserDeleted'
        QtMocHelpers::SignalData<void(QString)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 },
        }}),
        // Signal 'UserListChanged'
        QtMocHelpers::SignalData<void(const QStringList &)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QStringList, 6 },
        }}),
        // Slot 'createUser'
        QtMocHelpers::SlotData<QDBusPendingReply<QDBusObjectPath>(const QString &, const QString &, qint32)>(7, 2, QMC::AccessPublic, 0x80000000 | 8, {{
            { QMetaType::QString, 9 }, { QMetaType::QString, 10 }, { QMetaType::Int, 11 },
        }}),
        // Slot 'deleteUser'
        QtMocHelpers::SlotData<QDBusPendingReply<void>(const QString &, bool)>(12, 2, QMC::AccessPublic, 0x80000000 | 13, {{
            { QMetaType::QString, 9 }, { QMetaType::Bool, 14 },
        }}),
        // Slot 'getPresetGroups'
        QtMocHelpers::SlotData<QDBusPendingReply<QStringList>(qint32)>(15, 2, QMC::AccessPublic, 0x80000000 | 16, {{
            { QMetaType::Int, 11 },
        }}),
        // Slot 'isPasswordValid'
        QtMocHelpers::SlotData<QDBusPendingReply<bool,QString,qint32>(const QString &)>(17, 2, QMC::AccessPublic, 0x80000000 | 18, {{
            { QMetaType::QString, 19 },
        }}),
        // Slot 'isUsernameValid'
        QtMocHelpers::SlotData<QDBusPendingReply<bool,QString,qint32>(const QString &)>(20, 2, QMC::AccessPublic, 0x80000000 | 18, {{
            { QMetaType::QString, 21 },
        }}),
        // Slot 'receiveUserAdded'
        QtMocHelpers::SlotData<void(QString)>(22, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 23 },
        }}),
        // Slot 'receiveUserDeleted'
        QtMocHelpers::SlotData<void(QString)>(24, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 23 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'UserList'
        QtMocHelpers::PropertyData<QStringList>(25, QMetaType::QStringList, QMC::DefaultPropertyFlags, 2),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<DSystemAccountsInterface, qt_meta_tag_ZN3Dtk8Accounts24DSystemAccountsInterfaceE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Dtk::Accounts::DSystemAccountsInterface::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3Dtk8Accounts24DSystemAccountsInterfaceE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3Dtk8Accounts24DSystemAccountsInterfaceE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN3Dtk8Accounts24DSystemAccountsInterfaceE_t>.metaTypes,
    nullptr
} };

void Dtk::Accounts::DSystemAccountsInterface::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<DSystemAccountsInterface *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->ReceivedUserAdded((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 1: _t->ReceivedUserDeleted((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 2: _t->UserListChanged((*reinterpret_cast<std::add_pointer_t<QStringList>>(_a[1]))); break;
        case 3: { QDBusPendingReply<QDBusObjectPath> _r = _t->createUser((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<qint32>>(_a[3])));
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<QDBusObjectPath>*>(_a[0]) = std::move(_r); }  break;
        case 4: { QDBusPendingReply<void> _r = _t->deleteUser((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<void>*>(_a[0]) = std::move(_r); }  break;
        case 5: { QDBusPendingReply<QStringList> _r = _t->getPresetGroups((*reinterpret_cast<std::add_pointer_t<qint32>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<QStringList>*>(_a[0]) = std::move(_r); }  break;
        case 6: { QDBusPendingReply<bool,QString,qint32> _r = _t->isPasswordValid((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<bool,QString,qint32>*>(_a[0]) = std::move(_r); }  break;
        case 7: { QDBusPendingReply<bool,QString,qint32> _r = _t->isUsernameValid((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QDBusPendingReply<bool,QString,qint32>*>(_a[0]) = std::move(_r); }  break;
        case 8: _t->receiveUserAdded((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 9: _t->receiveUserDeleted((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (DSystemAccountsInterface::*)(QString )>(_a, &DSystemAccountsInterface::ReceivedUserAdded, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (DSystemAccountsInterface::*)(QString )>(_a, &DSystemAccountsInterface::ReceivedUserDeleted, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (DSystemAccountsInterface::*)(const QStringList & )>(_a, &DSystemAccountsInterface::UserListChanged, 2))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QStringList*>(_v) = _t->UserList(); break;
        default: break;
        }
    }
}

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

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

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

// SIGNAL 0
void Dtk::Accounts::DSystemAccountsInterface::ReceivedUserAdded(QString _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Dtk::Accounts::DSystemAccountsInterface::ReceivedUserDeleted(QString _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Dtk::Accounts::DSystemAccountsInterface::UserListChanged(const QStringList & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}
QT_WARNING_POP
