diff options
author | Vitaly Wool <vitaly.wool@konsulko.com> | 2019-03-03 23:00:06 +0100 |
---|---|---|
committer | Vitaly Wool <vitaly.wool@konsulko.com> | 2019-03-03 23:00:06 +0100 |
commit | 122bcc295d054a733585996e859dea870ba5ca88 (patch) | |
tree | 0fdd2137bc73be984e0e182a81cebfa7fc2b2ae4 /app/taskmanager.h | |
parent | e5c3f28f53eeef478d19a39b32dc7405efa46ef9 (diff) |
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 <vitaly.wool@konsulko.com>
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 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 |