2
<node name="/Channel_Interface_Chat_State" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
3
<tp:copyright> Copyright (C) 2007 Collabora Limited </tp:copyright>
4
<tp:license xmlns="http://www.w3.org/1999/xhtml">
5
<p>This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Lesser General Public
7
License as published by the Free Software Foundation; either
8
version 2.1 of the License, or (at your option) any later version.</p>
10
<p>This library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Library General Public License for more details.</p>
15
<p>You should have received a copy of the GNU Lesser General Public
16
License along with this library; if not, write to the Free Software
17
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</p>
19
<interface name="org.freedesktop.Telepathy.Channel.Interface.ChatState">
20
<tp:requires interface="org.freedesktop.Telepathy.Channel"/>
21
<method name="SetChatState">
22
<arg direction="in" name="state" type="u">
24
The new state: one of the values of ChannelChatState.
28
Set the local state and notify other members of the channel that it
32
<tp:error name="org.freedesktop.Telepathy.Error.NetworkError"/>
33
<tp:error name="org.freedesktop.Telepathy.Error.NotAvailable"/>
34
<tp:error name="org.freedesktop.Telepathy.Error.InvalidArgument"/>
37
<signal name="ChatStateChanged">
38
<arg name="contact" type="u">
40
An integer handle for the contact.
43
<arg name="state" type="u">
45
The new state of this contact: one of the values of ChannelChatState.
49
Emitted when the state of a member of the channel has changed.
50
This includes local state.
53
<tp:enum name="Channel_Chat_State">
54
<tp:enumvalue suffix="Gone" value="0">
56
The contact has effectively ceased participating in the chat.
59
<tp:enumvalue suffix="Inactive" value="1">
61
The contact has not been active for some time.
64
<tp:enumvalue suffix="Active" value="2">
66
The contact is actively participating in the chat.
69
<tp:enumvalue suffix="Paused" value="3">
71
The contact has paused composing a message.
74
<tp:enumvalue suffix="Composing" value="4">
76
The contact is composing a message to be sent to the chat.
81
<p>An interface for channels for receiving notifications of remote contacts'
82
state, and for notifying remote contacts of the local state.</p>
84
<p>Clients should assume that a contact's state is Channel_Chat_State_Inactive
85
unless they receive a notification otherwise.</p>
87
<p>The Channel_Chat_State_Gone state is treated differently to other states:</p>
89
<li>It is not used for multi-user chats</li>
90
<li>It is implictly set when the channel is closed</li>
91
<li>It may not be explicitly set</li>
94
<p>The different states are defined by XEP-0085, but may be applied to any suitable protocol.</p>
98
<!-- vim:set sw=2 sts=2 et ft=xml: -->