30 QDBusMessage msg = QDBusMessage::createMethodCall(m_service, m_path, m_interface, m_method);
31 msg.setArguments(m_arguments);
33 QDBusPendingCallWatcher *watcher =
new QDBusPendingCallWatcher(QDBusConnection::sessionBus().asyncCall(msg),
this);
34 connect(watcher, &QDBusPendingCallWatcher::finished,
this, [
this, watcher]() {
35 watcher->deleteLater();
36 if (watcher->isError()) {
40 QVariantList reply = watcher->reply().arguments();
41 std::for_each(reply.begin(), reply.end(), [](QVariant &variant) {
42 variant = dbusToVariant(variant);