Peer to Peer DBus Connection with Qt (working)

Tim Sander tim at krieglstein.org
Fri Mar 29 14:59:34 PDT 2013


Hi Alberto, Thiago

Thanks for your replies.
Am Freitag 29 März 2013, 09:27:46 schrieb Alberto Mardegan:
> The system/session buses and the p2p connection are completely separate:
> the objects you register in the session bus are not automatically
> registered in the p2p connection as well.
This was right on! Thank you. Its now working on a session bus but i am to 
tiered right now to test it on the embedded system.

For all those knowing how to use a search engine ;-) here is the working code 
for a qt based peer to peer dbus connection. dbuspeerclient is a own programm 
and the files main.cpp, peerdbusserver.cpp/h are the server part. It now works 
on the session bus with qt 4.8.4.

Now i would like to have the peer session and the session connection 
representing the same object structure. So i have to register the objects 
twice or is there an easier way to accomplish this?

Have a nice weekend
Tim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbuspeerclient.cpp
Type: text/x-c++src
Size: 1045 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20130329/40afd3c7/attachment.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.cpp
Type: text/x-c++src
Size: 521 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20130329/40afd3c7/attachment-0001.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: peerdbusserver.cpp
Type: text/x-c++src
Size: 658 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20130329/40afd3c7/attachment-0002.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: peerdbusserver.h
Type: text/x-chdr
Size: 648 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20130329/40afd3c7/attachment.h>


More information about the dbus mailing list