<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=1 color="#3e3e3e" face=Tahoma><span lang=EN
style='font-size:8.5pt;font-family:Tahoma;color:#3E3E3E'>I am sending a
QDBusMessage signal through dbus to a dbus-glib application. but i am not receiving
a signal ,i dont know what to do?<br>
<br>
I can send signals and methodcall to qt application ,but reverse is not
happening.<br>
<br>
below is my code:<br>
<br>
/********start******************/<br>
<br>
QDBusMessage
message=createsignal("/","local.Widget","pong");
//pong is signal and local.wirdget is an interface<br>
if(conncetion.send(message))<br>
{<br>
qDebg()<<"yes i can send the pong signal and see with dbus--monitor
"<<endl;<br>
}<br>
<br>
<br>
Now,on dbus-glib side i am doing this:<br>
<br>
dbus_g_proxy_add_signal(proxy,"pong",G_tPE_INVALID );<br>
dbus_g_proxy_connect_signal(proxy,"pong",G_CALLBAC
K(pong_callback),NUL,NULL);<br>
<br>
static void pong_callback(void)<br>
{<br>
g_print("yes,now entered into callback"); //this is not getting invoked<br>
}<br>
<br>
/************End****************/<br>
<br>
Can some one please guide me on this.What can be the wrong?<br>
<br>
Thankyou.</span></font><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p></o:p></span></font></p>
</div>
</body>
</html>