21 #include <QDBusPendingCall>
22 #include <QDBusPendingCallWatcher>
23 #include <QDBusPendingReply>
36 auto watcher =
new QDBusPendingCallWatcher(call);
38 QObject::connect(watcher, &QDBusPendingCallWatcher::finished,
39 [&loop](QDBusPendingCallWatcher *call) {
41 QDBusPendingReply<void> reply(*call);
42 if (reply.isError()) {
43 qWarning() << Q_FUNC_INFO << reply.error();
49 int rc = loop.exec(QEventLoop::ExcludeUserInputEvents);