diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-09-28 19:22:34 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-09-28 20:01:12 -0500 |
commit | 0b97a240f74e67a1cf4c8ff2592621815ec559a0 (patch) | |
tree | c34e22e7f4e3a6de1b5ee3451a8bff86af10b544 /doc/pushnotification-api.txt | |
parent | 8aa59792d42e27b5f66f0da9a5089a9b3eb02e4b (diff) | |
download | ofono-0b97a240f74e67a1cf4c8ff2592621815ec559a0.tar.bz2 |
doc: Add PushNotification & PushNotificationAgent
Diffstat (limited to 'doc/pushnotification-api.txt')
-rw-r--r-- | doc/pushnotification-api.txt | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/doc/pushnotification-api.txt b/doc/pushnotification-api.txt new file mode 100644 index 00000000..62d6b723 --- /dev/null +++ b/doc/pushnotification-api.txt @@ -0,0 +1,37 @@ +Push Notification hierarchy +=============== + +Service org.ofono +Interface org.ofono.PushNotification +Object path [variable prefix]/{modem0,modem1,...} + +Methods 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. + +PushNotificationAgent Hierarchy [experimental] +=============== + +Service unique name +Interface org.ofono.PushNotificationAgent +Object path freely definable + +Methods void ReceiveNotification(array{byte} appointment, dict info) + + Requests the agent to process a new SMS that has + arrived containing a WAP PUSH. The dictionary + info contains 'Sender', 'LocalSentTime' and + 'SentTime' properties. + + Possible Errors: None + + void Release() + + Agent is being released, possibly because of oFono + terminating, SMS interface is being torn down or modem + off. No UnregisterAgent call is needed. |