1 #import <ObjXMPP/ObjXMPP.h>
2 #import <ObjFW/ObjFW.h>
8 @interface JubChatClient : OFObject
9 <XMPPConnectionDelegate, XMPPRosterDelegate, XMPPContactManagerDelegate>
11 OFMutableDictionary *_chatMap;
12 XMPPConnection *_connection;
14 XMPPStreamManagement *_streamManagement;
15 XMPPContactManager *_contactManager;
16 XMPPDiscoEntity *_discoEntity;
17 XMPPPresence *_presence;
20 @property (readonly) XMPPConnection *connection;
21 @property (readonly) XMPPRoster *roster;
22 @property (readonly) XMPPContactManager *contactManager;
23 @property (readonly) XMPPDiscoEntity *discoEntity;
24 @property (readonly) XMPPPresence *presence;
25 @property (assign) id<JubUI> ui;
27 - initWithConfig: (JubConfig*)config;
28 - (id<JubChatUI>)chatForContact: (XMPPContact*)contact;
29 - (void)sendPresenceWithStatus: (OFString*)status;
30 - (void)sendPresenceWithStatus: (OFString*)status
31 text: (OFString*)text;