<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi,</div>
<div> </div>
<div>i hope someone can help me - i just started with Dbus and struggeling to subscibe to the PropertiesChanged signal of org.freedesktop.DBus.Properties.</div>
<div>I googleing for 3 days and hope that an expert will see my fault in a minute :)</div>
<div> </div>
<div>I try to subscibe to the PropertiesChanged signal of org.freedesktop.DBus.Properties using the follwing code:</div>
<div> </div>
<div>
<div> DBusGProxy* purple_proxy = dbus_g_proxy_new_for_name (bus,<br/>
"org.bluez",<br/>
"/org/bluez/hci0",<br/>
"org.freedesktop.DBus.Properties");</div>
<div> </div>
<div> </div>
<div> GType VariantMap = dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_VARIANT);<br/>
GType MyStringList = dbus_g_type_get_collection("GPtrArray",G_TYPE_STRING);</div>
<div><br/>
dbus_g_object_register_marshaller(g_cclosure_user_marshal_VOID__STRING_BOXED_BOXED,<br/>
G_TYPE_NONE, G_TYPE_STRING, VariantMap,MyStringList, G_TYPE_INVALID);</div>
<div><br/>
dbus_g_proxy_add_signal (purple_proxy, "PropertiesChanged",<br/>
G_TYPE_STRING,<br/>
VariantMap,<br/>
MyStringList,<br/>
G_TYPE_INVALID);</div>
<div><br/>
dbus_g_proxy_connect_signal (purple_proxy,<br/>
"PropertiesChanged",<br/>
G_CALLBACK (properties_changed_proxy),<br/>
bus,<br/>
NULL);</div>
<div> </div>
<div> </div>
<div> </div>
<div>I dont get an error but my callback wouldn't be called.</div>
<div>I used dbus monitor to see that the signal is fired.</div>
</div>
<div>
<div> </div>
<div>Maybe my "arguments list" for registering the signal is wrong.</div>
<div>/*<br/>
signal void org.freedesktop.DBus.Properties.PropertiesChanged(QString interface,<br/>
QVariantMap changed_properties,<br/>
QStringList invalidated_properties)<br/>
*/</div>
<div> </div>
<div>Thanks for your help</div>
<div>Tobias</div>
</div></div></body></html>