1 #import <ObjXMPP/ObjXMPP.h>
2 #import <ObjFW/ObjFW.h>
8 @class JubAvatarManager;
10 @interface JubChatClient : OFObject
11 <XMPPConnectionDelegate, XMPPRosterDelegate, XMPPContactManagerDelegate>
13 OFMutableDictionary *_chatMap;
14 XMPPConnection *_connection;
16 XMPPStreamManagement *_streamManagement;
17 JubAvatarManager *_avatarManager;
18 XMPPContactManager *_contactManager;
19 XMPPDiscoEntity *_discoEntity;
20 XMPPPresence *_presence;
23 @property (readonly) XMPPConnection *connection;
24 @property (readonly) XMPPRoster *roster;
25 @property (readonly) JubAvatarManager *avatarManager;
26 @property (readonly) XMPPContactManager *contactManager;
27 @property (readonly) XMPPDiscoEntity *discoEntity;
28 @property (readonly) XMPPPresence *presence;
29 @property (assign) id<JubUI> ui;
31 - initWithConfig: (JubConfig*)config;
32 - (id<JubChatUI>)chatForContact: (XMPPContact*)contact;
33 - (void)sendPresenceWithStatus: (OFString*)status;
34 - (void)sendPresenceWithStatus: (OFString*)status
35 text: (OFString*)text;