comparison mcabber/src/screen.h @ 374:bd5638c21834

Improve logging system (traces) There are now two trace logging levels: * tracelog_level = 1: Most messages from the log window are written to disk (LPRINT_LOG) * tracelog_level =2: LPRINT_LOG & LPRINT_DEBUG messages are written to disk The trace file name is set with the "tracelog_file" option.
author Mikael Berthe <mikael@lilotux.net>
date Mon, 25 Jul 2005 21:46:35 +0100
parents dd9e2eb52916
children 00809e3e327e
comparison
equal deleted inserted replaced
373:af2f8ddf6a1b 374:bd5638c21834
1 #ifndef __SCREEN_H__ 1 #ifndef __SCREEN_H__
2 #define __SCREEN_H__ 1 2 #define __SCREEN_H__ 1
3 3
4 #include <ncurses.h> 4 #include <ncurses.h>
5 #include <glib.h> 5 #include <glib.h>
6
7 #include "logprint.h"
6 8
7 #define COLOR_GENERAL 3 9 #define COLOR_GENERAL 3
8 #define COLOR_NMSG 4 10 #define COLOR_NMSG 4
9 #define COLOR_BD_DESSEL 5 11 #define COLOR_BD_DESSEL 5
10 #define COLOR_BD_DES 6 12 #define COLOR_BD_DES 6
22 #define MULTILINE_MAX_LINE_NUMBER 299 24 #define MULTILINE_MAX_LINE_NUMBER 299
23 25
24 extern int update_roster; 26 extern int update_roster;
25 27
26 void scr_InitCurses(void); 28 void scr_InitCurses(void);
29 void scr_TerminateCurses(void);
27 void scr_DrawMainWindow(unsigned int fullinit); 30 void scr_DrawMainWindow(unsigned int fullinit);
28 void scr_DrawRoster(void); 31 void scr_DrawRoster(void);
29 void scr_TerminateCurses(void);
30 void scr_WriteIncomingMessage(const char *jidfrom, const char *text, 32 void scr_WriteIncomingMessage(const char *jidfrom, const char *text,
31 time_t timestamp, guint prefix); 33 time_t timestamp, guint prefix);
32 void scr_WriteOutgoingMessage(const char *jidto, const char *text); 34 void scr_WriteOutgoingMessage(const char *jidto, const char *text);
33 void scr_ShowBuddyWindow(void); 35 void scr_ShowBuddyWindow(void);
34 void scr_LogPrint(const char *fmt, ...);
35 inline void scr_set_chatmode(int enable); 36 inline void scr_set_chatmode(int enable);
36 inline void scr_set_multimode(int enable); 37 inline void scr_set_multimode(int enable);
37 inline int scr_get_multimode(); 38 inline int scr_get_multimode();
38 void scr_append_multiline(const char *line); 39 void scr_append_multiline(const char *line);
39 inline const char *scr_get_multiline(); 40 inline const char *scr_get_multiline();