/*
 * 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-0.2.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 __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)
    inline QDBusObjectPath seat()
    { return qvariant_cast< QDBusObjectPath >(internalPropGet("Seat", &m_Seat)); }

    Q_PROPERTY(QString UserName READ userName NOTIFY UserNameChanged)
    inline QString userName()
    { return qvariant_cast< QString >(internalPropGet("UserName", &m_UserName)); }

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

Q_SIGNALS: // SIGNALS
// begin property changed signals
    void SeatChanged(const QDBusObjectPath & value) const;
    void UserNameChanged(const QString & value) const;

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

// begin private member vaiables
private:
    QDBusObjectPath m_Seat;
    QString m_UserName;
};

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