summaryrefslogtreecommitdiffstats
path: root/app
AgeCommit message (Collapse)AuthorFilesLines
2020-06-10Merge "replace qtappfw with qtappfw-core package"Scott Murray1-1/+1
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-06-05replace qtappfw with qtappfw-core packageRaquel Medina1-1/+1
Bug-AGL: SPEC-3390 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com> Change-Id: I850be79654bb61dfbc02867e1b1b755daa37de2a
2020-05-22use MessageEngineFactoryRaquel Medina2-5/+6
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 Medina2-2/+13
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 Medina2-20/+18
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-09-27fix(main.qml): Remove qml M126 warningicefish_8.99.5icefish_8.99.4icefish_8.99.3icefish_8.99.2icefish_8.99.1icefish/8.99.5icefish/8.99.4icefish/8.99.3icefish/8.99.2icefish/8.99.18.99.58.99.48.99.38.99.28.99.1Li Xiaoming1-1/+1
Message: == and != may perform type coercion, use === or !== to avoid it. Description: The non-strict equality comparison is allowed to convert its arguments to a common type. That can lead to unexpected results such as ' \t\r\n' == 0 being true. Use the strict equality operators === and !== and be explicit about conversions you require. Bug-AGL: SPEC-2814 Change-Id: I72afe29de46ad93d49537f16a758c33a706246e9 Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
2019-07-04Fix Taskmanager window layoutVitaly Wool1-15/+22
Fix Task Manager window layout so that it: * does not have title bar * occupies the full width of the screen * is not anchored to the top of display (that makes it partially invisible) * scales with the screen resolution Bug-AGL: SPEC-2585 Change-Id: I3b6bfbf5890dd67397790e93c0387e4cc7928d9a Signed-off-by: Vitaly Wool <vitaly.wool@konsulko.com>
2019-06-04Make network stats graph better readableVitaly Wool1-7/+17
Currently it isn't exactly clear where one of the two network graphs (bytes received, bytes sent) is gone when the values are the same most of the time. Make it clearer with area fill and more color contrast. Bug-AGL: SPEC-2475 Signed-off-by: Vitaly Wool <vitaly.wool@konsulko.com> Change-Id: I52b0f8c87cd1e8df66d3aefd3b7a6a86dc48a10b
2019-05-20Implement network load visualizationhalibut_7.99.1halibut/7.99.17.99.1Vitaly Wool3-30/+133
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 Wool5-89/+196
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 Wool3-0/+53
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 Wool2-3/+15
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 Wool2-49/+49
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 Wool3-82/+127
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 Wool9-0/+468
Add Task Manager GUI. Signed-off-by: Vitaly Wool <vitaly.wool@konsulko.com> Change-Id: I56d9a34df38fb441b598d150e88c905db95346aa