[telepathy-python/master] Added FileTransfer channel

Louis-Francis Ratte-Boulianne lfrb at lfrb-desktop.no-domain-set.bellcanada
Tue Aug 18 08:28:54 PDT 2009


---
 src/server/channel.py |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/src/server/channel.py b/src/server/channel.py
index 5ac27ba..9455235 100644
--- a/src/server/channel.py
+++ b/src/server/channel.py
@@ -31,6 +31,7 @@ from telepathy.interfaces import (CHANNEL_INTERFACE,
                                   CHANNEL_INTERFACE_HOLD,
                                   CHANNEL_INTERFACE_PASSWORD,
                                   CHANNEL_TYPE_CONTACT_LIST,
+                                  CHANNEL_TYPE_FILE_TRANSFER,
                                   CHANNEL_TYPE_ROOM_LIST,
                                   CHANNEL_TYPE_STREAMED_MEDIA,
                                   CHANNEL_TYPE_TEXT,
@@ -126,6 +127,22 @@ class ChannelTypeContactList(Channel, _ChannelTypeContactListIface):
         Channel.__init__(self, connection, CHANNEL_TYPE_CONTACT_LIST, handle)
 
 
+from telepathy._generated.Channel_Type_File_Transfer \
+        import ChannelTypeFileTransfer as _ChannelTypeFileTransferIface
+
+class ChannelTypeFileTransfer(Channel, _ChannelTypeFileTransferIface):
+    __doc__ = _ChannelTypeFileTransferIface.__doc__
+
+    def __init__(self, connection, manager, props):
+        """
+        Initialise the channel.
+
+        Parameters:
+        connection - the parent Telepathy Connection object
+        """
+        Channel.__init__(self, connection, manager, props)
+
+
 from telepathy._generated.Channel_Type_Streamed_Media \
         import ChannelTypeStreamedMedia as _ChannelTypeStreamedMediaIface
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list