]> cgit.babelmonkeys.de Git - jubjub.git/blobdiff - src/core/JubChatClient.h
Add basic Service Discovery support
[jubjub.git] / src / core / JubChatClient.h
index 79884f8ff6916613e79ab30d07e0ef27dc47cbb3..57cfd0b5782f29732863e3631aac10ed3fcfa9c1 100644 (file)
@@ -5,22 +5,28 @@
 #import "JubChatUI.h"
 #import "JubConfig.h"
 
-@interface JubChatClient : OFObject <XMPPConnectionDelegate, XMPPRosterDelegate>
+@interface JubChatClient : OFObject
+    <XMPPConnectionDelegate, XMPPRosterDelegate, XMPPContactManagerDelegate>
 {
        OFMutableDictionary *_chatMap;
        XMPPConnection *_connection;
        XMPPRoster *_roster;
        XMPPStreamManagement *_streamManagement;
        XMPPContactManager *_contactManager;
+       XMPPDiscoEntity *_discoEntity;
        XMPPPresence *_presence;
        id<JubUI> _ui;
 }
 @property (readonly) XMPPConnection *connection;
 @property (readonly) XMPPRoster *roster;
 @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