/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c DisplayManager -p generated/org_freedesktop_displaymanager /build/deepin-qt-dbus-factory/src/dde-qt-dbus-factory-0.2.1/xml/org.freedesktop.DisplayManager.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_H
#define ORG_FREEDESKTOP_DISPLAYMANAGER_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>

#include "types/propertylist.h"

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

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

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

    ~__DisplayManager();

    Q_PROPERTY(QList<QDBusObjectPath> Seats READ seats NOTIFY SeatsChanged)
    inline QList<QDBusObjectPath> seats()
    { return qvariant_cast< QList<QDBusObjectPath> >(internalPropGet("Seats", &m_Seats)); }

    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<QDBusObjectPath> AddLocalXSeat(int display_number)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(display_number);
        return asyncCallWithArgumentList(QStringLiteral("AddLocalXSeat"), argumentList);
    }

    inline QDBusPendingReply<QDBusObjectPath> AddSeat(const QString &type, PropertyList properties)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(type) << QVariant::fromValue(properties);
        return asyncCallWithArgumentList(QStringLiteral("AddSeat"), argumentList);
    }

Q_SIGNALS: // SIGNALS
    void SeatAdded(const QDBusObjectPath &seat);
    void SeatRemoved(const QDBusObjectPath &seat);
    void SessionAdded(const QDBusObjectPath &session);
    void SessionRemoved(const QDBusObjectPath &session);
// begin property changed signals
    void SeatsChanged(const QList<QDBusObjectPath> & 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:
    QList<QDBusObjectPath> m_Seats;
    QList<QDBusObjectPath> m_Sessions;
};

namespace org {
  namespace freedesktop {
    typedef ::__DisplayManager DisplayManager;
  }
}
#endif
