mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-22 01:02:17 -05:00
2.1rc1 /psa
git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@3388 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
parent
2330632983
commit
4e4b381d19
49
xep-0085.xml
49
xep-0085.xml
@ -28,6 +28,12 @@
|
|||||||
</schemaloc>
|
</schemaloc>
|
||||||
&stpeter;
|
&stpeter;
|
||||||
&dizzyd;
|
&dizzyd;
|
||||||
|
<revision>
|
||||||
|
<version>2.1rc1</version>
|
||||||
|
<date>in progress, last updated 2009-09-02</date>
|
||||||
|
<initials>psa</initials>
|
||||||
|
<remark><p>Clarified that any state change is allowed.</p></remark>
|
||||||
|
</revision>
|
||||||
<revision>
|
<revision>
|
||||||
<version>2.0</version>
|
<version>2.0</version>
|
||||||
<date>2008-11-26</date>
|
<date>2008-11-26</date>
|
||||||
@ -154,59 +160,54 @@
|
|||||||
<li>A "content message" -- that is, a message stanza whose primary meaning is contained in standard messaging content such as the XMPP <body/> or any other properly-namespaced child element(s) other than those defined for chat state notifications in this specification.</li>
|
<li>A "content message" -- that is, a message stanza whose primary meaning is contained in standard messaging content such as the XMPP <body/> or any other properly-namespaced child element(s) other than those defined for chat state notifications in this specification.</li>
|
||||||
<li>A "standalone notification" -- that is, a message stanza that does not contain standard messaging content but instead is intended to specify only the chat state since it contains only a child element qualified by the "http://jabber.org/protocol/chatstates" namespace (or possibly also the XMPP <thread/> element; see the <link url='#bizrules-threads'>Threads</link> section below).</li>
|
<li>A "standalone notification" -- that is, a message stanza that does not contain standard messaging content but instead is intended to specify only the chat state since it contains only a child element qualified by the "http://jabber.org/protocol/chatstates" namespace (or possibly also the XMPP <thread/> element; see the <link url='#bizrules-threads'>Threads</link> section below).</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>The five chat states specified in this document are described below. The suggested triggers and state changes are simply that: <em>suggestions</em>. It is up to the implementation to determine when to generate chat state notifications and which notifications to generate.</p>
|
<p>The five chat states specified in this document are described below. The suggested triggers are simply that: <em>suggestions</em>. It is up to the implementation to determine when to generate chat state notifications and which notifications to generate.</p>
|
||||||
<table caption='Chat States'>
|
<table caption='Chat States'>
|
||||||
<tr>
|
<tr>
|
||||||
<th>State</th>
|
<th>State</th>
|
||||||
<th>Definition</th>
|
<th>Definition</th>
|
||||||
<th>Suggested Triggers</th>
|
<th>Suggested Triggers</th>
|
||||||
<th>Suggested State Changes</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><active/></td>
|
<td><active/></td>
|
||||||
<td>User is actively participating in the chat session.</td>
|
<td>User is actively participating in the chat session.</td>
|
||||||
<td>User accepts an initial content message, sends a content message, gives focus to the chat session interface, or is otherwise paying attention to the conversation.</td>
|
<td>User accepts an initial content message, sends a content message, gives focus to the chat session interface (perhaps after being inactive), or is otherwise paying attention to the conversation.</td>
|
||||||
<td><inactive/>, <composing/></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><composing/></td>
|
|
||||||
<td>User is composing a message.</td>
|
|
||||||
<td>User is interacting with a message input interface specific to this chat session (e.g., by typing in the input area of a chat window).</td>
|
|
||||||
<td><active/>, <paused/></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><paused/></td>
|
|
||||||
<td>User had been composing but now has stopped.</td>
|
|
||||||
<td>User was composing but has not interacted with the message input interface for a short period of time (e.g., 30 seconds). <note>An implementation could also "guess" that composing has been paused based on a change in the user's interaction with the message input interface, e.g. if the user switches window or application focus.</note></td>
|
|
||||||
<td><active/>, <composing/>, <inactive/></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><inactive/></td>
|
<td><inactive/></td>
|
||||||
<td>User has not been actively participating in the chat session.</td>
|
<td>User has not been actively participating in the chat session.</td>
|
||||||
<td>User has not interacted with the chat session interface for an intermediate period of time (e.g., 2 minutes).</td>
|
<td>User has not interacted with the chat session interface for an intermediate period of time (e.g., 2 minutes).</td>
|
||||||
<td><active/>, <paused/>, <gone/></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><gone/></td>
|
<td><gone/></td>
|
||||||
<td>User has effectively ended their participation in the chat session.</td>
|
<td>User has effectively ended their participation in the chat session.</td>
|
||||||
<td>User has not interacted with the chat session interface, system, or device for a relatively long period of time (e.g., 10 minutes).</td>
|
<td>User has not interacted with the chat session interface, system, or device for a relatively long period of time (e.g., 10 minutes).</td>
|
||||||
<td><active/></td>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><composing/></td>
|
||||||
|
<td>User is composing a message.</td>
|
||||||
|
<td>User is actively interacting with a message input interface specific to this chat session (e.g., by typing in the input area of a chat window).</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><paused/></td>
|
||||||
|
<td>User had been composing but now has stopped.</td>
|
||||||
|
<td>User was composing but has not interacted with the message input interface for a short period of time (e.g., 30 seconds).</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
<p>Note that the <active/>, <inactive/>, and <gone/> states refer to the overall chat session interface whereas the <composing/> and <paused/> states refer to the message input interface (and are in some sense a subset of <active/>). Some implementations might support only events related to the message input interface, some implementations might support only events related to the overall chat session interface, and some implementations might support both kinds of events.</p>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='State Chart' anchor='statechart'>
|
<section1 topic='State Chart' anchor='statechart'>
|
||||||
<p>The following figure attempts to capture the possible state transitions in visual form.</p>
|
<p>The following figure attempts to capture the most common state transitions in visual form (all four of the states shown can also transition to the GONE state).</p>
|
||||||
<code><![CDATA[
|
<code><![CDATA[
|
||||||
|
|
||||||
o (start)
|
o (start)
|
||||||
|
|
|
|
||||||
|
|
|
|
||||||
INACTIVE <--> ACTIVE <--> COMPOSING
|
INACTIVE <--> ACTIVE <--> COMPOSING <--> PAUSED
|
||||||
| ^ |
|
| |
|
||||||
| | |
|
| |
|
||||||
+ <------ PAUSED <-----> +
|
+---<---<---<---<---<---<---<---<---<---+
|
||||||
]]></code>
|
]]></code>
|
||||||
<p>Note: All four of the states shown can transition to the GONE state.</p>
|
<p>Note: Other transitions are not forbidden if the developers of an implementation feel that such transitions are desirable (e.g., INACTIVE to PAUSED if a user returns to a chat session interface containing an unfinished message).</p>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='Determining Support' anchor='support'>
|
<section1 topic='Determining Support' anchor='support'>
|
||||||
<p>If an entity supports the Chat State Notifications protocol, it MUST advertise that fact in its responses to &xep0030; information ("disco#info") requests by returning a feature of "http://jabber.org/protocol/chatstates":</p>
|
<p>If an entity supports the Chat State Notifications protocol, it MUST advertise that fact in its responses to &xep0030; information ("disco#info") requests by returning a feature of "http://jabber.org/protocol/chatstates":</p>
|
||||||
|
Loading…
Reference in New Issue
Block a user