#import <ObjXMPP/ObjXMPP.h>
#include <gtk/gtk.h>
+#import "JubChatClient.h"
+
@class JubGtkChatUI;
-@interface JubGtkRosterUI: OFObject <XMPPRosterDelegate, XMPPConnectionDelegate>
+@interface JubGtkRosterUI: OFObject <XMPPContactManagerDelegate>
{
- GtkTreeStore *roster_model;
- GtkTreeModelFilter *roster_filter;
- OFMapTable *groupMap;
- OFMutableDictionary *contactMap;
- OFMutableDictionary *chatMap;
- OFCountedSet *presences;
- XMPPConnection *connection;
- GtkBuilder *builder;
+ GtkWidget *_roster_window;
+ GtkTreeStore *_roster_model;
+ GtkTreeModelFilter *_roster_filter;
+ GtkComboBox *_presence_combo;
+ gulong _presence_combo_changed_handler_id;
+ OFMapTable *_groupMap;
+ OFMutableDictionary *_contactMap;
+ JubChatClient *_client;
}
-- initWithBuilder: (GtkBuilder*)builder
- connection: (XMPPConnection*)connection;
-- (JubGtkChatUI*)chatForJID: (XMPPJID*)jid;
+- initWithClient: (JubChatClient*)client;
+- (void)client: (JubChatClient*)client
+ didChangePresence: (XMPPPresence*)presence;
@end