summaryrefslogtreecommitdiff
path: root/telepathy-glib/text-channel.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2011-07-15 16:36:02 +0200
committerXavier Claessens <xclaesse@gmail.com>2011-07-20 15:00:23 +0200
commitb74a3c1288b5e871fd2d231beb4cf692b0b42d9e (patch)
tree8a35e0466dc7ebd5b80ea0fff63f3332ba798375 /telepathy-glib/text-channel.c
parentebe0c53202e216cd049e4b59e4d49d5b5e7f67db (diff)
downloadtelepathy-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/text-channel.c')
-rw-r--r--telepathy-glib/text-channel.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/telepathy-glib/text-channel.c b/telepathy-glib/text-channel.c
index a2683fb7b..b47d35853 100644
--- a/telepathy-glib/text-channel.c
+++ b/telepathy-glib/text-channel.c
@@ -62,6 +62,7 @@
#define DEBUG_FLAG TP_DEBUG_CHANNEL
#include "telepathy-glib/debug-internal.h"
+#include "telepathy-glib/automatic-client-factory-internal.h"
#include "_gen/signals-marshal.h"
@@ -1187,6 +1188,18 @@ tp_text_channel_new (TpConnection *conn,
const GHashTable *immutable_properties,
GError **error)
{
+ return _tp_text_channel_new_with_factory (NULL, conn, object_path,
+ immutable_properties, error);
+}
+
+TpTextChannel *
+_tp_text_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);
@@ -1203,6 +1216,7 @@ tp_text_channel_new (TpConnection *conn,
"object-path", object_path,
"handle-type", (guint) TP_UNKNOWN_HANDLE_TYPE,
"channel-properties", immutable_properties,
+ "factory", factory,
NULL);
}