diff options
Diffstat (limited to 'src/ui/window.h')
-rw-r--r-- | src/ui/window.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/ui/window.h b/src/ui/window.h index 4d10874c..d585036d 100644 --- a/src/ui/window.h +++ b/src/ui/window.h @@ -32,6 +32,12 @@ #endif #include "contact.h" +#include "ui/buffer.h" + +#define NO_ME 1 +#define NO_EOL 4 +#define NO_DATE 2 +#define NO_EOL_DATE 6 #define PAD_SIZE 1000 @@ -48,9 +54,11 @@ typedef enum { typedef struct prof_win_t { char *from; WINDOW *win; + ProfBuff *buffer; win_type_t type; gboolean is_otr; gboolean is_trusted; + int x_pos; int y_pos; int paged; int unread; @@ -59,16 +67,9 @@ typedef struct prof_win_t { ProfWin* win_create(const char * const title, int cols, win_type_t type); void win_free(ProfWin *window); -void win_vprint_line(ProfWin *self, const char show_char, int attrs, - const char * const msg, ...); -void win_print_line(ProfWin *self, const char show_char, int attrs, - const char * const msg); -void win_print_line_no_time(ProfWin *window, int attrs, const char * const msg); void win_update_virtual(ProfWin *window); void win_move_to_end(ProfWin *window); -void win_print_time(ProfWin *window, char show_char); -void win_presence_colour_on(ProfWin *window, const char * const presence); -void win_presence_colour_off(ProfWin *window, const char * const presence); +int win_presence_colour(const char * const presence); void win_show_contact(ProfWin *window, PContact contact); void win_show_status_string(ProfWin *window, const char * const from, const char * const show, const char * const status, @@ -77,5 +78,7 @@ void win_show_status_string(ProfWin *window, const char * const from, void win_print_incoming_message(ProfWin *window, GTimeVal *tv_stamp, const char * const from, const char * const message); void win_show_info(ProfWin *window, PContact contact); +void win_save_vprint(ProfWin *window, const char show_char, GTimeVal *tstamp, int flags, int attrs, const char * const from, const char * const message, ...); +void win_save_print(ProfWin *window, const char show_char, GTimeVal *tstamp, int flags, int attrs, const char * const from, const char * const message); #endif |