]> cgit.babelmonkeys.de Git - jubjub.git/blobdiff - src/gui/gtk/JubGtkRosterUI.h
Make the PresenceComboBox's changed handler only fire when the user changed it
[jubjub.git] / src / gui / gtk / JubGtkRosterUI.h
index 3244ad50560ad6b8fdbc3e8196381e0e8e52e176..ec94383e4255e9050ad0aa6d136a3f41af84911e 100644 (file)
@@ -2,14 +2,26 @@
 #import <ObjXMPP/ObjXMPP.h>
 #include <gtk/gtk.h>
 
+#import "JubChatClient.h"
+
+@class JubGtkChatUI;
+
 @interface JubGtkRosterUI: OFObject <XMPPRosterDelegate, XMPPConnectionDelegate>
 {
+       GtkWidget *roster_window;
        GtkTreeStore *roster_model;
        GtkTreeModelFilter *roster_filter;
+       GtkComboBox *presence_combo;
+       gulong presence_combo_changed_handler_id;
        OFMapTable *groupMap;
        OFMutableDictionary *contactMap;
+       OFMutableDictionary *chatMap;
        OFCountedSet *presences;
-       GtkBuilder *builder;
+       XMPPConnection *connection;
 }
-- initWithBuilder: (GtkBuilder*)builder;
+
+- initWithClient: (JubChatClient*)client;
+- (JubGtkChatUI*)chatForJID: (XMPPJID*)jid;
+-      (void)client: (JubChatClient*)client
+  didChangePresence: (XMPPPresence*)presence;
 @end