diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2010-12-16 17:16:43 +0000 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2010-12-16 17:16:43 +0000 |
commit | fd2c6519fc1dce93f5836c4a7c00e9380a3fba2d (patch) | |
tree | dd4efa61db0b0ee2e9d00f11eeb9eb70bf533b93 | |
parent | 06a8413b7525c3c999b251b53e3f1817af134e90 (diff) |
server.channel: import ServerAuthentication and SASLAuthentication classes
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
-rw-r--r-- | src/server/channel.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/server/channel.py b/src/server/channel.py index a82cc43..4fad41c 100644 --- a/src/server/channel.py +++ b/src/server/channel.py @@ -177,6 +177,26 @@ class ChannelTypeFileTransfer(Channel, _ChannelTypeFileTransferIface): object_path=object_path) +from telepathy._generated.Channel_Interface_SASL_Authentication \ + import ChannelInterfaceSASLAuthentication + +from telepathy._generated.Channel_Type_Server_Authentication \ + import ChannelTypeServerAuthentication as _ChannelTypeServerAuthenticationIface + +class ChannelTypeServerAuthentication(Channel, _ChannelTypeServerAuthenticationIface): + __doc__ = _ChannelTypeServerAuthenticationIface.__doc__ + + def __init__(self, connection, manager, props, object_path=None): + """ + Initialise the channel. + + Parameters: + connection - the parent Telepathy Connection object + """ + Channel.__init__(self, connection, manager, props, + object_path=object_path) + + from telepathy._generated.Channel_Type_Streamed_Media \ import ChannelTypeStreamedMedia as _ChannelTypeStreamedMediaIface |