summaryrefslogtreecommitdiffstats
path: root/src/manager-lib/intentaminterface.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Get rid of all 0-timeout single-shot timersRobert Griebl2018-10-261-8/+10
| | | | | | | | and replace them with the much more meaningful QMetaObject::invokeMethod, now that we can use this with the C++11 connect syntax. Change-Id: Ib16d214fc41d6994a3badab81094c32457dacd3a Reviewed-by: Daniel d'Andrada <[email protected]>
* Intents: add timeout/error handling for the client sideRobert Griebl2018-10-261-5/+7
| | | | | | | | | | | | Right now, both incoming and outgoing request are expected to be answered within 5sec. This needs to be made configurable in a follow-up patch, since these values are very system specific. In addition, the IntentRequest objects now have JS ownership, so that we can easily react on incoming request to applications not being handled. Change-Id: Id0703e4efd6f63a2404cde6d658b035f8b0985c1 Reviewed-by: Daniel d'Andrada <[email protected]>
* Intents: cleanup and new featuresRobert Griebl2018-10-191-42/+167
| | | | | | | | | | | | | - A lot of API and naming cleanup - Intent is now a Q_GADGET and is passed around by value (prerequisite for dynamic app removal) - QUuid in Qml is working nowadays, so we only have to convert for D-Bus - Requests can now also be created from within the system-ui (this had the sideeffect of moving the createIntentRequest functions out of the ApplicationInterface and into the new singleton "IntentClient") Change-Id: I5999be4d67eeadc0b78859e06d16677a27831e24 Reviewed-by: Dominik Holland <[email protected]>
* Add support for Intents for both single- and multi-process modeRobert Griebl2018-10-121-0/+438
This commit adds support for Intents, aka. a loosely coupled IPC between arbitrary applications in the AM system. (please read https://wiki.qt.io/QtAppMan-Intents for same background information). The core implementation on both server and client side in this patch is not dependent on the AM itself (apart from the common-lib for convenience sake, but this dependency could easily be removed). There are 2 interfaces that are implemented in the manager-lib and launcher-lib that connect the Intent core to the actual AM and AM's qml runtime launcher. Missing features: - updating the list of intents on app installation and removal - support for background services in the AM itself - support for "file-handles" in the request and reply part - documentation - an example that is better focused on intents themselves Change-Id: Ia7cab2bb569fb2cdb8e5ab7e8167e477cff3068c Reviewed-by: Dominik Holland <[email protected]>