From: Marcel Holtmann <marcel@holtmann.org>
To: ofono@ofono.org
Subject: [RFC 2/2] doc: Add description for history agent interface
Date: Tue, 01 Feb 2011 18:29:00 +0100 [thread overview]
Message-ID: <1296581340-21570-2-git-send-email-marcel@holtmann.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 2413 bytes --]
---
doc/history-agent-api.txt | 83 +++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 83 insertions(+), 0 deletions(-)
create mode 100644 doc/history-agent-api.txt
diff --git a/doc/history-agent-api.txt b/doc/history-agent-api.txt
new file mode 100644
index 0000000..373974d
--- /dev/null
+++ b/doc/history-agent-api.txt
@@ -0,0 +1,83 @@
+History hierarchy
+=================
+
+Service org.ofono
+Interface org.ofono.History
+Object path [variable prefix]/{modem0,modem1,...}
+
+Methods void RegisterAgent(object path)
+
+ Registers an agent which will be called whenever a
+ new history update is available.
+
+ Possible Errors: [service].Error.InvalidArguments
+ [service].Error.InvalidFormat
+
+ void UnregisterAgent(object path)
+
+ Unregisters an agent.
+
+ Possible Errors: [service].Error.InvalidArguments
+
+
+History Agent hierarchy
+=======================
+
+Service unique name
+Interface org.ofono.HistoryAgent
+Object path freely definable
+
+Methods void CallEnded(dict info)
+
+ Call has been established and finished now.
+
+ The info dictionary contains 'Direction', 'Number',
+ 'Name', 'StartTime' and 'EndTime' properties.
+
+ Possible Errors: None
+
+ void CallMissed(dict info)
+
+ Call has been missed.
+
+ The info dictionary contains 'Number', 'Name' and
+ 'LocalTime' properties.
+
+ Possible Errors: None
+
+ void MessageReceived(dict info)
+
+ Incoming text message.
+
+ The info dictionary contains 'Identifier', 'Sender',
+ 'Text', 'LocalTime' and 'RemoteTime' properties.
+
+ Possible Errors: None
+
+ void MessageSubmitted(dict info)
+
+ Outgoing text message that is currently queued up.
+
+ The info dictionary contains 'Identifier', 'Receiver',
+ 'Text' and 'LocalTime' properties.
+
+ Possible Errors: None
+
+ void MessageStatus(dict info)
+
+ Update on the status of outgoing messages.
+
+ The info dictionary contains 'Identifier', 'Status'
+ and 'LocalTime' properties.
+
+ Status can be 'pending', 'submitted', 'submit-failed',
+ 'delivered' or 'deliver-failed'.
+
+ Possible Errors: None
+
+ void Release() [noreply]
+
+ Agent is being released, possibly because of daemon
+ terminating or modem being turned off.
+
+ No UnregisterAgent call is needed.
--
1.7.3.5
next reply other threads:[~2011-02-01 17:29 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-01 17:29 Marcel Holtmann [this message]
2011-02-02 13:23 ` [RFC 2/2] doc: Add description for history agent interface Kai.Vehmanen
2011-02-02 16:43 ` Marcel Holtmann
2011-02-02 18:14 ` mikhail.zabaluev
2011-02-02 19:22 ` Denis Kenzior
2011-02-02 22:56 ` Kai.Vehmanen
2011-02-02 23:12 ` Marcel Holtmann
2011-02-03 10:54 ` mikhail.zabaluev
2011-02-03 7:13 ` Denis Kenzior
2011-02-03 10:11 ` Kai.Vehmanen
2011-02-03 12:42 ` mikhail.zabaluev
2011-02-03 11:57 ` mikhail.zabaluev
2011-02-03 15:58 ` Denis Kenzior
2011-02-02 19:32 ` Marcel Holtmann
2011-02-03 12:22 ` mikhail.zabaluev
2011-02-03 16:11 ` Denis Kenzior
2011-02-04 9:23 ` mikhail.zabaluev
2011-02-04 12:58 ` Marcel Holtmann
2011-02-04 16:52 ` mikhail.zabaluev
2011-02-04 17:05 ` Denis Kenzior
2011-02-04 18:07 ` mikhail.zabaluev
2011-02-04 18:13 ` Marcel Holtmann
2011-02-04 18:52 ` mikhail.zabaluev
2011-02-04 19:01 ` Denis Kenzior
2011-02-04 19:01 ` Marcel Holtmann
2011-02-04 19:33 ` mikhail.zabaluev
2011-02-04 19:48 ` Marcel Holtmann
2011-02-04 18:27 ` Denis Kenzior
2011-02-04 19:17 ` mikhail.zabaluev
2011-02-04 19:22 ` Marcel Holtmann
2011-02-04 19:27 ` Denis Kenzior
2011-02-04 17:15 ` Marcel Holtmann
2011-02-04 18:32 ` mikhail.zabaluev
2011-02-02 22:55 ` Kai.Vehmanen
2011-02-02 23:06 ` Marcel Holtmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1296581340-21570-2-git-send-email-marcel@holtmann.org \
--to=marcel@holtmann.org \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox