]> cgit.babelmonkeys.de Git - jubjub.git/blobdiff - src/core/JubChatClient.h
Move chat window creation to JubChatClient
[jubjub.git] / src / core / JubChatClient.h
index bd418f4315726c200b5aab3aa860da9a99268170..c6a1da8b6df16fbe0f433312e9573163e2f6d703 100644 (file)
@@ -2,18 +2,25 @@
 #import <ObjFW/ObjFW.h>
 
 #import "JubUI.h"
+#import "JubChatUI.h"
 #import "JubConfig.h"
 
 @interface JubChatClient : OFObject <XMPPConnectionDelegate, XMPPRosterDelegate>
 {
+       OFMutableDictionary *chatMap;
        XMPPConnection *connection;
        XMPPRoster *roster;
        XMPPStreamManagement *streamManagement;
+       XMPPContactManager *contactManager;
+       XMPPPresence *presence;
        id<JubUI> ui;
 }
 @property (readonly) XMPPConnection *connection;
 @property (readonly) XMPPRoster *roster;
+@property (readonly) XMPPContactManager *contactManager;
+@property (readonly) XMPPPresence *presence;
 @property (assign) id<JubUI> ui;
 
 - initWithConfig: (JubConfig*)config;
+- (id<JubChatUI>)chatForContact: (XMPPContact*)contact;
 @end