comparison src/gaim.h @ 3367:3b00d97d59aa

[gaim-migrate @ 3386] There'll be more tommorow! Thanks for coming to the party. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Fri, 02 Aug 2002 04:52:48 +0000
parents dd34e0b40fed
children eb7b398051f2
comparison
equal deleted inserted replaced
3366:120e08ea5aee 3367:3b00d97d59aa
82 #define CUI_CHAT_JOIN 3 /* handles other people joining/parting too */ 82 #define CUI_CHAT_JOIN 3 /* handles other people joining/parting too */
83 #define CUI_CHAT_PART 4 83 #define CUI_CHAT_PART 4
84 #define CUI_CHAT_SEND 5 84 #define CUI_CHAT_SEND 5
85 #define CUI_CHAT_RECV 6 85 #define CUI_CHAT_RECV 6
86 86
87
88 #define BROWSER_NETSCAPE 0
89 #define BROWSER_KFM 1
90 #define BROWSER_MANUAL 2
91 /*#define BROWSER_INTERNAL 3*/
92 #define BROWSER_GNOME 4
93
94 #define IM_FLAG_AWAY 0x01 87 #define IM_FLAG_AWAY 0x01
95 #define IM_FLAG_CHECKBOX 0x02 88 #define IM_FLAG_CHECKBOX 0x02
96 #define IM_FLAG_GAIMUSER 0x04 89 #define IM_FLAG_GAIMUSER 0x04
97 90
98 #define IDLE_NONE 0 91 #define IDLE_NONE 0
110 #define WFLAG_WHISPER 0x08 103 #define WFLAG_WHISPER 0x08
111 #define WFLAG_FILERECV 0x10 104 #define WFLAG_FILERECV 0x10
112 #define WFLAG_SYSTEM 0x20 105 #define WFLAG_SYSTEM 0x20
113 #define WFLAG_NICK 0x40 106 #define WFLAG_NICK 0x40
114 #define WFLAG_NOLOG 0x80 107 #define WFLAG_NOLOG 0x80
108 #define WFLAG_COLORIZE 0x100
115 109
116 #define AUTO_RESPONSE "&lt;AUTO-REPLY&gt; : " 110 #define AUTO_RESPONSE "&lt;AUTO-REPLY&gt; : "
117 111
118 #define WEBSITE "http://gaim.sourceforge.net/" 112 #define WEBSITE "http://gaim.sourceforge.net/"
119 113
251 #define OPT_CHAT_POPUP 0x00000010 245 #define OPT_CHAT_POPUP 0x00000010
252 #define OPT_CHAT_SIDE_TAB 0x00000020 246 #define OPT_CHAT_SIDE_TAB 0x00000020
253 #define OPT_CHAT_BR_TAB 0x00000040 247 #define OPT_CHAT_BR_TAB 0x00000040
254 #define OPT_CHAT_TAB_COMPLETE 0x00000080 248 #define OPT_CHAT_TAB_COMPLETE 0x00000080
255 #define OPT_CHAT_OLD_STYLE_TAB 0x00000100 249 #define OPT_CHAT_OLD_STYLE_TAB 0x00000100
250 #define OPT_CHAT_COLORIZE 0x00000200
256 251
257 extern guint font_options; 252 extern guint font_options;
258 #define OPT_FONT_BOLD 0x00000001 253 #define OPT_FONT_BOLD 0x00000001
259 #define OPT_FONT_ITALIC 0x00000002 254 #define OPT_FONT_ITALIC 0x00000002
260 #define OPT_FONT_UNDERLINE 0x00000008 255 #define OPT_FONT_UNDERLINE 0x00000008
283 #define OPT_SOUND_ARTSC 0x00008000 278 #define OPT_SOUND_ARTSC 0x00008000
284 #define OPT_SOUND_ESD 0x00010000 279 #define OPT_SOUND_ESD 0x00010000
285 #define OPT_SOUND_CMD 0x00020000 280 #define OPT_SOUND_CMD 0x00020000
286 #define OPT_SOUND_CHAT_NICK 0x00040000 281 #define OPT_SOUND_CHAT_NICK 0x00040000
287 /* remember to also change the struct in sound.c */ 282 /* remember to also change the struct in sound.c */
283
288 #define SND_BUDDY_ARRIVE 0 284 #define SND_BUDDY_ARRIVE 0
289 #define SND_BUDDY_LEAVE 1 285 #define SND_BUDDY_LEAVE 1
290 #define SND_RECEIVE 2 286 #define SND_RECEIVE 2
291 #define SND_FIRST_RECEIVE 3 287 #define SND_FIRST_RECEIVE 3
292 #define SND_SEND 4 288 #define SND_SEND 4
295 #define SND_CHAT_YOU_SAY 7 291 #define SND_CHAT_YOU_SAY 7
296 #define SND_CHAT_SAY 8 292 #define SND_CHAT_SAY 8
297 #define SND_POUNCE_DEFAULT 9 293 #define SND_POUNCE_DEFAULT 9
298 #define SND_CHAT_NICK 10 294 #define SND_CHAT_NICK 10
299 #define NUM_SOUNDS 11 295 #define NUM_SOUNDS 11
300 /* these two for the sound_order list in prefs.c */ 296
301 #define SND_SEPARATOR -1
302 #define SND_END -2
303 extern char *sound_file[NUM_SOUNDS]; 297 extern char *sound_file[NUM_SOUNDS];
298 extern int sound_order[];
304 299
305 /* global sound struct */ 300 /* global sound struct */
306 struct sound_struct { 301 struct sound_struct {
307 char *label; 302 char *label;
308 guint opt; 303 guint opt;
431 extern void strncpy_nohtml(gchar *, const gchar *, size_t); 426 extern void strncpy_nohtml(gchar *, const gchar *, size_t);
432 extern void strncpy_withhtml(gchar *, const gchar *, size_t); 427 extern void strncpy_withhtml(gchar *, const gchar *, size_t);
433 extern gchar *strdup_withhtml(const gchar *); 428 extern gchar *strdup_withhtml(const gchar *);
434 extern void away_on_login(char *); 429 extern void away_on_login(char *);
435 extern void system_log(enum log_event, struct gaim_connection *, struct buddy *, int); 430 extern void system_log(enum log_event, struct gaim_connection *, struct buddy *, int);
436 extern unsigned char *utf8_to_str(unsigned char *);
437 extern char *str_to_utf8(unsigned char *);
438 extern char *add_cr(char *); 431 extern char *add_cr(char *);
439 extern void strip_linefeed(char *); 432 extern void strip_linefeed(char *);
440 extern time_t get_time(int, int, int, int, int, int); 433 extern time_t get_time(int, int, int, int, int, int);
441 extern FILE *gaim_mkstemp(gchar **); 434 extern FILE *gaim_mkstemp(gchar **);
435 extern char *convert_string(char *, const char *, const char *);
436 #define utf8_to_str(in) convert_string(in, nl_langinfo(CODESET), "UTF-8");
437 #define str_to_utf8(in) convert_string(in, "UTF-8", nl_langinfo(CODESET));
442 438
443 /*------------------------------------------------------------------------*/ 439 /*------------------------------------------------------------------------*/
444 /* Multi-Entry dialog and vCard dialog support */ 440 /* Multi-Entry dialog and vCard dialog support */
445 /*------------------------------------------------------------------------*/ 441 /*------------------------------------------------------------------------*/
446 442