/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c analysisapp -p generated/com_deepin_defender_analysisapp ../xml/com.deepin.defender.analysisapp.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_ANALYSISAPP_H
#define COM_DEEPIN_DEFENDER_ANALYSISAPP_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/defenderprocessinfo.h"
#include "types/defenderprocesslist.h"

/*
 * Proxy class for interface com.deepin.defender.analysisapp
 */
class __analysisappPrivate;
class __analysisapp : public DBusExtendedAbstractInterface
{
    Q_OBJECT

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

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

    ~__analysisapp();

    Q_PROPERTY(DefenderProcessList allProcPidList READ allProcPidList NOTIFY AllProcPidListChanged)
    DefenderProcessList allProcPidList();

    Q_PROPERTY(DefenderProcessInfo processInfo READ processInfo NOTIFY ProcessInfoChanged)
    DefenderProcessInfo processInfo();

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<QString> getProcessEnvironmentVariable(int pid, const QString &environmentname)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(pid) << QVariant::fromValue(environmentname);
        return asyncCallWithArgumentList(QStringLiteral("getProcessEnvironmentVariable"), argumentList);
    }




Q_SIGNALS: // SIGNALS
    void NotifyHeartbeat();
    void allProcPidList(DefenderProcessList in0);
    void guiProcDesktopList(const QStringList &in0);
    void notifyUpdateLauncherList();
    void processInfo(DefenderProcessInfo in0);
    void processInfoList(DefenderProcessInfoList in0);
    void singleProcDesktopList(const QStringList &in0);
    // begin property changed signals
    void AllProcPidListChanged(DefenderProcessList  value) const;
    void ProcessInfoChanged(DefenderProcessInfo  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:
    __analysisappPrivate *d_ptr;
};

namespace com {
  namespace deepin {
    namespace defender {
      typedef ::__analysisapp analysisapp;
    }
  }
}
#endif
