/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c Dock -p /build/deepin-widgets/src/dde-widgets/app/utils/dbus/xml2cpp/dock_interface /build/deepin-widgets/src/dde-widgets/xml/org.deepin.dde.daemon.Dock1.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 DOCK_INTERFACE_H
#define DOCK_INTERFACE_H

#include <QtCore/QObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>

#include <DDBusExtendedAbstractInterface>
#include <QtDBus/QtDBus>

#include "types/dockrect.h"

/*
 * Proxy class for interface org.deepin.dde.daemon.Dock1
 */
class __DockPrivate;
class __Dock : public DTK_CORE_NAMESPACE::DDBusExtendedAbstractInterface
{
    Q_OBJECT

public:
    static inline const char *staticInterfaceName()
    { return "org.deepin.dde.daemon.Dock1"; }

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

    ~__Dock();

    Q_PROPERTY(int DisplayMode READ displayMode WRITE setDisplayMode NOTIFY DisplayModeChanged)
    int displayMode();
    void setDisplayMode(int value);

    Q_PROPERTY(DockRect FrontendWindowRect READ frontendWindowRect NOTIFY FrontendWindowRectChanged)
    DockRect frontendWindowRect();

    Q_PROPERTY(int HideMode READ hideMode WRITE setHideMode NOTIFY HideModeChanged)
    int hideMode();
    void setHideMode(int value);

    Q_PROPERTY(int HideState READ hideState NOTIFY HideStateChanged)
    int hideState();

    Q_PROPERTY(int Position READ position WRITE setPosition NOTIFY PositionChanged)
    int position();
    void setPosition(int value);

    Q_PROPERTY(uint WindowSizeEfficient READ windowSizeEfficient WRITE setWindowSizeEfficient NOTIFY WindowSizeEfficientChanged)
    uint windowSizeEfficient();
    void setWindowSizeEfficient(uint value);

    Q_PROPERTY(uint WindowSizeFashion READ windowSizeFashion WRITE setWindowSizeFashion NOTIFY WindowSizeFashionChanged)
    uint windowSizeFashion();
    void setWindowSizeFashion(uint value);

public Q_SLOTS: // METHODS
    inline QDBusPendingReply<bool> IsDocked(const QString &desktopFile)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(desktopFile);
        return asyncCallWithArgumentList(QStringLiteral("IsDocked"), argumentList);
    }



    inline QDBusPendingReply<bool> RequestDock(const QString &desktopFile, int index)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(desktopFile) << QVariant::fromValue(index);
        return asyncCallWithArgumentList(QStringLiteral("RequestDock"), argumentList);
    }



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




Q_SIGNALS: // SIGNALS
    // begin property changed signals
    void DisplayModeChanged(int  value) const;
    void FrontendWindowRectChanged(DockRect  value) const;
    void HideModeChanged(int  value) const;
    void HideStateChanged(int  value) const;
    void PositionChanged(int  value) const;
    void WindowSizeEfficientChanged(uint  value) const;
    void WindowSizeFashionChanged(uint  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:
    __DockPrivate *d_ptr;
};

namespace org {
  namespace deepin {
    namespace dde {
      namespace daemon {
        typedef ::__Dock Dock1;
      }
    }
  }
}
#endif
