/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c Entry -p generated/com_deepin_dde_daemon_dock_entry /build/deepin-qt-dbus-factory/src/dde-qt-dbus-factory-5.0.1/xml/com.deepin.dde.daemon.Dock.Entry.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_DDE_DAEMON_DOCK_ENTRY_H
#define COM_DEEPIN_DDE_DAEMON_DOCK_ENTRY_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"
#include "types/windowinfomap.h"

/*
 * Proxy class for interface com.deepin.dde.daemon.Dock.Entry
 */
class __EntryPrivate;
class __Entry : public DBusExtendedAbstractInterface
{
    Q_OBJECT

public:
    static inline const char *staticInterfaceName()
    { return "com.deepin.dde.daemon.Dock.Entry"; }

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

    ~__Entry();

    Q_PROPERTY(uint CurrentWindow READ currentWindow NOTIFY CurrentWindowChanged)
    uint currentWindow();

    Q_PROPERTY(QString DesktopFile READ desktopFile NOTIFY DesktopFileChanged)
    QString desktopFile();

    Q_PROPERTY(QString Icon READ icon NOTIFY IconChanged)
    QString icon();

    Q_PROPERTY(QString Id READ id NOTIFY IdChanged)
    QString id();

    Q_PROPERTY(bool IsActive READ isActive NOTIFY IsActiveChanged)
    bool isActive();

    Q_PROPERTY(bool IsDocked READ isDocked NOTIFY IsDockedChanged)
    bool isDocked();

    Q_PROPERTY(QString Menu READ menu NOTIFY MenuChanged)
    QString menu();

    Q_PROPERTY(QString Name READ name NOTIFY NameChanged)
    QString name();

    Q_PROPERTY(WindowInfoMap WindowInfos READ windowInfos NOTIFY WindowInfosChanged)
    WindowInfoMap windowInfos();

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

    inline void ActivateQueued(uint in0)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0);

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


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

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

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


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

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

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


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



    inline QDBusPendingReply<> HandleDragDrop(uint in0, const QStringList &in1)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1);
        return asyncCallWithArgumentList(QStringLiteral("HandleDragDrop"), argumentList);
    }

    inline void HandleDragDropQueued(uint in0, const QStringList &in1)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1);

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


    inline QDBusPendingReply<> HandleMenuItem(uint in0, const QString &in1)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1);
        return asyncCallWithArgumentList(QStringLiteral("HandleMenuItem"), argumentList);
    }

    inline void HandleMenuItemQueued(uint in0, const QString &in1)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1);

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


    inline QDBusPendingReply<> NewInstance(uint in0)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0);
        return asyncCallWithArgumentList(QStringLiteral("NewInstance"), argumentList);
    }

    inline void NewInstanceQueued(uint in0)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0);

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


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

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

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


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

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

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


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

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

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



Q_SIGNALS: // SIGNALS
    // begin property changed signals
    void CurrentWindowChanged(uint  value) const;
    void DesktopFileChanged(const QString & value) const;
    void IconChanged(const QString & value) const;
    void IdChanged(const QString & value) const;
    void IsActiveChanged(bool  value) const;
    void IsDockedChanged(bool  value) const;
    void MenuChanged(const QString & value) const;
    void NameChanged(const QString & value) const;
    void WindowInfosChanged(WindowInfoMap  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:
    __EntryPrivate *d_ptr;
};

namespace com {
  namespace deepin {
    namespace dde {
      namespace daemon {
        namespace dock {
          typedef ::__Entry Entry;
        }
      }
    }
  }
}
#endif
