From dc8dd86672674bf4aa27c7f0206785f3d42b05fd Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 11 Aug 2010 14:26:14 -0400 Subject: [PATCH] doc: update voice call API documentation Reflect required changes to simplify the voice call API usage. --- doc/voicecall-api.txt | 8 ++++++++ doc/voicecallmanager-api.txt | 34 ++++++++++++++++++---------------- 2 files changed, 26 insertions(+), 16 deletions(-) diff --git a/doc/voicecall-api.txt b/doc/voicecall-api.txt index efeae42..59e3568 100644 --- a/doc/voicecall-api.txt +++ b/doc/voicecall-api.txt @@ -87,6 +87,14 @@ Properties string LineIdentification [readonly] "override category" option was not provisioned for the current subscriber. + boolean Multiparty [readonly] + + Contains the indication if the voice call is part + of a multiparty call or not. + + Notifications if a call becomes part or leaves a + multipart call are sent. + string State [readonly] Contains the state of the current call. The state diff --git a/doc/voicecallmanager-api.txt b/doc/voicecallmanager-api.txt index eaef6ad..6d49399 100644 --- a/doc/voicecallmanager-api.txt +++ b/doc/voicecallmanager-api.txt @@ -5,12 +5,15 @@ Service org.ofono Interface org.ofono.VoiceCallManager Object path [variable prefix]/{modem0,modem1,...} -Methods dict GetProperties() +Methods array{object,dict} GetCalls() - Returns all global system properties. See the - properties section for available properties. + Get an array of call object paths and properties + that represents the currently present calls. - Possible Errors: [service].Error.InvalidArguments + This method call should only be used once when an + application starts up. Further call additions and + removal shall be monitored vi CallAdded and + CallRemoved signals. object Dial(string number, string hide_callerid) @@ -113,19 +116,18 @@ Methods dict GetProperties() '*', '#', 'A', 'B', 'C', 'D'. The last four are typically not used in normal circumstances. -Signals PropertyChanged(string property, variant value) +Signals CallAdded(object path, dict properties) - Signal is emitted whenever a property has changed. The - new value is passed as the signal argument. + Signal that is sent when a new call is added. It + contains the object path of the new voice call and + also its properties. -Properties array{object} Calls [readonly] + Applications get the whole properties via this + signal and don't need to call GetProperties on + the voice call object. - Returns the list of calls currently present in the - system. If there are no calls, the list will be empty. + CallRemoved(object path) - array{object} MultipartyCalls [readonly] - - Returns the list of calls that are currently - participating in the multi-party (MPTY) call. The list - will be empty if no multi-party call is active, or a - list with at least two elements otherwise. + Signal that is sent when a voice call has been + released. The object path is no longer accessible + after this signal and only emitted for reference. -- 2.7.4