@implementation JubChatClient
@synthesize connection;
@synthesize roster;
+@synthesize contactManager;
@synthesize presence;
@synthesize ui;
roster = [[XMPPRoster alloc] initWithConnection: connection];
[roster addDelegate: self];
+ contactManager = [[XMPPContactManager alloc]
+ initWithConnection: connection
+ roster: roster];
+
streamManagement = [[XMPPStreamManagement alloc]
initWithConnection: connection];
- (void)dealloc
{
[roster release];
+ [contactManager release];
[streamManagement release];
[connection release];
[presence release];
- (void)rosterWasReceived: (XMPPRoster*)roster
{
XMPPPresence *pres = [XMPPPresence presence];
- [pres addStatus: @"Hello from JubJub"];
+ [pres setStatus: @"Hello from JubJub"];
[connection sendStanza: pres];
}
@end