]> cgit.babelmonkeys.de Git - jubjub.git/blob - src/core/JubChatClient.h
57cfd0b5782f29732863e3631aac10ed3fcfa9c1
[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 @interface JubChatClient : OFObject
9     <XMPPConnectionDelegate, XMPPRosterDelegate, XMPPContactManagerDelegate>
10 {
11         OFMutableDictionary *_chatMap;
12         XMPPConnection *_connection;
13         XMPPRoster *_roster;
14         XMPPStreamManagement *_streamManagement;
15         XMPPContactManager *_contactManager;
16         XMPPDiscoEntity *_discoEntity;
17         XMPPPresence *_presence;
18         id<JubUI> _ui;
19 }
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;
26
27 - initWithConfig: (JubConfig*)config;
28 - (id<JubChatUI>)chatForContact: (XMPPContact*)contact;
29 - (void)sendPresenceWithStatus: (OFString*)status;
30 - (void)sendPresenceWithStatus: (OFString*)status
31                           text: (OFString*)text;
32 @end