<div class="gmail_quote"><span dir="ltr"></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
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<br>
<br>
Code snippet:<br>
...<br>
deviceInterface = new QDBusInterface(&quot;org.freedesktop.Gypsy&quot;, &quot;/org/freedesktop/Gypsy/default&quot;, &quot;org.freedesktop.Gypsy.Device&quot;, QDBusConnection::systemBus(),this);<br>
...<br>
connect(deviceInterface, SIGNAL(FixStatusChanged(int)), this, SIGNAL(fixChanged(int)));<br>
<br>
I want to pass the signal on to use it somewhere else in my application...<br>
<br>
now when starting my application I get:<br>
<br>
Object::connect: No such signal org::freedesktop::Gypsy::Device::FixStatusChanged(int)<br>
<br>
but  mdbus -s org.freedesktop.Gypsy /org/freedesktop/Gypsy<br>
lists:<br>
[SIGNAL]    org.freedesktop.Gypsy.Device.FixStatusChanged( i:fixstatus )<br>
<br>
Do you have any idea what is going wrong?<br>
<br>
You can find the full code here:<br>
<br>
<a href="http://git.senfdax.de/?p=qgpslog;a=blob;f=src/gypsy.cpp;h=27014f72b3705c6439e10d9130c8c03f8cd9bfdf;hb=HEAD" target="_blank">http://git.senfdax.de/?p=qgpslog;a=blob;f=src/gypsy.cpp;h=27014f72b3705c6439e10d9130c8c03f8cd9bfdf;hb=HEAD</a><br>


<br>
Thanks for any help.<br>
<br>
Cheers,<br>
 Christian<br>
</blockquote></div><br><br>Hi! <br>Quick response, I don&#39;t have a lot of time, here is an example of connection to fso in Qt :<br><br><pre>m_db_ressourceManager = new QDBusInterface(&quot;org.freesmartphone.ogpsd&quot;, &quot;/org/freedesktop/Gypsy&quot;,&quot;&quot;, QDBusConnection::systemBus());</pre>

<pre>connect (m_db_ressourceManager,SIGNAL(FixStatusChanged(int)),this,SLOT(fixStatusChanged(int)));</pre><br>Try :<br><br>new QDBusInterface(&quot;org.<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

freedesktop.Gypsy&quot;, &quot;/org/freedesktop/Gypsy/default&quot;, &quot;&quot;, QDBusConnection::systemBus());</blockquote><br>Then connect to the signal.<br><br>Many dbus examples are in the Qalee tree : <a href="http://think-free83.homelinux.org/project/qalee/trunk/">http://think-free83.homelinux.org/project/qalee/trunk/</a><br>

And on the wiki there is some informations : <a href="http://www.qalee.org">http://www.qalee.org</a><br><br>-- <br>------------------------------<br><br>Openmoko phone gui :<br><br><a href="http://www.qalee.org">http://www.qalee.org</a><br>

<br>