/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c Session -p generated/org_freedesktop_displaymanager_session /build/deepin-qt-dbus-factory/src/dde-qt-dbus-factory-1.1.1/xml/org.freedesktop.DisplayManager.Session.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_SESSION_H
#define ORG_FREEDESKTOP_DISPLAYMANAGER_SESSION_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.Session
 */
class __SessionPrivate;
class __Session : public DBusExtendedAbstractInterface
{
    Q_OBJECT

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

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

    ~__Session();

    Q_PROPERTY(QDBusObjectPath Seat READ seat NOTIFY SeatChanged)
    QDBusObjectPath seat();

    Q_PROPERTY(QString UserName READ userName NOTIFY UserNameChanged)
    QString userName();

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



Q_SIGNALS: // SIGNALS
    // begin property changed signals
    void SeatChanged(const QDBusObjectPath & value) const;
    void UserNameChanged(const QString & 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:
    __SessionPrivate *d_ptr;
};

namespace org {
  namespace freedesktop {
    namespace displaymanager {
      typedef ::__Session Session;
    }
  }
}
#endif
