diff options
author | Vitaly Wool <vitaly.wool@konsulko.com> | 2019-05-20 07:49:52 +0000 |
---|---|---|
committer | Vitaly Wool <vitaly.wool@konsulko.com> | 2019-05-20 07:51:30 +0000 |
commit | a4d90fcb10ee166bf877f3308b71a3f694b7f312 (patch) | |
tree | d3612f7a7bf43602eb1750199a6f626cf18d7f65 /app/taskmanager.h | |
parent | 22a7ffb93ee7ef8d0c05e86e99fb1c70efca0888 (diff) |
Implement network load visualizationhalibut_7.99.1halibut/7.99.17.99.1
Implement network load visualization in TaskManager as a complement
to the System tab. It shows in/out network activity graph basing on
the info provided by the backend.
Bug-AGL: SPEC-2403
Signed-off-by: Vitaly Wool <vitaly.wool@konsulko.com>
Change-Id: I7d6b4f25424bd3ee1bfc12e9b084a021df289992
Diffstat (limited to 'app/taskmanager.h')
-rw-r--r-- | app/taskmanager.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/taskmanager.h b/app/taskmanager.h index 180c379..1ee351d 100644 --- a/app/taskmanager.h +++ b/app/taskmanager.h @@ -30,6 +30,7 @@ signals: void removeProcess(int tid_); void showProcessInfo(const QString info_); void updateLoadAverage(double value_); + void updateNetworkStats(unsigned int in_, unsigned int out_); private slots: void query(); @@ -41,11 +42,13 @@ private slots: private: MessageEngine *m_loop; std::vector<ProcInfo> m_procinfos; + unsigned int inOctets, outOctets; void ProcessResponse(Message *message); void ProcessResponseTasklist(QJsonArray& processes); void ProcessResponseExtraInfo(QJsonObject& info); void ProcessResponseLoadAvg(QJsonObject& loadInfo); + void ProcessResponseNetStat(QJsonObject& netstat); }; #endif // TASKMANAGER_H |