]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-chat-view.h
Rename BlockType to EMPATHY_CHAT_VIEW_BLOCK to respect namespace
[empathy.git] / libempathy-gtk / empathy-chat-view.h
index 370c8dd85180bf857b6494fe5b700f1883e49258..58219ca045c9064857bc65672534d919fe9af293 100644 (file)
@@ -26,7 +26,6 @@
 #define __EMPATHY_CHAT_VIEW_H__
 
 #include <gtk/gtktextview.h>
-#include <gtk/gtktooltips.h>
 
 #include <libempathy/empathy-contact.h>
 #include <libempathy/empathy-message.h>
@@ -44,6 +43,8 @@ typedef struct _EmpathyChatView      EmpathyChatView;
 typedef struct _EmpathyChatViewClass EmpathyChatViewClass;
 typedef struct _EmpathyChatViewPriv  EmpathyChatViewPriv;
 
+#include "empathy-theme.h"
+
 struct _EmpathyChatView {
        GtkTextView parent;
 };
@@ -52,6 +53,15 @@ struct _EmpathyChatViewClass {
        GtkTextViewClass parent_class;
 };
 
+typedef enum {
+       EMPATHY_CHAT_VIEW_BLOCK_NONE,
+       EMPATHY_CHAT_VIEW_BLOCK_SELF,
+       EMPATHY_CHAT_VIEW_BLOCK_OTHER,
+       EMPATHY_CHAT_VIEW_BLOCK_EVENT,
+       EMPATHY_CHAT_VIEW_BLOCK_TIME,
+       EMPATHY_CHAT_VIEW_BLOCK_INVITE
+} EmpathyChatViewBlock;
+
 GType            empathy_chat_view_get_type             (void) G_GNUC_CONST;
 EmpathyChatView *empathy_chat_view_new                  (void);
 void             empathy_chat_view_append_message       (EmpathyChatView *view,
@@ -84,16 +94,25 @@ void             empathy_chat_view_find_abilities       (EmpathyChatView *view,
 void             empathy_chat_view_highlight            (EmpathyChatView *view,
                                                         const gchar     *text);
 void             empathy_chat_view_copy_clipboard       (EmpathyChatView *view);
-gboolean         empathy_chat_view_get_irc_style        (EmpathyChatView *view);
-void             empathy_chat_view_set_irc_style        (EmpathyChatView *view,
-                                                        gboolean         irc_style);
+EmpathyTheme *   empathy_chat_view_get_theme            (EmpathyChatView *view);
+void             empathy_chat_view_set_theme            (EmpathyChatView *view,
+                                                        EmpathyTheme    *theme);
 void             empathy_chat_view_set_margin           (EmpathyChatView *view,
                                                         gint             margin);
 GtkWidget *      empathy_chat_view_get_smiley_menu      (GCallback        callback,
-                                                        gpointer         user_data,
-                                                        GtkTooltips     *tooltips);
+                                                        gpointer         user_data);
 void             empathy_chat_view_set_is_group_chat    (EmpathyChatView *view,
                                                         gboolean         is_group_chat);
+time_t           empathy_chat_view_get_last_timestamp   (EmpathyChatView *view);
+void             empathy_chat_view_set_last_timestamp   (EmpathyChatView *view,
+                                                        time_t           timestamp);
+EmpathyChatViewBlock empathy_chat_view_get_last_block_type  (EmpathyChatView *view);
+void             empathy_chat_view_set_last_block_type  (EmpathyChatView *view, 
+                                                        EmpathyChatViewBlock block_type);
+EmpathyContact * empathy_chat_view_get_last_contact     (EmpathyChatView *view);
+void             empathy_chat_view_set_last_contact     (EmpathyChatView *view,
+                                                        EmpathyContact  *contact);
+GdkPixbuf *      empathy_chat_view_get_avatar_pixbuf_with_cache (EmpathyContact *contact);
 
 G_END_DECLS