Re: problems with auto subcription.
From: Chris Fernandez <cfernandez@xxxxxxxxxxxxxxx>
Date: Fri, 23 Mar 2007 02:37:09 +0100 (CET)

Hi Dmitry thanks, I indeed try looking in there..
well not exacly that one but I was looking at other example files but got lost..
let me check this one in particular... Thanks


Dmitry Dolinsky wrote:
As a fellow newbie I found that looking at the examples included in the source code distribution is quite illuminating. There is roster_example.cpp that demonstrates what Jakob outlined.

--Dmitry

On Mar 22, 2007, at 4:42 PM, Jakob Schroeter wrote:

Hi, I am having some problems getting to work with auto subscription I

am using

rosterlistener.h  etc like some people mention to me last week,  I got

my code to compile with no error but I think is not doing nothing at all.

I am attaching the code, please someone take a look and let me know what

I'm doing wrong, please be patience I am a  newbee.


Thanks so much


Besides #including rosterlistener.h you'll have to derive Bot from
RosterListener, implement the virtuals, and call

  client->rosterManager()->registerRosterListener( this ).

Or something similar to that effect.