[Telepathy-commits] [telepathy-glib/master] Messages: update to latest draft spec
Will Thompson
will.thompson at collabora.co.uk
Thu Dec 18 10:41:58 PST 2008
---
spec/Channel_Interface_Messages.xml | 50 ++++++++++++++++++++++++++++++++---
1 files changed, 46 insertions(+), 4 deletions(-)
diff --git a/spec/Channel_Interface_Messages.xml b/spec/Channel_Interface_Messages.xml
index 1b8d1ee..704fa85 100644
--- a/spec/Channel_Interface_Messages.xml
+++ b/spec/Channel_Interface_Messages.xml
@@ -245,7 +245,8 @@ USA.</p>
<dt>message-sent (t - <tp:type>Unix_Timestamp64</tp:type>)</dt>
<dd>The time the message was sent (if unavailable, the time
it arrived at a central server MAY be used). Omitted if no
- reasonable approximation is available</dd>
+ reasonable approximation is available; SHOULD always be present
+ on outgoing messages.</dd>
<dt>message-received (t - <tp:type>Unix_Timestamp64</tp:type>)</dt>
<dd>The time the message was received locally. SHOULD always
@@ -521,6 +522,21 @@ USA.</p>
Channel_Text_Send_Error_Unknown.
</dd>
+ <dt>delivery-dbus-error (s - DBus_Error_Name)</dt>
+ <dd>
+ The reason for the failure, specified as a (possibly
+ implementation-specific) D-Bus error. MUST be omitted if this was
+ a successful delivery. If set, the 'delivery-error' key SHOULD be
+ set to the closest available value.
+ </dd>
+
+ <dt>delivery-error-message (s)</dt>
+ <dd>
+ Debugging information on why the message could not be delivered.
+ MUST be omitted if this was a successful delivery; MAY always be
+ omitted.
+ </dd>
+
<dt>delivery-echo (aa{sv} - Message_Part[])</dt>
<dd>
<p>The message content, as defined by the Messages interface.
@@ -816,6 +832,14 @@ USA.</p>
</tp:docstring>
</arg>
+ <arg name="Flags" type="u" tp:type="Message_Sending_Flags">
+ <tp:docstring>
+ <p>Flags affecting how the message was sent. The flags might be a
+ subset of those passed to SendMessage if the caller requested
+ unsupported flags.</p>
+ </tp:docstring>
+ </arg>
+
<arg name="Message_Token" type="s" tp:type="Sent_Message_Token">
<tp:docstring>
An opaque token used to match any incoming delivery or failure
@@ -829,9 +853,13 @@ USA.</p>
tp:type="Message_Part[][]" tp:name-for-bindings="Pending_Messages">
<tp:docstring>
A list of incoming messages that have neither been acknowledged nor
- rejected. This list is a superset of the one returned by
- ListPendingMessages on the Text interface; its items can be removed
- using AcknowledgePendingMessages on that interface.
+ rejected. This list is a more detailed version of the one returned
+ by <tp:dbus-ref
+ namespace="org.freedesktop.Telepathy.Channel.Type">Text.ListPendingMessages</tp:dbus-ref>,
+ and contains the same messages, uniquely identified by the same
+ pending message IDs. Its items can be removed using
+ <tp:dbus-ref
+ namespace="org.freedesktop.Telepathy.Channel.Type">Text.AcknowledgePendingMessages</tp:dbus-ref>.
</tp:docstring>
</property>
@@ -983,6 +1011,20 @@ USA.</p>
</tp:rationale>
</tp:docstring>
</tp:enumvalue>
+
+ <tp:enumvalue suffix="Accepted" value="4">
+ <tp:docstring>
+ An intermediate server has accepted the message but the message
+ has not been yet delivered to the ultimate recipient. The
+ connection manager might send a Failed report or Delivered report
+ later.
+
+ <tp:rationale>
+ Similar to "202 Accepted" success code in SIP; analogous to
+ 251 and 252 responses in SMTP.
+ </tp:rationale>
+ </tp:docstring>
+ </tp:enumvalue>
</tp:enum>
<tp:flags name="Delivery_Reporting_Support_Flags"
--
1.5.6.5
More information about the Telepathy-commits
mailing list