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. Implementing org.freedesktop.DBus.ObjectManager with Qt-DBus

Implementing org.freedesktop.DBus.ObjectManager with Qt-DBus

Scheduled Pinned Locked Moved General and Desktop
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.
  • C Offline
    C Offline
    clementvuchener
    wrote on 14 Aug 2015, 12:57 last edited by clementvuchener
    #1

    Hello.

    I want to create a DBus object implementing org.freedesktop.DBus.ObjectManager to expose its child objects. I did not find any example/explanation in the documentation (or in the web). What is the simplest way to do that?
    Should QDBusConnection::ExportChildObjects do that? I don't really understand how it is used.
    Or should I create an adaptor for this interface? In this case, I need to introspect my objects in order to get theirs interfaces and properties. How is it achieved?

    Edit: I found that I had to use QObject::setObjectName with QDBusConnection::ExportChildObjects. Now, the child object is created but the parent stil does not implement the ObjectManager interface.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      clementvuchener
      wrote on 15 Aug 2015, 10:08 last edited by
      #2

      I guess I will need to go the second way but how can I know the interfaces implemented by an object. I can found no introspection mechanism either server side or client side.

      On the server, do I need to explore the QMetaObject system myself and hope that get the information the same way as QtDBus?

      On the client, do I need to call directly org.freedesktop.DBus.Introspectable.Instrospect and write my own Introspection XML parser?

      1 Reply Last reply
      0

      1/2

      14 Aug 2015, 12:57

      • 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