summaryrefslogtreecommitdiff
path: root/src/search-channel.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-08-24 17:02:29 +0100
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-08-24 17:02:29 +0100
commit0e2ede722f51afe544a517a1d83da6af0f9c81b7 (patch)
tree60f69ae87d5b0cc6ad1e5911d3c0e2d239c861d3 /src/search-channel.c
parentb044a81ea53f4cfb4f31726e728a049d789fa9bb (diff)
downloadtelepathy-gabble-0e2ede722f51afe544a517a1d83da6af0f9c81b7.tar.gz
add gabble_search_channel_is_ready()
Diffstat (limited to 'src/search-channel.c')
-rw-r--r--src/search-channel.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/search-channel.c b/src/search-channel.c
index 9a6c25a0a..0096fb534 100644
--- a/src/search-channel.c
+++ b/src/search-channel.c
@@ -84,6 +84,10 @@ struct _GabbleSearchChannelPrivate
GHashTable *results;
+ /* TRUE if the channel is ready to be used (we received the keys supported
+ * by the server). */
+ gboolean ready;
+
TpHandleSet *result_handles;
};
@@ -208,6 +212,7 @@ supported_fields_discovered (GabbleSearchChannel *chan)
chan->base.closed = FALSE;
gabble_base_channel_register ((GabbleBaseChannel *) chan);
+ chan->priv->ready = TRUE;
g_signal_emit (chan, signals[READY_OR_NOT], 0, 0, 0, NULL);
}
@@ -1386,6 +1391,12 @@ gabble_search_channel_close (GabbleSearchChannel *self)
ensure_closed (self);
}
+gboolean
+gabble_search_channel_is_ready (GabbleSearchChannel *self)
+{
+ return self->priv->ready;
+}
+
static void
contact_search_iface_init (gpointer g_iface,
gpointer iface_data)