]> cgit.babelmonkeys.de Git - jubjub.git/blob - src/core/JubChatClient.h
Move adding messages to the ChatUI to JubChatClient
[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         XMPPPresence *_presence;
17         id<JubUI> _ui;
18 }
19 @property (readonly) XMPPConnection *connection;
20 @property (readonly) XMPPRoster *roster;
21 @property (readonly) XMPPContactManager *contactManager;
22 @property (readonly) XMPPPresence *presence;
23 @property (assign) id<JubUI> ui;
24
25 - initWithConfig: (JubConfig*)config;
26 - (id<JubChatUI>)chatForContact: (XMPPContact*)contact;
27 @end