#import <ObjXMPP/ObjXMPP.h>
#include <gtk/gtk.h>
-typedef void (^jub_send_block_t)(OFString *);
+#import "JubChatUI.h"
-@interface JubGtkChatUI: OFObject
+@interface JubGtkChatUI: OFObject <JubChatUI>
{
- GtkWidget *chat_window;
- GtkTextBuffer *chat_buffer;
- jub_send_block_t sendBlock;
- BOOL bufferEmpty;
+ GtkWidget *_chat_window;
+ GtkTextView *_chat_view;
+ GtkTextBuffer *_chat_buffer;
+ jub_send_block_t _sendBlock;
+ jub_close_block_t _closeBlock;
+ BOOL _bufferEmpty;
}
-
-- initWithTitle: (OFString*)title
- sendBlock: (jub_send_block_t)sendBlock_;
-
-- (void)addMessage: (OFString*)text
- sender: (OFString*)sender;
@end