]> cgit.babelmonkeys.de Git - jubjub.git/blobdiff - src/core/JubChatClient.h
Adapt to ObjFW changes
[jubjub.git] / src / core / JubChatClient.h
index bd418f4315726c200b5aab3aa860da9a99268170..168fa696aef080d9b2fbb528c5eaf91bd0c07b3f 100644 (file)
@@ -2,18 +2,35 @@
 #import <ObjFW/ObjFW.h>
 
 #import "JubUI.h"
+#import "JubChatUI.h"
 #import "JubConfig.h"
 
-@interface JubChatClient : OFObject <XMPPConnectionDelegate, XMPPRosterDelegate>
+@class JubAvatarManager;
+
+@interface JubChatClient : OFObject
+    <XMPPConnectionDelegate, XMPPRosterDelegate, XMPPContactManagerDelegate>
 {
-       XMPPConnection *connection;
-       XMPPRoster *roster;
-       XMPPStreamManagement *streamManagement;
-       id<JubUI> ui;
+       OFMutableDictionary *_chatMap;
+       XMPPConnection *_connection;
+       XMPPRoster *_roster;
+       XMPPStreamManagement *_streamManagement;
+       JubAvatarManager *_avatarManager;
+       XMPPContactManager *_contactManager;
+       XMPPDiscoEntity *_discoEntity;
+       XMPPPresence *_presence;
+       id<JubUI> _ui;
 }
 @property (readonly) XMPPConnection *connection;
 @property (readonly) XMPPRoster *roster;
+@property (readonly) JubAvatarManager *avatarManager;
+@property (readonly) XMPPContactManager *contactManager;
+@property (readonly) XMPPDiscoEntity *discoEntity;
+@property (readonly) XMPPPresence *presence;
 @property (assign) id<JubUI> ui;
 
 - initWithConfig: (JubConfig*)config;
+- (id<JubChatUI>)chatForContact: (XMPPContact*)contact;
+- (void)sendPresenceWithStatus: (OFString*)status;
+- (void)sendPresenceWithStatus: (OFString*)status
+                         text: (OFString*)text;
 @end