[telepathy-python/master] Added FileTransfer channel

Louis-Francis Ratte-Boulianne lfrb at lfrb-desktop.no-domain-set.bellcanada
Tue Aug 4 12:56:12 PDT 2009


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

diff --git a/NEWS b/NEWS
index d1a75e0..b0d33b9 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,8 @@ telepathy-python 0.15.11 (UNRELEASED)
 
 Enhancements:
 
+ * Add the ChannelTypeFileTransfer interface
+
 Fixes:
 
  * #23081: Fixing TargetID handle search (Thiago Borges Abdnur)
diff --git a/src/server/channel.py b/src/server/channel.py
index dcf0c62..52e750a 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,
@@ -153,6 +154,22 @@ class ChannelTypeContactList(Channel, _ChannelTypeContactListIface):
         Channel.__init__(self, connection, manager, props)
 
 
+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