]> cgit.babelmonkeys.de Git - jubjub.git/blobdiff - src/gui/gtk/JubGtkRosterUI.h
Allow showing offline contacts in the GTK UI
[jubjub.git] / src / gui / gtk / JubGtkRosterUI.h
index 5aa41b30c461542f2453770c24608b47623719d8..461a11aca3115133058f2ca38ed3405552c822e6 100644 (file)
@@ -2,20 +2,28 @@
 #import <ObjXMPP/ObjXMPP.h>
 #include <gtk/gtk.h>
 
+#import "JubChatClient.h"
+#import "JubAvatarManager.h"
+
 @class JubGtkChatUI;
 
-@interface JubGtkRosterUI: OFObject <XMPPRosterDelegate, XMPPConnectionDelegate>
+@interface JubGtkRosterUI:
+       OFObject <XMPPContactManagerDelegate, JubAvatarManagerDelegate>
 {
-       GtkWidget *roster_window;
-       GtkTreeStore *roster_model;
-       GtkTreeModelFilter *roster_filter;
-       OFMapTable *groupMap;
-       OFMutableDictionary *contactMap;
-       OFMutableDictionary *chatMap;
-       OFCountedSet *presences;
-       XMPPConnection *connection;
+       GtkWidget *_roster_window;
+       GtkTreeStore *_roster_model;
+       GtkTreeModelFilter *_roster_filter;
+       GtkComboBox *_presence_combo;
+       gulong _presence_combo_changed_handler_id;
+       OFMapTable *_groupMap;
+       OFMapTable *_subDialogMap;
+       OFMutableDictionary *_contactMap;
+       JubChatClient *_client;
+       bool _showOffline;
 }
+@property (assign) bool showOffline;
 
-- initWithConnection: (XMPPConnection*)connection;
-- (JubGtkChatUI*)chatForJID: (XMPPJID*)jid;
+- initWithClient: (JubChatClient*)client;
+-      (void)client: (JubChatClient*)client
+  didChangePresence: (XMPPPresence*)presence;
 @end