On Friday 08 January 2010 12:52:14 Christian Rüb wrote:
> Hi,
> 
> I am about to write my own little GPS application in Qt and try to connect
>  to FixStatusChanged signal from Gypsy but have the following problem
> 
> Code snippet:
> ...
> deviceInterface = new QDBusInterface("org.freedesktop.Gypsy",
>  "/org/freedesktop/Gypsy/default", "org.freedesktop.Gypsy.Device",
>  QDBusConnection::systemBus(),this); ...
> connect(deviceInterface, SIGNAL(FixStatusChanged(int)), this,
>  SIGNAL(fixChanged(int)));
> 


try this:
...
deviceInterface = new QDBusInterface("org.freedesktop.Gypsy", "/default", 
"org.freedesktop.Gypsy.Device", QDBusConnection::systemBus(),this);

Qt doesn't need the full path for the node again. 


Here you find some very useful QtDBus examples:
http://techbase.kde.org/Development/Tutorials#D-Bus

Not sure if you know about "qdbusviewer". It comes with your Qt4 installation 
and helps you a lot debugging and understanding DBus.

Hope this helps.
Michael

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community

Reply via email to