/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c Seat -p generated/org_freedesktop_displaymanager_seat /build/deepin-qt-dbus-factory/src/dde-qt-dbus-factory-0.2.1/xml/org.freedesktop.DisplayManager.Seat.xml
 *
 * qdbusxml2cpp-fix is Copyright (C) 2016 Deepin Technology Co., Ltd.
 *
 * This is an auto-generated file.
 * Do not edit! All changes made to it will be lost.
 */

#ifndef ORG_FREEDESKTOP_DISPLAYMANAGER_SEAT_H
#define ORG_FREEDESKTOP_DISPLAYMANAGER_SEAT_H

#include <QtCore/QObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>

#include <DBusExtendedAbstractInterface>
#include <QtDBus/QtDBus>


/*
 * Proxy class for interface org.freedesktop.DisplayManager.Seat
 */
class __Seat : public DBusExtendedAbstractInterface
{
    Q_OBJECT

public:
    static inline const char *staticInterfaceName()
    { return "org.freedesktop.DisplayManager.Seat"; }

public:
    explicit __Seat(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0);

    ~__Seat();

    Q_PROPERTY(bool CanSwitch READ canSwitch NOTIFY CanSwitchChanged)
    inline bool canSwitch()
    { return qvariant_cast< bool >(internalPropGet("CanSwitch", &m_CanSwitch)); }

    Q_PROPERTY(bool HasGuestAccount READ hasGuestAccount NOTIFY HasGuestAccountChanged)
    inline bool hasGuestAccount()
    { return qvariant_cast< bool >(internalPropGet("HasGuestAccount", &m_HasGuestAccount)); }

    Q_PROPERTY(QList<QDBusObjectPath> Sessions READ sessions NOTIFY SessionsChanged)
    inline QList<QDBusObjectPath> sessions()
    { return qvariant_cast< QList<QDBusObjectPath> >(internalPropGet("Sessions", &m_Sessions)); }

public Q_SLOTS: // METHODS
    inline QDBusPendingReply<> Lock()
    {
        QList<QVariant> argumentList;
        return asyncCallWithArgumentList(QStringLiteral("Lock"), argumentList);
    }

    inline QDBusPendingReply<> SwitchToGreeter()
    {
        QList<QVariant> argumentList;
        return asyncCallWithArgumentList(QStringLiteral("SwitchToGreeter"), argumentList);
    }

    inline QDBusPendingReply<> SwitchToGuest(const QString &session_name)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(session_name);
        return asyncCallWithArgumentList(QStringLiteral("SwitchToGuest"), argumentList);
    }

    inline QDBusPendingReply<> SwitchToUser(const QString &username, const QString &session_name)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(username) << QVariant::fromValue(session_name);
        return asyncCallWithArgumentList(QStringLiteral("SwitchToUser"), argumentList);
    }

Q_SIGNALS: // SIGNALS
    void SessionAdded(const QDBusObjectPath &session);
    void SessionRemoved(const QDBusObjectPath &session);
// begin property changed signals
    void CanSwitchChanged(bool  value) const;
    void HasGuestAccountChanged(bool  value) const;
    void SessionsChanged(const QList<QDBusObjectPath> & value) const;

// begin private slots
private Q_SLOTS:
    void onPropertyChanged(const QString &propName, const QVariant &value);

// begin private member vaiables
private:
    bool m_CanSwitch;
    bool m_HasGuestAccount;
    QList<QDBusObjectPath> m_Sessions;
};

namespace org {
  namespace freedesktop {
    namespace displaymanager {
      typedef ::__Seat Seat;
    }
  }
}
#endif
