]> cgit.babelmonkeys.de Git - jubjub.git/blob - src/core/JubChatClient.h
c6a1da8b6df16fbe0f433312e9573163e2f6d703
[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 <XMPPConnectionDelegate, XMPPRosterDelegate>
9 {
10         OFMutableDictionary *chatMap;
11         XMPPConnection *connection;
12         XMPPRoster *roster;
13         XMPPStreamManagement *streamManagement;
14         XMPPContactManager *contactManager;
15         XMPPPresence *presence;
16         id<JubUI> ui;
17 }
18 @property (readonly) XMPPConnection *connection;
19 @property (readonly) XMPPRoster *roster;
20 @property (readonly) XMPPContactManager *contactManager;
21 @property (readonly) XMPPPresence *presence;
22 @property (assign) id<JubUI> ui;
23
24 - initWithConfig: (JubConfig*)config;
25 - (id<JubChatUI>)chatForContact: (XMPPContact*)contact;
26 @end