QDbus list names under a specific path
Unsolved
General and Desktop
-
The
listnames
example:http://doc.qt.io/qt-5/qtdbus-listnames-listnames-cpp.html
shows how to print out all the names of the connection bus.
I'm interested to show only names under a specific path: i.e. "/org/bluez".It should be a pretty simple task but I don't understand which syntax I have to use!
-
@Mark81 ok, I found a way:
QDBusInterface *iface = new QDBusInterface("your.service", "/your/path", "org.freedesktop.DBus.Introspectable", QDBusConnection::systemBus(), this); qDebug() << iface->call("Introspect").arguments();
1/2