summaryrefslogtreecommitdiffstats
path: root/audio/telephony-dummy.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-09-05 15:41:57 +0300
committerJohan Hedberg <johan.hedberg@nokia.com>2008-09-05 15:41:57 +0300
commit96cdd87ef17d72053261da7a979ec8627e0a5cd8 (patch)
tree12b2c0a470404bca343e3793068eb6c25ba69138 /audio/telephony-dummy.c
parent6a2ff7dbf3f3b15b0cac10c64ddc82ecf23be68d (diff)
Implement call notification
Diffstat (limited to 'audio/telephony-dummy.c')
-rw-r--r--audio/telephony-dummy.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/audio/telephony-dummy.c b/audio/telephony-dummy.c
index 0e9673b3..f5c1a0d2 100644
--- a/audio/telephony-dummy.c
+++ b/audio/telephony-dummy.c
@@ -123,6 +123,9 @@ static DBusMessage *outgoing_call(DBusConnection *conn, DBusMessage *msg,
debug("telephony-dummy: outgoing call to %s", number);
+ telephony_update_indicator(dummy_indicators, "callsetup",
+ EV_CALLSETUP_OUTGOING);
+
return dbus_message_new_method_return(msg);;
}
@@ -137,6 +140,11 @@ static DBusMessage *incoming_call(DBusConnection *conn, DBusMessage *msg,
debug("telephony-dummy: incoming call to %s", number);
+ telephony_update_indicator(dummy_indicators, "callsetup",
+ EV_CALLSETUP_INCOMING);
+
+ telephony_notify_call(number);
+
return dbus_message_new_method_return(msg);;
}
@@ -145,9 +153,12 @@ static DBusMessage *cancel_call(DBusConnection *conn, DBusMessage *msg,
{
debug("telephony-dummy: cancel call");
- if (telephony_get_indicator(dummy_indicators, "callsetup") > 0)
+ if (telephony_get_indicator(dummy_indicators, "callsetup") > 0) {
telephony_update_indicator(dummy_indicators, "callsetup",
EV_CALLSETUP_INACTIVE);
+ telephony_stop_calling();
+ }
+
if (telephony_get_indicator(dummy_indicators, "call") > 0)
telephony_update_indicator(dummy_indicators, "call",
EV_CALL_INACTIVE);