~ubuntu-branches/ubuntu/feisty/libtelepathy/feisty

« back to all changes in this revision

Viewing changes to spec/Channel_Interface_Password.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_Password" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
 
3
  <tp:copyright>
 
4
Copyright (C) 2005, 2006 Collabora Limited
 
5
Copyright (C) 2005, 2006 Nokia Corporation
 
6
Copyright (C) 2006 INdT
 
7
  </tp:copyright>
 
8
  <tp:license>
 
9
    This library is free software; you can redistribute it and/or
 
10
modify it under the terms of the GNU Lesser General Public
 
11
License as published by the Free Software Foundation; either
 
12
version 2.1 of the License, or (at your option) any later version.
 
13
 
 
14
This library is distributed in the hope that it will be useful,
 
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
17
Library General Public License for more details.
 
18
 
 
19
You should have received a copy of the GNU Lesser General Public
 
20
License along with this library; if not, write to the Free Software
 
21
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
22
  </tp:license>
 
23
  <interface name="org.freedesktop.Telepathy.Channel.Interface.Password">
 
24
    <tp:requires interface="org.freedesktop.Telepathy.Channel"/>
 
25
    <tp:flags name="Channel_Password_Flags" value-prefix="Channel_Password_Flag">
 
26
      <tp:flag suffix="Provide" value="8">
 
27
        <tp:docstring>
 
28
          The ProvidePassword method must be called now for the user to join
 
29
          the channel
 
30
        </tp:docstring>
 
31
      </tp:flag>
 
32
    </tp:flags>
 
33
    <method name="GetPasswordFlags">
 
34
      <arg direction="out" type="u">
 
35
        <tp:docstring>
 
36
          An integer with the logical OR of all the flags set
 
37
          (values of ChannelPasswordFlags)
 
38
        </tp:docstring>
 
39
      </arg>
 
40
      <tp:docstring>
 
41
        Returns the bitwise-OR of the flags relevant to the password on this
 
42
        channel.  The user interface can use this to present information about
 
43
        which operations are currently valid.
 
44
      </tp:docstring>
 
45
      <tp:possible-errors>
 
46
        <tp:error name="org.freedesktop.Telepathy.Error.Disconnected"/>
 
47
        <tp:error name="org.freedesktop.Telepathy.Error.NetworkError"/>
 
48
      </tp:possible-errors>
 
49
    </method>
 
50
    <signal name="PasswordFlagsChanged">
 
51
      <arg name="added" type="u">
 
52
        <tp:docstring>
 
53
          A bitwise OR of the flags which have been set
 
54
        </tp:docstring>
 
55
      </arg>
 
56
      <arg name="removed" type="u">
 
57
        <tp:docstring>
 
58
          A bitwise OR of the flags which have been cleared
 
59
        </tp:docstring>
 
60
      </arg>
 
61
      <tp:docstring>
 
62
        Emitted when the flags as returned by GetPasswordFlags are changed.
 
63
        The user interface should be updated as appropriate.
 
64
      </tp:docstring>
 
65
    </signal>
 
66
    <method name="ProvidePassword">
 
67
      <arg direction="in" name="password" type="s">
 
68
        <tp:docstring>
 
69
          The password
 
70
        </tp:docstring>
 
71
      </arg>
 
72
      <arg direction="out" type="b">
 
73
        A boolean indicating whether or not the password was correct
 
74
      </arg>
 
75
      <tp:docstring>
 
76
        Provide the password so that the channel can be joined. Must be
 
77
        called with the correct password in order for channel joining to
 
78
        proceed if the 'provide' password flag is set.
 
79
      </tp:docstring>
 
80
      <tp:possible-errors>
 
81
        <tp:error name="org.freedesktop.Telepathy.Error.Disconnected"/>
 
82
        <tp:error name="org.freedesktop.Telepathy.Error.NetworkError"/>
 
83
        <tp:error name="org.freedesktop.Telepathy.Error.InvalidArgument"/>
 
84
      </tp:possible-errors>
 
85
    </method>
 
86
    <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
 
87
      <p>Interface for channels that may have a password set that users need
 
88
    to provide before being able to join, or may be able to view or change
 
89
    once they have joined the channel.</p>
 
90
 
 
91
    <p>The GetPasswordFlags method and the associated PasswordFlagsChanged
 
92
    signal indicate whether the channel has a password, whether the user
 
93
    must now provide it to join, and whether it can be viewed or changed
 
94
    by the user.</p>
 
95
    </tp:docstring>
 
96
  </interface>
 
97
</node>
 
98
<!-- vim:set sw=2 sts=2 et ft=xml: -->