From 122bcc295d054a733585996e859dea870ba5ca88 Mon Sep 17 00:00:00 2001 From: Vitaly Wool Date: Sun, 3 Mar 2019 23:00:06 +0100 Subject: Add extraInfo processing Implement processing of user request for extra info for a selected process and show a pop-up with the information returned by the back-end. Change-Id: Ief4e18d561e83877d57f984d8db3163c1cd314ac Signed-off-by: Vitaly Wool --- app/taskmanager.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/taskmanager.h') diff --git a/app/taskmanager.h b/app/taskmanager.h index a874c22..0bd53d5 100644 --- a/app/taskmanager.h +++ b/app/taskmanager.h @@ -20,12 +20,14 @@ public: Q_INVOKABLE void open(const QUrl& url); Q_INVOKABLE void kill(int tid); + Q_INVOKABLE void getExtraInfo(int tid); QTimer *timer; signals: void updateProcess(const QString& cmd_, int tid_, int euid_, double scpu_, double ucpu_, double resident_memory_, const QString& state_); void addProcess(const QString& cmd_, int tid_, int euid_, double scpu_, double ucpu_, double resident_memory_, const QString& state_); void removeProcess(int tid_); + void showProcessInfo(const QString info_); private slots: void query(); @@ -39,6 +41,7 @@ private: void ProcessResponse(Message *message); void ProcessResponseTasklist(QJsonArray& processes); + void ProcessResponseExtraInfo(QJsonObject& info); }; #endif // TASKMANAGER_H -- cgit 1.2.3-korg