empathy r1742 - trunk/libempathy



Author: xclaesse
Date: Fri Nov 21 16:14:03 2008
New Revision: 1742
URL: http://svn.gnome.org/viewvc/empathy?rev=1742&view=rev

Log:
Added start of handling new incoming file channels. (Jonny Lamb)

Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>

Modified:
   trunk/libempathy/empathy-dispatcher.c

Modified: trunk/libempathy/empathy-dispatcher.c
==============================================================================
--- trunk/libempathy/empathy-dispatcher.c	(original)
+++ trunk/libempathy/empathy-dispatcher.c	Fri Nov 21 16:14:03 2008
@@ -371,6 +371,15 @@
 }
 
 static void
+dispatcher_file_handle_channel (EmpathyDispatcher *dispatcher,
+				TpChannel         *channel)
+{
+	DEBUG ("New file channel");
+
+	/* handle new file channel here */
+}
+
+static void
 dispatcher_connection_invalidated_cb (TpConnection  *connection,
 				      guint          domain,
 				      gint           code,
@@ -473,6 +482,8 @@
 
 	if (!tp_strdiff (channel_type, TP_IFACE_CHANNEL_TYPE_TUBES)) {
 		dispatcher_tubes_handle_channel (dispatcher, channel);
+	} else if (!tp_strdiff (channel_type, EMP_IFACE_CHANNEL_TYPE_FILE)) {
+		dispatcher_file_handle_channel (dispatcher, channel);
 	}
 
   if (!tp_strdiff (channel_type, TP_IFACE_CHANNEL_TYPE_TEXT) &&



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]