Re: help on disco classes
From: Jakob Schroeter <js@xxxxxxxxxx>
Date: Mon, 20 Feb 2006 21:12:45 +0100
On Monday February 20 2006 18:27, Emmanuel Nars wrote:
>                          hello,
>
> I don't understand how to use disco()->addFeature("jabber:iq:time");

To publish your client's support for this protocol this is all you have to do.


> and to retrieve this information because when i use "getDiscoItems"
> or "getDiscoInfo",

Do you want to retrieve the disco items your app supports from within your 
app? Unfortunately, there is no way to fetch the items from the Disco object 
at this point. However, I've just added a const StringList& features() which 
will be in the next pre-release.


> the stanza in the callbacks : handleDiscoInfoResult( Stanza *stanza,
> int context ) and handleDiscoItemsResult( Stanza *stanza, int
> context ) is empty

What do you mean, the stanza is empty? Is it NUL? What is the raw XML returned 
by the server?


> Can you explain to me how to post and retrieve features?

You could have a look at src/flexoff.{h,cpp} and src/tests/flexoff_test.cpp.

cheers,
Jakob

Attachment: pgpYwOBTYQSuq.pgp
Description: PGP signature

-- 
gloox-dev mailing list
to unsubscribe:
send a message with subject 'unsubscribe gloox-dev' to minimalist@xxxxxxxxxx