summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-09-21 17:09:50 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-09-21 21:15:07 -0500
commitfd8ada934e11c7da4d04e3140f4fedfcb4240438 (patch)
tree3b99df30a2e00977de993484423f408720fdf41c
parent1719840566cf8f171654da3b4d9ba3aaeb5f0768 (diff)
downloadofono-fd8ada934e11c7da4d04e3140f4fedfcb4240438.tar.bz2
doc: Update SMS API
- Add Message interface - Add Manager GetMessages method - Add Manager MessageAdded signal - Add Manager MessageRemoved signal
-rw-r--r--doc/message-api.txt49
1 files changed, 48 insertions, 1 deletions
diff --git a/doc/message-api.txt b/doc/message-api.txt
index 693a111b..0488ccab 100644
--- a/doc/message-api.txt
+++ b/doc/message-api.txt
@@ -7,11 +7,21 @@ Object path [variable prefix]/{modem0,modem1,...}
Methods dict GetProperties()
- Returns properties for the modem object. See
+ Returns properties for the manager object. See
the properties section for available properties.
Possible Errors: [service].Error.InvalidArguments
+ array{object,dict} GetMessages()
+
+ Get an array of message object paths and properties
+ that represents the currently pending messages.
+
+ This method call should only be used once when an
+ application starts up. Further call additions and
+ removal shall be monitored via MessageAdded and
+ MessageRemoved signals.
+
void SetProperty(string name, variant value)
Changes the value of the specified property. Only
@@ -43,6 +53,16 @@ Signals PropertyChanged(string name, variant value)
New incoming text SMS received. Info has Sender,
LocalSentTime, and SentTime information.
+ MessageAdded(object path, dict properties)
+
+ This signal is emitted whenever a new Message object
+ has been created.
+
+ MessageRemoved(object path)
+
+ This signal is emitted whenever a Message object
+ has been removed, e.g. when it reaches a final state.
+
Properties string ServiceCenterAddress
Contains the number of the SMS service center.
@@ -64,3 +84,30 @@ Properties string ServiceCenterAddress
"ps-preferred" - Use CS if PS is unavailable
By default oFono uses "cs-preferred" setting.
+
+Message hierarchy
+===============
+
+Service org.ofono
+Interface org.ofono.Message
+Object path [variable prefix]/{modem0,modem1,...}/{message_01,...}
+
+Methods dict GetProperties()
+
+ Returns properties for the message object. See
+ the properties section for available properties.
+
+ Possible Errors: [service].Error.InvalidArguments
+
+Signals PropertyChanged(string name, variant value)
+
+ This signal indicates a changed value of the given
+ property.
+
+Properties string State
+
+ Contains the state of the message object. Possible
+ values are:
+ "pending",
+ "sent",
+ "failed"