Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QDbus list names under a specific path
QtWS25 Last Chance

QDbus list names under a specific path

Scheduled Pinned Locked Moved Unsolved General and Desktop
qdbuslistpathserviceinterface
2 Posts 1 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mark81
    wrote on 20 Jul 2016, 12:52 last edited by
    #1

    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!

    M 1 Reply Last reply 20 Jul 2016, 13:05
    0
    • M Mark81
      20 Jul 2016, 12:52

      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!

      M Offline
      M Offline
      Mark81
      wrote on 20 Jul 2016, 13:05 last edited by
      #2

      @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 Reply Last reply
      0

      1/2

      20 Jul 2016, 12:52

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved