Details
Description
Example based on KDE:
QDBusReply< QList <QDBusObjectPath> > deviceList = iface.GetDevices();
if (deviceList.isValid())
.......
Iface is generated by qdbusxml2cpp:
inline QDBusPendingReply<QList<QDBusObjectPath> > GetDevices()
If there is a dbus error, deviceList.isValid() is false. If the program can't connect to dbus, the program segfaults.