50QDBusPendingCall pcall = interface->asyncCall(
"GetAPIVersion"_L1);
51auto watcher =
new QDBusPendingCallWatcher(pcall,
this);
53QObject::connect(watcher, &QDBusPendingCallWatcher::finished,
this,
54 [&](QDBusPendingCallWatcher *w) {
55 QString value = retrieveValue();
56 QDBusPendingReply<
int> reply(*w);
57 QDBusPendingCall pcall;
58 if (reply.argumentAt<0>() >= 14)
59 pcall = interface->asyncCall(
"ProcessWorkUnicode"_L1, value);
61 pcall = interface->asyncCall(
"ProcessWork"_L1,
"UTF-8"_L1, value.toUtf8());
63 w =
new QDBusPendingCallWatcher(pcall);
64 QObject::connect(w, &QDBusPendingCallWatcher::finished,
this,
65 &Abstract_DBus_Interface::callFinishedSlot);