/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c autostart -p generated/com_deepin_defender_autostart ../xml/com.deepin.defender.autostart.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_DEFENDER_AUTOSTART_H
#define COM_DEEPIN_DEFENDER_AUTOSTART_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>


/*
 * Proxy class for interface com.deepin.defender.autostart
 */
class __autostartPrivate;
class __autostart : public DBusExtendedAbstractInterface
{
    Q_OBJECT

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

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

    ~__autostart();

    Q_PROPERTY(double globalRecv READ globalRecv NOTIFY GlobalRecvChanged)
    double globalRecv();

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

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

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


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

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

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


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



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



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



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



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

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

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


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




Q_SIGNALS: // SIGNALS
    void AccessRefreshData(bool bAdd, const QString &sID);
    void NotifyDetailData(const QString &name, double recv, double send, int pid, const QString &device, const QString &type);
    void NotifyGlobalData(double recv, double send);
    void NotifyHeartbeat();
    // begin property changed signals
    void GlobalRecvChanged(double  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:
    __autostartPrivate *d_ptr;
};

namespace com {
  namespace deepin {
    namespace defender {
      typedef ::__autostart autostart;
    }
  }
}
#endif
