On Monday March 3 2008, Jakob Schröter wrote:
> On Tuesday February 26 2008, lerosua wrote:
> > hi.
> >
> > i want to use XHtmlIM in my client.
> > now i use gloox 1.0 alpha2
> > but i have no idea for use the sub class
> > StanzaExtension<http://camaya.net/api/gloox-trunk/classgloox_1_1StanzaExt
> >en sion.html> .
> > i can't understand the class XHtmlIM.
> > can you give me some example for it . or tell me the important point ?
> >
> >
> > i hope someone can help me. thanks .
>
> To display an XHTML-IM message:
>
> in handleMessage():
>
> const XHtmlIM* x = msg.findExtension<XHtmlIM>( ExtXHtmlIM );
> if( x )
> {
> fancy_func_to_display_xhtml_from_gloox_tag( x->xhtml() );
> }
Forgot to mention, for this extension to show up, you have to call
ClientBase::registerStanzaExtension( new XHtmlIM() );
somewhere when initialising Client.
cheers,
Jakob
Attachment:
signature.asc
Description: This is a digitally signed message part.