kpmcore/src/util
Harald Sitter 87dc44dab8 use QDBusServiceWatcher instead of pinging the client
Summary:
the motivation here is to terminate the "server" helper when the client
disappears. dbus supports this use case natively via service registration
events which we can easily handle via QDBusServiceWatcher.
instead of repeatedly poking the client we'll simply monitor its dbus
service now. this is cheaper, less code and doesn't risk timing out
randomly.

Test Plan:
- on neon ISO build kpmcore & calamares & pm
- calamares manages to actually partition stuff
- partitionmanager also starts properly

- also the same again on the installed system.

Reviewers: stikonas, bshah

Reviewed By: bshah

Subscribers: bshah

Differential Revision: https://phabricator.kde.org/D14646
2018-08-06 15:46:11 +02:00
..
CMakeLists.txt Switch DBus calls to classes generated from XML. 2018-08-05 21:15:33 +01:00
capacity.cpp Convert more enums to scoped enums. 2018-04-09 15:14:34 +01:00
capacity.h Keep Capacity::Unit a simple enum, otherwise KPM fails to compile. 2018-04-13 01:29:43 +03:00
externalcommand.cpp Switch DBus calls to classes generated from XML. 2018-08-05 21:15:33 +01:00
externalcommand.h use QDBusServiceWatcher instead of pinging the client 2018-08-06 15:46:11 +02:00
externalcommandhelper.cpp use QDBusServiceWatcher instead of pinging the client 2018-08-06 15:46:11 +02:00
externalcommandhelper.h Delay creation of QEventLoop object until after QCoreApplication starts 2018-08-03 19:49:32 +01:00
globallog.cpp Always use nullptr instead of NULL because it is type-safe. 2015-07-22 15:48:03 +02:00
globallog.h Fix error message. 2018-07-14 21:36:13 +01:00
helpers.cpp Fix class/struct mismatch in forward declaration. 2018-04-18 21:46:15 +03:00
helpers.h Move showColumnsContextMenu function from kpmcore to partitionmanager. 2017-09-14 20:43:08 +01:00
htmlreport.cpp Fix conversion to/from QString/QByteArray 2017-12-03 12:37:21 +00:00
htmlreport.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
libpartitionmanagerexport.h d-pointerize ExternalCommand class. 2018-04-12 00:47:40 +03:00
org.kde.kpmcore.applicationinterface.conf Switch DBus calls to classes generated from XML. 2018-08-05 21:15:33 +01:00
org.kde.kpmcore.externalcommand.actions SVN_SILENT made messages (.desktop file) - always resolve ours 2018-08-06 05:33:12 +02:00
org.kde.kpmcore.helperinterface.conf WIP: add some experimental code where helper is used as daemon 2018-03-19 11:42:49 +01:00
report.cpp Fix a typo in the comment. 2018-08-01 00:58:24 +01:00
report.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00