Is there a way to determine if ProxyInterface "isValid"? #307
-
For example, Qt DBus has https://doc.qt.io/qt-6/qdbusabstractinterface.html#isValid that makes easier to determine if remote interface on ObjectPath is ready to use or it's does not even exist/valid. I didn't find same functionality in sdbus-cpp, using generated proxy for udisks2 xml. Only exceptions with a message like this: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The only way to determine if a D-Bus object with given interface does exist is to try to construct the proxy, and either you get the exception you mentioned, or not (in which case such object exists). |
Beta Was this translation helpful? Give feedback.
The only way to determine if a D-Bus object with given interface does exist is to try to construct the proxy, and either you get the exception you mentioned, or not (in which case such object exists).