/*
 * 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.4.2.20180301/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 __DisplayManagerPrivate;
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)
    QList<QDBusObjectPath> seats();

    Q_PROPERTY(QList<QDBusObjectPath> Sessions READ sessions NOTIFY SessionsChanged)
    QList<QDBusObjectPath> 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;

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:
    __DisplayManagerPrivate *d_ptr;
};

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