diff options
author | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-07-04 13:32:26 +0200 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-07-04 17:25:15 +0200 |
commit | 83321bc4095d064652a0dd2b537e171b5f6fedd5 (patch) | |
tree | db6bd1033a230618496536c10ff2f6f31eda69ba /telepathy-logger/text-channel.c | |
parent | 2c616a30adc38d7d0768f476ed973dc8070c2e80 (diff) | |
download | telepathy-logger-83321bc4095d064652a0dd2b537e171b5f6fedd5.tar.gz |
Add TplClientFactory
It is a TpAutomaticClientFactory subclass that creates
TplTextChannel and TplCallChannel instances
Diffstat (limited to 'telepathy-logger/text-channel.c')
-rw-r--r-- | telepathy-logger/text-channel.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/telepathy-logger/text-channel.c b/telepathy-logger/text-channel.c index d2560fb..3c3b5cd 100644 --- a/telepathy-logger/text-channel.c +++ b/telepathy-logger/text-channel.c @@ -759,6 +759,17 @@ _tpl_text_channel_new (TpConnection *conn, GHashTable *tp_chan_props, GError **error) { + return _tpl_text_channel_new_with_factory (NULL, conn, object_path, + tp_chan_props, error); +} + +TplTextChannel * +_tpl_text_channel_new_with_factory (TpSimpleClientFactory *factory, + TpConnection *conn, + const gchar *object_path, + const GHashTable *tp_chan_props, + GError **error) +{ TpProxy *conn_proxy = TP_PROXY (conn); TplTextChannel *self; @@ -773,6 +784,7 @@ _tpl_text_channel_new (TpConnection *conn, self = g_object_new (TPL_TYPE_TEXT_CHANNEL, /* TpChannel properties */ + "factory", factory, "connection", conn, "dbus-daemon", conn_proxy->dbus_daemon, "bus-name", conn_proxy->bus_name, |