~ubuntu-branches/ubuntu/oneiric/libtelepathy/oneiric

« back to all changes in this revision

Viewing changes to spec/Channel_Interface_Chat_State.xml

  • Committer: Bazaar Package Importer
  • Author(s): Sjoerd Simons
  • Date: 2007-03-12 11:43:26 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20070312114326-v4aezxb6sr8utds1
Tags: 0.0.51-2
Bump shlibs

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" ?>
 
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>
 
9
 
 
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>
 
14
 
 
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>
 
18
  </tp:license>
 
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">
 
23
        <tp:docstring>
 
24
          The new state: one of the values of ChannelChatState.
 
25
        </tp:docstring>
 
26
      </arg>
 
27
      <tp:docstring>
 
28
        Set the local state and notify other members of the channel that it
 
29
        has changed.
 
30
      </tp:docstring>
 
31
      <tp:possible-errors>
 
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"/>
 
35
      </tp:possible-errors>
 
36
    </method>
 
37
    <signal name="ChatStateChanged">
 
38
      <arg name="contact" type="u">
 
39
        <tp:docstring>
 
40
          An integer handle for the contact.
 
41
        </tp:docstring>
 
42
      </arg>
 
43
      <arg name="state" type="u">
 
44
        <tp:docstring>
 
45
          The new state of this contact: one of the values of ChannelChatState.
 
46
        </tp:docstring>
 
47
      </arg>
 
48
      <tp:docstring>
 
49
        Emitted when the state of a member of the channel has changed.
 
50
        This includes local state.
 
51
      </tp:docstring>
 
52
    </signal>
 
53
    <tp:enum name="Channel_Chat_State">
 
54
      <tp:enumvalue suffix="Gone" value="0">
 
55
        <tp:docstring>
 
56
        The contact has effectively ceased participating in the chat.
 
57
        </tp:docstring>
 
58
      </tp:enumvalue>
 
59
      <tp:enumvalue suffix="Inactive" value="1">
 
60
        <tp:docstring>
 
61
        The contact has not been active for some time.
 
62
        </tp:docstring>
 
63
      </tp:enumvalue>
 
64
      <tp:enumvalue suffix="Active" value="2">
 
65
        <tp:docstring>
 
66
        The contact is actively participating in the chat.
 
67
        </tp:docstring>
 
68
      </tp:enumvalue>
 
69
      <tp:enumvalue suffix="Paused" value="3">
 
70
        <tp:docstring>
 
71
        The contact has paused composing a message.
 
72
        </tp:docstring>
 
73
      </tp:enumvalue>
 
74
      <tp:enumvalue suffix="Composing" value="4">
 
75
        <tp:docstring>
 
76
        The contact is composing a message to be sent to the chat.
 
77
        </tp:docstring>
 
78
      </tp:enumvalue>
 
79
    </tp:enum>
 
80
    <tp:docstring>
 
81
      <p>An interface for channels for receiving notifications of remote contacts'
 
82
      state, and for notifying remote contacts of the local state.</p>
 
83
 
 
84
      <p>Clients should assume that a contact's state is Channel_Chat_State_Inactive
 
85
      unless they receive a notification otherwise.</p>
 
86
 
 
87
      <p>The Channel_Chat_State_Gone state is treated differently to other states:</p>
 
88
      <ul>
 
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>
 
92
      </ul>
 
93
 
 
94
      <p>The different states are defined by XEP-0085, but may be applied to any suitable protocol.</p>
 
95
    </tp:docstring>
 
96
  </interface>
 
97
</node>
 
98
<!-- vim:set sw=2 sts=2 et ft=xml: -->