summaryrefslogtreecommitdiffstats
path: root/doc/smartmessaging-api.txt
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-09-28 02:30:23 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-09-28 02:30:23 -0500
commitecccf09844bbe4eb084293ffce79e3ee704761fc (patch)
tree3bef0785d7312aca04336340f0d1940eed27f462 /doc/smartmessaging-api.txt
parent280bc04a85a6c183b493f2c2ba73a5af9fd88332 (diff)
downloadofono-ecccf09844bbe4eb084293ffce79e3ee704761fc.tar.bz2
doc: Add proposed SmartMessaging API
Diffstat (limited to 'doc/smartmessaging-api.txt')
-rw-r--r--doc/smartmessaging-api.txt58
1 files changed, 58 insertions, 0 deletions
diff --git a/doc/smartmessaging-api.txt b/doc/smartmessaging-api.txt
new file mode 100644
index 00000000..afed17b2
--- /dev/null
+++ b/doc/smartmessaging-api.txt
@@ -0,0 +1,58 @@
+Smart Messaging hierarchy
+===============
+
+Service org.ofono
+Interface org.ofono.SmartMessaging
+Object path [variable prefix]/{modem0,modem1,...}
+
+Methods object SendAppointment(array{bytes} appointment)
+
+ Sends a vCalendar object via SMS. The object is given
+ in the appointment argument. It is not interpreted
+ by oFono in any way. If the object is too large to
+ fit into a single SMS, it is fragmented as
+ appropriate. This method call returns the object
+ path of the queued SMS.
+
+ object SendBusinessCard(array{bytes} card)
+
+ Sends a vCard object via SMS. The object is given
+ in the card argument. It is not interpreted
+ by oFono in any way. If the object is too large to
+ fit into a single SMS, it is fragmented as
+ appropriate. This method call returns the object
+ path of the queued SMS.
+
+ void RegisterAgent(object path)
+
+ Registers an agent which will be called whenever a
+ new Smart Messaging based SMS arrives.
+
+ void UnregisterAgent(object path)
+
+ Unregisters an agent.
+
+SmartMessagingAgent Hierarchy [experimental]
+===============
+
+Service unique name
+Interface org.ofono.SimToolkitAgent
+Object path freely definable
+
+Methods void ReceiveAppointment(array{byte} appointment, dict info)
+
+ Requests the agent to process a new SMS that has
+ arrived containing a vCalendar object. The info
+ dictionary contains 'Sender', 'LocalSentTime' and
+ 'SentTime' properties.
+
+ Possible Errors: None
+
+ void ReceiveBusinessCard(array{byte} card, dict info)
+
+ Requests the agent to process a new SMS that has
+ arrived containing a vCalendar object. The info
+ dictionary contains 'Sender', 'LocalSentTime' and
+ 'SentTime' properties.
+
+ Possible Errors: None