aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2008-11-22 00:14:03 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-11-22 00:14:03 +0800
commit11fe41e36fc1d1cbd649dac0eb982696e0619776 (patch)
tree39ed010da1698f955de87288f523ef9ffd0cd365 /libempathy
parent56f3b6e362203b337042146a20523b74f45add62 (diff)
downloadgsoc2013-empathy-11fe41e36fc1d1cbd649dac0eb982696e0619776.tar
gsoc2013-empathy-11fe41e36fc1d1cbd649dac0eb982696e0619776.tar.gz
gsoc2013-empathy-11fe41e36fc1d1cbd649dac0eb982696e0619776.tar.bz2
gsoc2013-empathy-11fe41e36fc1d1cbd649dac0eb982696e0619776.tar.lz
gsoc2013-empathy-11fe41e36fc1d1cbd649dac0eb982696e0619776.tar.xz
gsoc2013-empathy-11fe41e36fc1d1cbd649dac0eb982696e0619776.tar.zst
gsoc2013-empathy-11fe41e36fc1d1cbd649dac0eb982696e0619776.zip
Added start of handling new incoming file channels. (Jonny Lamb)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1742
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-dispatcher.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libempathy/empathy-dispatcher.c b/libempathy/empathy-dispatcher.c
index 5f26eeeed..2b965d417 100644
--- a/libempathy/empathy-dispatcher.c
+++ b/libempathy/empathy-dispatcher.c
@@ -371,6 +371,15 @@ dispatcher_tubes_handle_channel (EmpathyDispatcher *dispatcher,
}
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 @@ dispatcher_connection_new_channel_cb (TpConnection *connection,
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) &&