<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Of course, you are right, I was imprecise. I meant
QDBusMessage::createSignal() method. <br>
<br>
For my excuse I have to mention 2 things:<br>
1. I am still novice in all D-Bus topics :)<br>
2. The naming and syntax in Qt suggest that the message (OK message
not signal) is being created and sent:<br>
<font face="Courier New, Courier, monospace">QBbusMessage msg
= QDBbusMessage::createSignal( <objectPath>,
<interface>, <methodName> );<br>
dbusConn->send(msg); </font><br>
<br>
But still I have the same question:<br>
How to do this same using GLib bindings?<br>
My goal is to sent a broadcast message to many applications and as
I already mentioned, neither in the <font face="Courier">g_signal_new()</font>
nor in the <font face="Courier">g_signal_emit() </font>methods I
can't recognize the <objectPath> and <interface>
parameters.<br>
The interface name can be given in the interface definition .xml
file - is this correct? <br>
Of course the objectPath can be taken from the object <font
face="Courier">g_signal_emit( gpointer instance,... )</font> <i><span
class="term"><em class="parameter"><code></code></em></span></i><br>
but first - it is not clearly documented, in manual there is only <i><span
class="term"><em class="parameter"><code>"instance</code></em> :
</span>the instance the signal is being emitted on</i>"<br>
second - please note that in Qt I don't need to register any object
(at least not <span>explicitly</span>) in order to send a broadcast
message.<br>
<br>
Thanks for your help,<br>
<br>
with best regards<br>
<br>
Bogdan Lotko<br>
<br>
<br>
On 4/10/2011 15:00, Thiago Macieira wrote:
<blockquote cite="mid:1383841.MpVrve74Y1@doriath" type="cite">
<pre wrap="">On Friday, 8 de April de 2011 21:41:50 Bogdan wrote:
</pre>
<blockquote type="cite">
<pre wrap="">How to create a signal (using Glib bindings), that is identical with the one
created with the following Qt statement:
connectionX.createSignal( <objectPath>, <interface>, <methodName> );
</pre>
</blockquote>
<pre wrap="">
Do you mean QDBusMessage::createSignal? That doesn't create a signal in an
interface, it creates a message that emits a signal.
</pre>
<blockquote type="cite">
<pre wrap="">This signal has to be received by the Qt application that uses following Qt
connect statement:
connectionY.connect( <service>, <objectPath>, <interface>, <methodName>,
this, SLOT(…) );
Neither in the g_signal_new() nor in the g_signal_emit() methods I can’t
recognize the <objectPath> and <interface> parameters.
</pre>
</blockquote>
<pre wrap="">
</pre>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
dbus mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dbus@lists.freedesktop.org">dbus@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/dbus">http://lists.freedesktop.org/mailman/listinfo/dbus</a>
</pre>
</blockquote>
<br>
</body>
</html>