[telepathy-gabble/master] Add a signal for discovery of supported search fields.
Will Thompson
will.thompson at collabora.co.uk
Wed Aug 26 09:21:45 PDT 2009
---
src/search-channel.c | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/src/search-channel.c b/src/search-channel.c
index 6733bed..1312b22 100644
--- a/src/search-channel.c
+++ b/src/search-channel.c
@@ -45,6 +45,15 @@ enum
LAST_PROPERTY
};
+/* signal enum */
+enum
+{
+ PROBED,
+ LAST_SIGNAL
+};
+
+static guint signals[LAST_SIGNAL] = {0};
+
/* private structure */
struct _GabbleSearchChannelPrivate
@@ -230,6 +239,19 @@ gabble_search_channel_class_init (GabbleSearchChannelClass *klass)
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
g_object_class_install_property (object_class, PROP_SERVER, param_spec);
+ /* Emitted with argument TRUE if the service's supported search fields have
+ * been discovered, and with argument FALSE if the service isn't actually a
+ * XEP 0055 repository.
+ */
+ signals[PROBED] =
+ g_signal_new ("probed",
+ G_OBJECT_CLASS_TYPE (klass),
+ G_SIGNAL_RUN_LAST,
+ 0,
+ NULL, NULL,
+ g_cclosure_marshal_VOID__BOOLEAN,
+ G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
+
tp_dbus_properties_mixin_implement_interface (object_class,
GABBLE_IFACE_QUARK_CHANNEL_TYPE_CONTACT_SEARCH,
tp_dbus_properties_mixin_getter_gobject_properties, NULL,
--
1.5.6.5
More information about the telepathy-commits
mailing list