You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Saturday, August 8th 2009, 12:42am

Handle QtDBus

Hi,
I'm working with QtDBus. So far I was successful to establish a connection. When I'm instanciating a QDBusAbstractInterface or I'm using QDBusMessage::createMethodCall I have to specify a service name. So far so good. But this service name changes, if it's not unique. Let's say I start the application app which listens on org.foo.app the service name is what I suppose to. Once I start app a second time, it gets a service name such as org.foo.app-1234 (where 1234 is the PID).

Now my question is: how can I, as consumer of the service guess or find every available service? For example, is there a way to query the session bus for available services etc?