Reducing log noise
[theonering] / src / tp / _generated / Channel_Interface_Password.py
1 # -*- coding: utf-8 -*-
2 # Generated from the Telepathy spec
3 """
4 Copyright © 2005-2009 Collabora Limited
5 Copyright © 2005-2009 Nokia Corporation
6 Copyright © 2006 INdT
7   
8
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 Lesser 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22   
23 """
24
25 import dbus.service
26
27
28 class ChannelInterfacePassword(dbus.service.Interface):
29     """\
30       Interface for channels that may have a password set that users need
31     to provide before being able to join, or may be able to view or change
32     once they have joined the channel.
33
34     The GetPasswordFlags method and the
35     associated PasswordFlagsChanged
36     signal indicate whether the channel has a password, whether the user
37     must now provide it to join, and whether it can be viewed or changed
38     by the user.
39     """
40
41     def __init__(self):
42         self._interfaces.add('org.freedesktop.Telepathy.Channel.Interface.Password')
43
44     @dbus.service.method('org.freedesktop.Telepathy.Channel.Interface.Password', in_signature='', out_signature='u')
45     def GetPasswordFlags(self):
46         """
47         Returns the bitwise-OR of the flags relevant to the password on this
48         channel.  The user interface can use this to present information about
49         which operations are currently valid.
50       
51         """
52         raise NotImplementedError
53   
54     @dbus.service.method('org.freedesktop.Telepathy.Channel.Interface.Password', in_signature='s', out_signature='b')
55     def ProvidePassword(self, Password):
56         """
57         Provide the password so that the channel can be joined. Must be
58         called with the correct password in order for channel joining to
59         proceed if the 'provide' password flag is set.
60       
61         """
62         raise NotImplementedError
63   
64     @dbus.service.signal('org.freedesktop.Telepathy.Channel.Interface.Password', signature='uu')
65     def PasswordFlagsChanged(self, Added, Removed):
66         """
67         Emitted when the flags as returned by
68         GetPasswordFlags are changed.
69         The user interface should be updated as appropriate.
70       
71         """
72         pass
73