summaryrefslogtreecommitdiffstats
path: root/app/taskmanager.cpp
AgeCommit message (Collapse)AuthorFilesLines
2020-06-10fix segfault on task removal from listRaquel Medina1-47/+46
This commit fixes a segfault which manifests while processing a received message to update the list of active processes. This segfault always happens on removal of a process and sometimes an error associated with the model size for the TableView is also displayed on the journal. The fix includes the following changes: - add checks on the received ResponseMessage to discard invalid messages; - align with other libqtappfw-core clients which use QJsonObject::value() returning QJsonValue, instead of QJsonObject::operator[] returning QJsonValueRef; - create local list of tasks using emplacement instead of insertion; - simplify matching & updating old tasklist against new one; remove flag and use std algorithm find_if with lambda. Bug-AGL: SPEC-3402 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com> Change-Id: Ic6bfaefed3fe91a8d29ef622ba7957b5bed5018a
2020-05-22use MessageEngineFactoryRaquel Medina1-4/+5
Bug-AGL: SPEC-3112 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com> Change-Id: I7b601d89db9b31407ac6b99e03946e7c249c58a7
2020-04-20register shared_ptr<Message> before connectionRaquel Medina1-0/+1
Bug-AGL: SPEC-3112 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com> Change-Id: I8ce5eba8c88b4e1ae4411a4936502a24ba4541bd
2020-04-07use new libqtappfw Message hierarchyRaquel Medina1-1/+12
Completes work to use new libqtappfw Message hierarchy started by commit 228e9cea6cbb48025f5f5b38560edc4fc69d1d55 : Rework TaskManager to use new libqtappfw Message hierarchy in 2 steps: i) add changes maintaining build compatibility with current and next libqtappfw versions; ii) complete changes once libqtappfw rolls to next version. This commit covers step ii). Bug-AGL: SPEC-3112 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com> Change-Id: Ia6aff761067ddb05168681060590fecc4b4e8ff1
2020-03-31adapt to use new libqtappfw Message hierarchyRaquel Medina1-17/+14
Rework TaskManager to use new libqtappfw Message hierarchy in 2 steps: i) add changes maintaining build compatibility with current and next libqtappfw versions; ii) complete changes once libqtappfw rolls to next version. This commit covers step i). Bug-AGL: SPEC-3112 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com> Change-Id: I650832b2406958adf0ee7fe9cbd7f16c6e36ecc8
2020-03-06avoid use of MessageTypeRaquel Medina1-1/+1
'MessageType' is considered deprecated and will be removed from libqtappfw shortly. This change is applied ahead of libqtappfw changes to avoid breaking the build. Bug-AGL: SPEC-3112 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com> Change-Id: Ic081b56426f3dffb734aa7ec95f9ffd15e7be38c
2019-05-20Implement network load visualizationhalibut_7.99.1halibut/7.99.17.99.1Vitaly Wool1-0/+19
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
2019-04-08Implement system load visualizationVitaly Wool1-0/+22
Implement system load visualization in TaskManager as a separate tab showing average system load graph basing on the info provided by the backend. Change-Id: I81359185516ebb1b6218bfd9ca53f1d76dfddeb4 Signed-off-by: Vitaly Wool <vitaly.wool@konsulko.com>
2019-03-03Add extraInfo processingVitaly Wool1-0/+25
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>
2019-02-05binding: act upon messageTypeVitaly Wool1-3/+14
For each reply message coming from agl-service-taskmanager, read out messageType parameter and act upon it. Change-Id: Ie2da3e54c46071e14e213b838254e0af932ad86f Signed-off-by: Vitaly Wool <vitaly.wool@konsulko.com>
2018-12-03taskmanager: comunicate using libqtappfwVitaly Wool1-40/+39
Use libqtappfw to avoid dealing with websocket protocol directly. Change-Id: I67813b38ffba3e54d52e61f60644ee101426e38a Signed-off-by: Vitaly Wool <vitaly.wool@konsulko.com>
2018-11-28Add kill button and relevant functionalityguppy_6.99.2guppy/6.99.26.99.2Vitaly Wool1-7/+15
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
2018-11-28Initial commitVitaly Wool1-0/+103
Add Task Manager GUI. Signed-off-by: Vitaly Wool <vitaly.wool@konsulko.com> Change-Id: I56d9a34df38fb441b598d150e88c905db95346aa