]> cgit.babelmonkeys.de Git - jubjub.git/blob - src/core/JubChatClient.h
Add User Avatar support
[jubjub.git] / src / core / JubChatClient.h
1 #import <ObjXMPP/ObjXMPP.h>
2 #import <ObjFW/ObjFW.h>
3
4 #import "JubUI.h"
5 #import "JubChatUI.h"
6 #import "JubConfig.h"
7
8 @class JubAvatarManager;
9
10 @interface JubChatClient : OFObject
11     <XMPPConnectionDelegate, XMPPRosterDelegate, XMPPContactManagerDelegate>
12 {
13         OFMutableDictionary *_chatMap;
14         XMPPConnection *_connection;
15         XMPPRoster *_roster;
16         XMPPStreamManagement *_streamManagement;
17         JubAvatarManager *_avatarManager;
18         XMPPContactManager *_contactManager;
19         XMPPDiscoEntity *_discoEntity;
20         XMPPPresence *_presence;
21         id<JubUI> _ui;
22 }
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;
30
31 - initWithConfig: (JubConfig*)config;
32 - (id<JubChatUI>)chatForContact: (XMPPContact*)contact;
33 - (void)sendPresenceWithStatus: (OFString*)status;
34 - (void)sendPresenceWithStatus: (OFString*)status
35                           text: (OFString*)text;
36 @end