/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c netcontrol -p generated/com_deepin_defender_netcontrol ../xml/com.deepin.defender.netcontrol.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_NETCONTROL_H
#define COM_DEEPIN_DEFENDER_NETCONTROL_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.netcontrol
 */
class __netcontrolPrivate;
class __netcontrol : public DBusExtendedAbstractInterface
{
    Q_OBJECT

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

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

    ~__netcontrol();

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

    Q_PROPERTY(bool quitDefender READ quitDefender WRITE setQuitDefender NOTIFY QuitDefenderChanged)
    bool quitDefender();
    void setQuitDefender(bool value);

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<int> getConnCunrrentIndex()
    {
        QList<QVariant> argumentList;
        return asyncCallWithArgumentList(QStringLiteral("getConnCunrrentIndex"), argumentList);
    }



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



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

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

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


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

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

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


    inline QDBusPendingReply<> setConnCunrrentIndex(int index)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(index);
        return asyncCallWithArgumentList(QStringLiteral("setConnCunrrentIndex"), argumentList);
    }

    inline void setConnCunrrentIndexQueued(int index)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(index);

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


    inline QDBusPendingReply<> setRemCunrrentIndex(int index)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(index);
        return asyncCallWithArgumentList(QStringLiteral("setRemCunrrentIndex"), argumentList);
    }

    inline void setRemCunrrentIndexQueued(int index)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(index);

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


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

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

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


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

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

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


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

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

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



Q_SIGNALS: // SIGNALS
    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();
    void netChangeAsk();
    void remChangeAsk();
    // begin property changed signals
    void GlobalRecvChanged(double  value) const;
    void QuitDefenderChanged(bool  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:
    __netcontrolPrivate *d_ptr;
};

namespace com {
  namespace deepin {
    namespace defender {
      typedef ::__netcontrol netcontrol;
    }
  }
}
#endif
