aboutsummaryrefslogtreecommitdiffstats
path: root/app/taskmanager.h
diff options
context:
space:
mode:
authorVitaly Wool <vitaly.wool@konsulko.com>2018-11-28 16:50:01 +0100
committerVitaly Wool <vitaly.wool@konsulko.com>2018-11-28 16:51:28 +0100
commitd466bf191f581f4e3a3d1988845bffad01f7b3e1 (patch)
tree4f8b56616aaeaddf78c1aa2ea62ab9f30a420c8f /app/taskmanager.h
parentf52f93fa42ffc213653e4772acedfcf849707ce8 (diff)
Add kill button and relevant functionalityguppy_6.99.2guppy/6.99.26.99.2
Add 'Kill' and 'Info' (for future use: display detailed info on process in a separate window) buttons to the Task Manager UI and implement sending kill command to the service. Signed-off-by: Vitaly Wool <vitaly.wool@konsulko.com> Change-Id: Iac50f6ce46fc91471d94118587c6e7ea0842beca
Diffstat (limited to 'app/taskmanager.h')
-rw-r--r--app/taskmanager.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/taskmanager.h b/app/taskmanager.h
index 08d0027..da4f725 100644
--- a/app/taskmanager.h
+++ b/app/taskmanager.h
@@ -18,6 +18,7 @@ public:
explicit TaskManager(QObject* parent = nullptr);
Q_INVOKABLE void open(const QUrl& url);
+ Q_INVOKABLE void kill(int tid);
QTimer *timer;
signals:
@@ -26,7 +27,8 @@ signals:
void removeProcess(int tid_);
private slots:
- void callService();
+ void query();
+ void callService(const QString& ccommand, QJsonValue value);
void onSocketTextReceived(QString msg);
private: