diff options
Diffstat (limited to 'app/taskmanager.h')
-rw-r--r-- | app/taskmanager.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/taskmanager.h b/app/taskmanager.h index 0bd53d5..180c379 100644 --- a/app/taskmanager.h +++ b/app/taskmanager.h @@ -22,18 +22,21 @@ public: Q_INVOKABLE void kill(int tid); Q_INVOKABLE void getExtraInfo(int tid); QTimer *timer; + QTimer *loadAvgTimer; 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_); + void updateLoadAverage(double value_); private slots: void query(); void callService(const QString& ccommand, QJsonValue value); void onConnected(); void onMessageReceived(MessageType type, Message *message); + void loadAvg(); private: MessageEngine *m_loop; @@ -42,6 +45,7 @@ private: void ProcessResponse(Message *message); void ProcessResponseTasklist(QJsonArray& processes); void ProcessResponseExtraInfo(QJsonObject& info); + void ProcessResponseLoadAvg(QJsonObject& loadInfo); }; #endif // TASKMANAGER_H |