/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c Seat -p generated/org_freedesktop_displaymanager_seat ../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 __SeatPrivate;
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)
    bool canSwitch();

    Q_PROPERTY(bool HasGuestAccount READ hasGuestAccount NOTIFY HasGuestAccountChanged)
    bool hasGuestAccount();

    Q_PROPERTY(QList<QDBusObjectPath> Sessions READ sessions NOTIFY SessionsChanged)
    QList<QDBusObjectPath> sessions();

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

    inline void LockQueued()
    {
        QList<QVariant> argumentList;

        CallQueued(QStringLiteral("Lock"), argumentList);
    }


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

    inline void SwitchToGreeterQueued()
    {
        QList<QVariant> argumentList;

        CallQueued(QStringLiteral("SwitchToGreeter"), argumentList);
    }


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

    inline void SwitchToGuestQueued(const QString &session_name)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(session_name);

        CallQueued(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);
    }

    inline void SwitchToUserQueued(const QString &username, const QString &session_name)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(username) << QVariant::fromValue(session_name);

        CallQueued(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;

public Q_SLOTS:
    void CallQueued(const QString &callName, const QList<QVariant> &args);

private Q_SLOTS:
    void onPendingCallFinished(QDBusPendingCallWatcher *w);
    void onPropertyChanged(const QString &propName, const QVariant &value);

private:
    __SeatPrivate *d_ptr;
};

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