From a7c03cd4a3a4bbc532ea75f15d97ad60141676a7 Mon Sep 17 00:00:00 2001 From: Sheldon Demario Date: Tue, 26 Jul 2011 13:53:15 -0300 Subject: [PATCH] Emit a signal when Link Loss Alert Level changes There is only one instance of the Alert level in the Link Loss service. Signal is emitted to notify other local clients that the alert level has changed. Necessary if the proximity monitor wants to notify the user and the application responsible for alerting is another application. --- proximity/monitor.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/proximity/monitor.c b/proximity/monitor.c index 3b2a96e5f..8bcd4a3bb 100644 --- a/proximity/monitor.c +++ b/proximity/monitor.c @@ -110,6 +110,10 @@ static DBusMessage *set_link_loss_alert(DBusConnection *conn, DBusMessage *msg, bacpy(&dba, BDADDR_ALL); write_proximity_config(&sba, &dba, "LinkLossAlertLevel", level); + emit_property_changed(conn, PROXIMITY_PATH, + PROXIMITY_INTERFACE, "LinkLossAlertLevel", + DBUS_TYPE_STRING, &monitor->linklosslevel); + return dbus_message_new_method_return(msg); } -- 2.47.3