From fd2c6519fc1dce93f5836c4a7c00e9380a3fba2d Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Thu, 16 Dec 2010 17:16:43 +0000 Subject: server.channel: import ServerAuthentication and SASLAuthentication classes Signed-off-by: Jonny Lamb --- src/server/channel.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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 -- cgit v1.2.3