/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c wm -p generated/com_deepin_wm /build/deepin-qt-dbus-factory/src/dde-qt-dbus-factory-1.1.1/xml/com.deepin.wm.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 COM_DEEPIN_WM_H
#define COM_DEEPIN_WM_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/windowlist.h"

/*
 * Proxy class for interface com.deepin.wm
 */
class __wmPrivate;
class __wm : public DBusExtendedAbstractInterface
{
    Q_OBJECT

public:
    static inline const char *staticInterfaceName()
    { return "com.deepin.wm"; }

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

    ~__wm();

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

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

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


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

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

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


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



    inline QDBusPendingReply<> PerformAction(int type)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(type);
        return asyncCallWithArgumentList(QStringLiteral("PerformAction"), argumentList);
    }

    inline void PerformActionQueued(int type)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(type);

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


    inline QDBusPendingReply<> PresentWindows(WindowList xids)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(xids);
        return asyncCallWithArgumentList(QStringLiteral("PresentWindows"), argumentList);
    }

    inline void PresentWindowsQueued(WindowList xids)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(xids);

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


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

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

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


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

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

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


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

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

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



Q_SIGNALS: // SIGNALS
    void WorkspaceAdded(int index);
    void WorkspaceRemoved(int index);
    void WorkspaceSwitched(int from, int to);
    // begin property changed signals

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

private Q_SLOTS:
    void onPendingCallFinished(QDBusPendingCallWatcher *w);

private:
    __wmPrivate *d_ptr;
};

namespace com {
  namespace deepin {
    typedef ::__wm wm;
  }
}
#endif
