summaryrefslogtreecommitdiff
path: root/telepathy-glib/simple-approver.h
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2011-08-03 18:24:28 +0200
committerXavier Claessens <xclaesse@gmail.com>2011-08-17 13:19:06 +0200
commit9fbb9a58ed465a85b382c970e0b546f118eb81cd (patch)
tree811cdc93d58fb12ed2eb4f40ba26126d50d9f3d2 /telepathy-glib/simple-approver.h
parente896dac5070c46b1ac566dd5fa646be9ebe55ee9 (diff)
downloadtelepathy-glib-9fbb9a58ed465a85b382c970e0b546f118eb81cd.tar.gz
TpBaseClient: add constructors with factory instead of AM
A factory is what we really need, forcing to create a TpAccountManager also means that a simple channel handler will always introspect all accounts even if it needs only one. With a factory, TpBaseClient can create only needed accounts and still share them with a TpAccountManager if one exists.
Diffstat (limited to 'telepathy-glib/simple-approver.h')
-rw-r--r--telepathy-glib/simple-approver.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/telepathy-glib/simple-approver.h b/telepathy-glib/simple-approver.h
index 6d7c46653..bf3af0408 100644
--- a/telepathy-glib/simple-approver.h
+++ b/telepathy-glib/simple-approver.h
@@ -87,6 +87,14 @@ TpBaseClient *tp_simple_approver_new_with_am (
gpointer user_data,
GDestroyNotify destroy);
+TpBaseClient *tp_simple_approver_new_with_factory (
+ TpSimpleClientFactory *factory,
+ const gchar *name,
+ gboolean uniquify,
+ TpSimpleApproverAddDispatchOperationImpl callback,
+ gpointer user_data,
+ GDestroyNotify destroy);
+
G_END_DECLS
#endif