/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c AppStore -p generated/com_deepin_appstore ../xml/com.deepin.AppStore.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_APPSTORE_H
#define COM_DEEPIN_APPSTORE_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/qvariantmap.h"

/*
 * Proxy class for interface com.deepin.AppStore
 */
class __AppStorePrivate;
class __AppStore : public DBusExtendedAbstractInterface
{
    Q_OBJECT

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

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

    ~__AppStore();

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

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

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


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



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

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

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


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

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

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


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



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



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




Q_SIGNALS: // SIGNALS
    // begin property changed signals

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

private Q_SLOTS:
    void onPendingCallFinished(QDBusPendingCallWatcher *w);

private:
    __AppStorePrivate *d_ptr;
};

namespace com {
  namespace deepin {
    typedef ::__AppStore AppStore;
  }
}
#endif
