[telepathy-gabble/master] Add a flag for whether the search server uses xforms
Will Thompson
will.thompson at collabora.co.uk
Wed Aug 26 09:21:52 PDT 2009
---
src/search-channel.c | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/src/search-channel.c b/src/search-channel.c
index 99f5361..43303f2 100644
--- a/src/search-channel.c
+++ b/src/search-channel.c
@@ -68,6 +68,8 @@ struct _GabbleSearchChannelPrivate
gchar **available_search_keys;
gchar *server;
+ gboolean xforms;
+
TpHandleSet *result_handles;
};
@@ -237,10 +239,16 @@ parse_search_field_response (GabbleSearchChannel *chan,
NS_X_DATA);
if (x_node == NULL)
- search_keys = parse_unextended_field_response (query_node, &e);
+ {
+ chan->priv->xforms = FALSE;
+ search_keys = parse_unextended_field_response (query_node, &e);
+ }
else
- e = g_error_new (TP_ERRORS, TP_ERROR_NOT_IMPLEMENTED,
- "server uses data forms, which are not yet implemented in Gabble");
+ {
+ chan->priv->xforms = TRUE;
+ e = g_error_new (TP_ERRORS, TP_ERROR_NOT_IMPLEMENTED,
+ "server uses data forms, which are not yet implemented in Gabble");
+ }
if (search_keys == NULL)
{
--
1.5.6.5
More information about the telepathy-commits
mailing list