/****************************************************************************
** Meta object code from reading C++ file 'Display.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 "../../../../../sddm-0.21.0/src/daemon/Display.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 'Display.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_ZN4SDDM7DisplayE_t {};
} // unnamed namespace


#ifdef QT_MOC_HAS_STRINGDATA
static constexpr auto qt_meta_stringdata_ZN4SDDM7DisplayE = QtMocHelpers::stringData(
    "SDDM::Display",
    "stopped",
    "",
    "displayServerFailed",
    "loginFailed",
    "QLocalSocket*",
    "socket",
    "loginSucceeded",
    "start",
    "stop",
    "login",
    "user",
    "password",
    "Session",
    "session",
    "attemptAutologin",
    "displayServerStarted",
    "slotRequestChanged",
    "slotAuthenticationFinished",
    "success",
    "slotSessionStarted",
    "slotHelperFinished",
    "Auth::HelperExitStatus",
    "status",
    "slotAuthInfo",
    "message",
    "Auth::Info",
    "info",
    "slotAuthError",
    "Auth::Error",
    "error",
    "DisplayServerType",
    "X11DisplayServerType",
    "X11UserDisplayServerType",
    "WaylandDisplayServerType"
);
#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_ZN4SDDM7DisplayE[] = {

 // content:
      12,       // revision
       0,       // classname
       0,    0, // classinfo
      15,   14, // methods
       0,    0, // properties
       1,  147, // enums/sets
       0,    0, // constructors
       0,       // flags
       4,       // signalCount

 // signals: name, argc, parameters, tag, flags, initial metatype offsets
       1,    0,  104,    2, 0x06,    2 /* Public */,
       3,    0,  105,    2, 0x06,    3 /* Public */,
       4,    1,  106,    2, 0x06,    4 /* Public */,
       7,    1,  109,    2, 0x06,    6 /* Public */,

 // slots: name, argc, parameters, tag, flags, initial metatype offsets
       8,    0,  112,    2, 0x0a,    8 /* Public */,
       9,    0,  113,    2, 0x0a,    9 /* Public */,
      10,    4,  114,    2, 0x0a,   10 /* Public */,
      15,    0,  123,    2, 0x0a,   15 /* Public */,
      16,    0,  124,    2, 0x0a,   16 /* Public */,
      17,    0,  125,    2, 0x08,   17 /* Private */,
      18,    2,  126,    2, 0x08,   18 /* Private */,
      20,    1,  131,    2, 0x08,   21 /* Private */,
      21,    1,  134,    2, 0x08,   23 /* Private */,
      24,    2,  137,    2, 0x08,   25 /* Private */,
      28,    2,  142,    2, 0x08,   28 /* Private */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 5,    6,
    QMetaType::Void, 0x80000000 | 5,    6,

 // slots: parameters
    QMetaType::Bool,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 5, QMetaType::QString, QMetaType::QString, 0x80000000 | 13,    6,   11,   12,   14,
    QMetaType::Bool,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString, QMetaType::Bool,   11,   19,
    QMetaType::Void, QMetaType::Bool,   19,
    QMetaType::Void, 0x80000000 | 22,   23,
    QMetaType::Void, QMetaType::QString, 0x80000000 | 26,   25,   27,
    QMetaType::Void, QMetaType::QString, 0x80000000 | 29,   25,   30,

 // enums: name, alias, flags, count, data
      31,   31, 0x0,    3,  152,

 // enum data: key, value
      32, uint(SDDM::Display::X11DisplayServerType),
      33, uint(SDDM::Display::X11UserDisplayServerType),
      34, uint(SDDM::Display::WaylandDisplayServerType),

       0        // eod
};

Q_CONSTINIT const QMetaObject SDDM::Display::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_ZN4SDDM7DisplayE.offsetsAndSizes,
    qt_meta_data_ZN4SDDM7DisplayE,
    qt_static_metacall,
    nullptr,
    qt_incomplete_metaTypeArray<qt_meta_tag_ZN4SDDM7DisplayE_t,
        // enum 'DisplayServerType'
        QtPrivate::TypeAndForceComplete<Display::DisplayServerType, std::true_type>,
        // Q_OBJECT / Q_GADGET
        QtPrivate::TypeAndForceComplete<Display, std::true_type>,
        // method 'stopped'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        // method 'displayServerFailed'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        // method 'loginFailed'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<QLocalSocket *, std::false_type>,
        // method 'loginSucceeded'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<QLocalSocket *, std::false_type>,
        // method 'start'
        QtPrivate::TypeAndForceComplete<bool, std::false_type>,
        // method 'stop'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        // method 'login'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<QLocalSocket *, std::false_type>,
        QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
        QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
        QtPrivate::TypeAndForceComplete<const Session &, std::false_type>,
        // method 'attemptAutologin'
        QtPrivate::TypeAndForceComplete<bool, std::false_type>,
        // method 'displayServerStarted'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        // method 'slotRequestChanged'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        // method 'slotAuthenticationFinished'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
        QtPrivate::TypeAndForceComplete<bool, std::false_type>,
        // method 'slotSessionStarted'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<bool, std::false_type>,
        // method 'slotHelperFinished'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<Auth::HelperExitStatus, std::false_type>,
        // method 'slotAuthInfo'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
        QtPrivate::TypeAndForceComplete<Auth::Info, std::false_type>,
        // method 'slotAuthError'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
        QtPrivate::TypeAndForceComplete<Auth::Error, std::false_type>
    >,
    nullptr
} };

void SDDM::Display::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Display *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->stopped(); break;
        case 1: _t->displayServerFailed(); break;
        case 2: _t->loginFailed((*reinterpret_cast< std::add_pointer_t<QLocalSocket*>>(_a[1]))); break;
        case 3: _t->loginSucceeded((*reinterpret_cast< std::add_pointer_t<QLocalSocket*>>(_a[1]))); break;
        case 4: { bool _r = _t->start();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 5: _t->stop(); break;
        case 6: _t->login((*reinterpret_cast< std::add_pointer_t<QLocalSocket*>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast< std::add_pointer_t<QString>>(_a[3])),(*reinterpret_cast< std::add_pointer_t<Session>>(_a[4]))); break;
        case 7: { bool _r = _t->attemptAutologin();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 8: _t->displayServerStarted(); break;
        case 9: _t->slotRequestChanged(); break;
        case 10: _t->slotAuthenticationFinished((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<bool>>(_a[2]))); break;
        case 11: _t->slotSessionStarted((*reinterpret_cast< std::add_pointer_t<bool>>(_a[1]))); break;
        case 12: _t->slotHelperFinished((*reinterpret_cast< std::add_pointer_t<Auth::HelperExitStatus>>(_a[1]))); break;
        case 13: _t->slotAuthInfo((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<Auth::Info>>(_a[2]))); break;
        case 14: _t->slotAuthError((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<Auth::Error>>(_a[2]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _q_method_type = void (Display::*)();
            if (_q_method_type _q_method = &Display::stopped; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
                *result = 0;
                return;
            }
        }
        {
            using _q_method_type = void (Display::*)();
            if (_q_method_type _q_method = &Display::displayServerFailed; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
                *result = 1;
                return;
            }
        }
        {
            using _q_method_type = void (Display::*)(QLocalSocket * );
            if (_q_method_type _q_method = &Display::loginFailed; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
                *result = 2;
                return;
            }
        }
        {
            using _q_method_type = void (Display::*)(QLocalSocket * );
            if (_q_method_type _q_method = &Display::loginSucceeded; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
                *result = 3;
                return;
            }
        }
    }
}

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

void *SDDM::Display::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_ZN4SDDM7DisplayE.stringdata0))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int SDDM::Display::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 < 15)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 15;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 15)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 15;
    }
    return _id;
}

// SIGNAL 0
void SDDM::Display::stopped()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void SDDM::Display::displayServerFailed()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

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

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