diff options
author | Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> | 2011-04-20 12:06:09 -0300 |
---|---|---|
committer | Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> | 2011-04-20 12:06:11 -0300 |
commit | 2b844829f43baa4b55b0c89353ab4eca5a6f35d1 (patch) | |
tree | 917193dc83fdba979b6914e64374bf576b93b0a3 | |
parent | 735fb9a40fee31112f1100ab16a45bdde70cf727 (diff) | |
parent | 531fc512966c45b06b84f9d9c316e64096662496 (diff) |
Merge branch 'presence-status-max'
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
-rw-r--r-- | spec/Connection_Interface_Simple_Presence.xml | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/spec/Connection_Interface_Simple_Presence.xml b/spec/Connection_Interface_Simple_Presence.xml index 7788161e..c399c484 100644 --- a/spec/Connection_Interface_Simple_Presence.xml +++ b/spec/Connection_Interface_Simple_Presence.xml @@ -276,6 +276,49 @@ </tp:docstring> </property> + <property name="MaximumStatusMessageLength" + tp:name-for-bindings="Maximum_Status_Message_Length" access="read" + type="u"> + <tp:added version="0.22.UNRELEASED"/> + <tp:docstring xmlns="http://www.w3.org/1999/xhtml"> + <p>The maximum length in characters for any individual status + message, or 0 if there is no limit.</p> + + <p>While the connection is in the DISCONNECTED state, this property will + be 0. The connection manager will attempt to set the appropriate value + when the connection becomes connected, but cannot necessarily + guarantee it. The maximum length cannot change until the + connection status changes, so there is no change notification.</p> + + <p>While the connection is in the CONNECTED state, this property + contains the maximum length in characters for any individual status + message which is actually allowed on this protocol. + This value is constant for the remaining lifetime + of the connection, so again, there is no change notification.</p> + + <p>While the connection is in the CONNECTING state, the value of + this property is undefined and SHOULD NOT be used. It can change + at any time without notification (in particular, any cached values + from when the connection was in the DISCONNECTED or CONNECTING + state MUST NOT be assumed to still be correct when the state has + become CONNECTED).</p> + + <p>If a message passed to <tp:member-ref>SetPresence</tp:member-ref> is + longer than allowed by this property, the connection manager MUST + truncate the supplied message; when emitting + <tp:member-ref>PresencesChanged</tp:member-ref>, the truncated version + of the message MUST be used.</p> + + <tp:rationale> + <p>Some XMPP servers, like Google Talk, define a maximum length for + status messages. Whether the user's server is one of + these cannot be detected until quite late in the connection + process.</p> + </tp:rationale> + + </tp:docstring> + </property> + <signal name="PresencesChanged" tp:name-for-bindings="Presences_Changed"> <arg name="Presence" type="a{u(uss)}" tp:type="Simple_Contact_Presences"> <tp:docstring> |