diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2011-07-15 16:36:02 +0200 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2011-07-20 15:00:23 +0200 |
commit | b74a3c1288b5e871fd2d231beb4cf692b0b42d9e (patch) | |
tree | 8a35e0466dc7ebd5b80ea0fff63f3332ba798375 /telepathy-glib/file-transfer-channel.c | |
parent | ebe0c53202e216cd049e4b59e4d49d5b5e7f67db (diff) | |
download | telepathy-glib-b74a3c1288b5e871fd2d231beb4cf692b0b42d9e.tar.gz |
Add TpAutomaticClientFactory
This is a subclass of TpSimpleClientFactory that creates specialized
TpChannel objects, like TpTextChannel and TpStreamTubeChannel
Diffstat (limited to 'telepathy-glib/file-transfer-channel.c')
-rw-r--r-- | telepathy-glib/file-transfer-channel.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/telepathy-glib/file-transfer-channel.c b/telepathy-glib/file-transfer-channel.c index 7cc6c0cb6..f5bbf1ef9 100644 --- a/telepathy-glib/file-transfer-channel.c +++ b/telepathy-glib/file-transfer-channel.c @@ -58,8 +58,8 @@ #include <telepathy-glib/util.h> #define DEBUG_FLAG TP_DEBUG_CHANNEL +#include "telepathy-glib/automatic-client-factory-internal.h" #include "telepathy-glib/debug-internal.h" - #include "_gen/signals-marshal.h" #include <stdio.h> @@ -569,6 +569,18 @@ tp_file_transfer_channel_new (TpConnection *conn, const GHashTable *immutable_properties, GError **error) { + return _tp_file_transfer_channel_new_with_factory (NULL, conn, object_path, + immutable_properties, error); +} + +TpFileTransferChannel * +_tp_file_transfer_channel_new_with_factory ( + TpSimpleClientFactory *factory, + TpConnection *conn, + const gchar *object_path, + const GHashTable *immutable_properties, + GError **error) +{ TpProxy *conn_proxy = (TpProxy *) conn; g_return_val_if_fail (TP_IS_CONNECTION (conn), NULL); @@ -585,6 +597,7 @@ tp_file_transfer_channel_new (TpConnection *conn, "object-path", object_path, "handle-type", (guint) TP_UNKNOWN_HANDLE_TYPE, "channel-properties", immutable_properties, + "factory", factory, NULL); } |