Mercurial > pidgin
annotate src/gaim.h @ 2484:a4647b25dbf1
[gaim-migrate @ 2497]
yay
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 11 Oct 2001 21:11:22 +0000 |
parents | 895e2469cb3a |
children | 1b7a1133962d |
rev | line source |
---|---|
1 | 1 /* |
2 * gaim | |
3 * | |
4 * Copyright (C) 1998-1999, Mark Spencer <markster@marko.net> | |
5 * | |
6 * This program is free software; you can redistribute it and/or modify | |
7 * it under the terms of the GNU General Public License as published by | |
8 * the Free Software Foundation; either version 2 of the License, or | |
9 * (at your option) any later version. | |
10 * | |
11 * This program is distributed in the hope that it will be useful, | |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 * GNU General Public License for more details. | |
15 * | |
16 * You should have received a copy of the GNU General Public License | |
17 * along with this program; if not, write to the Free Software | |
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
19 * | |
20 */ | |
21 | |
2417
5473c8c5378d
[gaim-migrate @ 2430]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2416
diff
changeset
|
22 #ifndef _GAIM_H_ |
5473c8c5378d
[gaim-migrate @ 2430]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2416
diff
changeset
|
23 #define _GAIM_H_ |
960
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
24 |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
348
diff
changeset
|
25 #ifdef HAVE_CONFIG_H |
2090
b66aca8e8dce
[gaim-migrate @ 2100]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2039
diff
changeset
|
26 #include <config.h> |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
348
diff
changeset
|
27 #endif |
960
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
28 |
2417
5473c8c5378d
[gaim-migrate @ 2430]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2416
diff
changeset
|
29 #include "core.h" |
5473c8c5378d
[gaim-migrate @ 2430]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2416
diff
changeset
|
30 #include "ui.h" |
2438
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
31 /* XXX CUI: when this is done being split, the only things below should be things |
2417
5473c8c5378d
[gaim-migrate @ 2430]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2416
diff
changeset
|
32 * both the core and the uis depend on e.g. the protocol definitions, etc, and |
5473c8c5378d
[gaim-migrate @ 2430]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2416
diff
changeset
|
33 * it won't include core.h or ui.h (i.e. it'll mostly be #define's) */ |
1 | 34 |
2438
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
35 /* this is the basis of the CUI protocol. */ |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
36 #define CUI_TYPE_META 1 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
37 #define CUI_TYPE_PLUGIN 2 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
38 #define CUI_TYPE_USER 3 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
39 #define CUI_TYPE_CONN 4 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
40 #define CUI_TYPE_BUDDY 5 /* BUDDY_LIST, i.e., both groups and buddies */ |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
41 #define CUI_TYPE_MESSAGE 6 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
42 #define CUI_TYPE_CHAT 7 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
43 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
44 #define CUI_META_LIST 1 /* 1 is always list; this is ignored by the core. |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
45 If we move to TCP this can be a keepalive */ |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
46 #define CUI_META_QUIT 2 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
47 #define CUI_META_DETACH 3 /* you don't need to send this, you can just close |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
48 the socket. the core will understand. */ |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
49 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
50 #define CUI_PLUGIN_LIST 1 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
51 #define CUI_PLUGIN_LOAD 2 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
52 #define CUI_PLUGIN_UNLOAD 3 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
53 #define CUI_PLUGIN_RELOAD 4 /* this is redundant and may be removed */ |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
54 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
55 #define CUI_USER_LIST 1 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
56 #define CUI_USER_ADD 2 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
57 #define CUI_USER_REMOVE 3 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
58 #define CUI_USER_MODIFY 4 /* this handles moving them in the list too */ |
2441
2c2c1f717616
[gaim-migrate @ 2454]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2440
diff
changeset
|
59 #define CUI_USER_SIGNON 5 |
2438
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
60 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
61 #define CUI_CONN_LIST 1 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
62 #define CUI_CONN_PROGRESS 2 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
63 #define CUI_CONN_ONLINE 3 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
64 #define CUI_CONN_OFFLINE 4 /* this may send a "reason" for why it was killed */ |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
65 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
66 #define CUI_BUDDY_LIST 1 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
67 #define CUI_BUDDY_STATE 2 /* notifies the UI of state changes; UI can use it to |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
68 request the current status from the core */ |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
69 #define CUI_BUDDY_ADD 3 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
70 #define CUI_BUDDY_REMOVE 4 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
71 #define CUI_BUDDY_MODIFY 5 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
72 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
73 #define CUI_MESSAGE_LIST 1 /* no idea */ |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
74 #define CUI_MESSAGE_SEND 2 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
75 #define CUI_MESSAGE_RECV 3 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
76 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
77 #define CUI_CHAT_LIST 1 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
78 #define CUI_CHAT_HISTORY 2 /* is this necessary? should we have one for IMs? */ |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
79 #define CUI_CHAT_JOIN 3 /* handles other people joining/parting too */ |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
80 #define CUI_CHAT_PART 4 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
81 #define CUI_CHAT_SEND 5 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
82 #define CUI_CHAT_RECV 6 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
83 |
5cbe86a444d9
[gaim-migrate @ 2451]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2435
diff
changeset
|
84 |
1 | 85 |
2313
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
86 #define IM_FLAG_AWAY 0x01 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
87 #define IM_FLAG_CHECKBOX 0x02 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
88 #define IM_FLAG_GAIMUSER 0x04 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
89 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
90 #define IDLE_NONE 0 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
91 #define IDLE_GAIM 1 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
92 #define IDLE_SCREENSAVER 2 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
93 |
678
c72f58814e9f
[gaim-migrate @ 688]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
667
diff
changeset
|
94 #define PERMIT_ALL 1 |
c72f58814e9f
[gaim-migrate @ 688]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
667
diff
changeset
|
95 #define PERMIT_NONE 2 |
c72f58814e9f
[gaim-migrate @ 688]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
667
diff
changeset
|
96 #define PERMIT_SOME 3 |
c72f58814e9f
[gaim-migrate @ 688]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
667
diff
changeset
|
97 #define DENY_SOME 4 |
c72f58814e9f
[gaim-migrate @ 688]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
667
diff
changeset
|
98 |
2374
9e9385cddcc6
[gaim-migrate @ 2387]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2371
diff
changeset
|
99 #define WFLAG_SEND 0x01 |
9e9385cddcc6
[gaim-migrate @ 2387]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2371
diff
changeset
|
100 #define WFLAG_RECV 0x02 |
9e9385cddcc6
[gaim-migrate @ 2387]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2371
diff
changeset
|
101 #define WFLAG_AUTO 0x04 |
9e9385cddcc6
[gaim-migrate @ 2387]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2371
diff
changeset
|
102 #define WFLAG_WHISPER 0x08 |
9e9385cddcc6
[gaim-migrate @ 2387]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2371
diff
changeset
|
103 #define WFLAG_FILERECV 0x10 |
9e9385cddcc6
[gaim-migrate @ 2387]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2371
diff
changeset
|
104 #define WFLAG_SYSTEM 0x20 |
9e9385cddcc6
[gaim-migrate @ 2387]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2371
diff
changeset
|
105 #define WFLAG_NICK 0x40 |
2385
bdc74764245c
[gaim-migrate @ 2398]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2382
diff
changeset
|
106 #define WFLAG_NOLOG 0x80 |
1 | 107 |
1480
4cf6d1704e76
[gaim-migrate @ 1490]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1479
diff
changeset
|
108 #define AUTO_RESPONSE "<AUTO-REPLY> : " |
1 | 109 |
1710
f42ce672c560
[gaim-migrate @ 1720]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1694
diff
changeset
|
110 #define WEBSITE "http://gaim.sourceforge.net/" |
1 | 111 |
599
ddce1742f173
[gaim-migrate @ 609]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
592
diff
changeset
|
112 #ifndef USE_GNOME |
345
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
113 #ifdef ENABLE_NLS |
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
114 # include <libintl.h> |
590
91f877d86ca6
[gaim-migrate @ 600]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
577
diff
changeset
|
115 # define _(x) gettext(x) |
345
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
116 # ifdef gettext_noop |
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
117 # define N_(String) gettext_noop (String) |
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
118 # else |
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
119 # define N_(String) (String) |
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
120 # endif |
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
121 #else |
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
122 # define N_(String) (String) |
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
123 # define _(x) (x) |
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
124 #endif |
348
29f95b2b3e38
[gaim-migrate @ 358]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
345
diff
changeset
|
125 #endif |
345
f8ddc51fc5fb
[gaim-migrate @ 355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
344
diff
changeset
|
126 |
2313
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
127 #define OPT_USR_AUTO 0x00000001 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
128 /*#define OPT_USR_KEEPALV 0x00000002 this shouldn't be optional */ |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
129 #define OPT_USR_REM_PASS 0x00000004 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
130 #define OPT_USR_MAIL_CHECK 0x00000008 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
131 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
132 #define DEFAULT_INFO "Visit the GAIM website at <A HREF=\"http://gaim.sourceforge.net/\">http://gaim.sourceforge.net/</A>." |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
133 |
1575
427e1409917c
[gaim-migrate @ 1585]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1573
diff
changeset
|
134 enum log_event { |
427e1409917c
[gaim-migrate @ 1585]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1573
diff
changeset
|
135 log_signon = 0, |
427e1409917c
[gaim-migrate @ 1585]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1573
diff
changeset
|
136 log_signoff, |
427e1409917c
[gaim-migrate @ 1585]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1573
diff
changeset
|
137 log_away, |
427e1409917c
[gaim-migrate @ 1585]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1573
diff
changeset
|
138 log_back, |
427e1409917c
[gaim-migrate @ 1585]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1573
diff
changeset
|
139 log_idle, |
427e1409917c
[gaim-migrate @ 1585]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1573
diff
changeset
|
140 log_unidle, |
427e1409917c
[gaim-migrate @ 1585]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1573
diff
changeset
|
141 log_quit |
427e1409917c
[gaim-migrate @ 1585]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1573
diff
changeset
|
142 }; |
427e1409917c
[gaim-migrate @ 1585]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1573
diff
changeset
|
143 |
1235
a9cf2f61a7b1
[gaim-migrate @ 1245]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1229
diff
changeset
|
144 #define OPT_POUNCE_POPUP 0x001 |
a9cf2f61a7b1
[gaim-migrate @ 1245]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1229
diff
changeset
|
145 #define OPT_POUNCE_SEND_IM 0x002 |
a9cf2f61a7b1
[gaim-migrate @ 1245]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1229
diff
changeset
|
146 #define OPT_POUNCE_COMMAND 0x004 |
1694 | 147 #define OPT_POUNCE_SOUND 0x008 |
1235
a9cf2f61a7b1
[gaim-migrate @ 1245]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1229
diff
changeset
|
148 |
a9cf2f61a7b1
[gaim-migrate @ 1245]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1229
diff
changeset
|
149 #define OPT_POUNCE_SIGNON 0x010 |
a9cf2f61a7b1
[gaim-migrate @ 1245]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1229
diff
changeset
|
150 #define OPT_POUNCE_UNAWAY 0x020 |
a9cf2f61a7b1
[gaim-migrate @ 1245]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1229
diff
changeset
|
151 #define OPT_POUNCE_UNIDLE 0x040 |
a9cf2f61a7b1
[gaim-migrate @ 1245]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1229
diff
changeset
|
152 |
a9cf2f61a7b1
[gaim-migrate @ 1245]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1229
diff
changeset
|
153 #define OPT_POUNCE_SAVE 0x100 |
a9cf2f61a7b1
[gaim-migrate @ 1245]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1229
diff
changeset
|
154 |
1 | 155 struct buddy_pounce { |
156 char name[80]; | |
157 char message[2048]; | |
1229
229bf438c591
[gaim-migrate @ 1239]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1214
diff
changeset
|
158 char command[2048]; |
1694 | 159 char sound[2048]; |
1137 | 160 |
1138 | 161 char pouncer[80]; |
1155 | 162 int protocol; |
163 | |
1235
a9cf2f61a7b1
[gaim-migrate @ 1245]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1229
diff
changeset
|
164 int options; |
1 | 165 }; |
166 | |
1490
44528cc8e8ff
[gaim-migrate @ 1500]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1480
diff
changeset
|
167 #define CONVERSATION_TITLE "%s - Gaim" |
44528cc8e8ff
[gaim-migrate @ 1500]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1480
diff
changeset
|
168 #define LOG_CONVERSATION_TITLE "%s - Gaim (logged)" |
1 | 169 |
170 /* These should all be runtime selectable */ | |
171 | |
172 #define MSG_LEN 2048 | |
173 /* The above should normally be the same as BUF_LEN, | |
174 * but just so we're explictly asking for the max message | |
175 * length. */ | |
176 #define BUF_LEN MSG_LEN | |
177 #define BUF_LONG BUF_LEN * 2 | |
178 | |
179 /* Globals in aim.c */ | |
180 extern GList *buddy_pounces; | |
181 extern GList *conversations; | |
182 extern GtkWidget *mainwindow; | |
1560
72235e3fcff6
[gaim-migrate @ 1570]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1535
diff
changeset
|
183 extern int opt_away; |
72235e3fcff6
[gaim-migrate @ 1570]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1535
diff
changeset
|
184 extern char *opt_away_arg; |
72235e3fcff6
[gaim-migrate @ 1570]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1535
diff
changeset
|
185 extern char *opt_rcfile_arg; |
1254
9da444224f0e
[gaim-migrate @ 1264]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1252
diff
changeset
|
186 |
2313
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
187 extern guint misc_options; |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
188 #define OPT_MISC_DEBUG 0x00000001 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
189 #define OPT_MISC_BROWSER_POPUP 0x00000002 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
190 #define OPT_MISC_BUDDY_TICKER 0x00000004 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
191 #define OPT_MISC_COOL_LOOK 0x00000008 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
192 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
193 extern guint logging_options; |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
194 #define OPT_LOG_ALL 0x00000001 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
195 #define OPT_LOG_STRIP_HTML 0x00000002 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
196 #define OPT_LOG_BUDDY_SIGNON 0x00000004 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
197 #define OPT_LOG_BUDDY_IDLE 0x00000008 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
198 #define OPT_LOG_BUDDY_AWAY 0x00000010 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
199 #define OPT_LOG_MY_SIGNON 0x00000020 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
200 #define OPT_LOG_INDIVIDUAL 0x00000040 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
201 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
202 extern guint blist_options; |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
203 #define OPT_BLIST_APP_BUDDY_SHOW 0x00000001 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
204 #define OPT_BLIST_SAVED_WINDOWS 0x00000002 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
205 #define OPT_BLIST_NEAR_APPLET 0x00000004 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
206 #define OPT_BLIST_SHOW_GRPNUM 0x00000008 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
207 #define OPT_BLIST_SHOW_PIXMAPS 0x00000010 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
208 #define OPT_BLIST_SHOW_IDLETIME 0x00000020 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
209 #define OPT_BLIST_SHOW_BUTTON_XPM 0x00000040 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
210 #define OPT_BLIST_NO_BUTTONS 0x00000080 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
211 #define OPT_BLIST_NO_MT_GRP 0x00000100 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
212 #define OPT_BLIST_SHOW_WARN 0x00000200 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
213 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
214 extern guint convo_options; |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
215 #define OPT_CONVO_ENTER_SENDS 0x00000001 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
216 #define OPT_CONVO_SEND_LINKS 0x00000002 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
217 #define OPT_CONVO_CHECK_SPELLING 0x00000004 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
218 #define OPT_CONVO_CTL_CHARS 0x00000008 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
219 #define OPT_CONVO_CTL_SMILEYS 0x00000010 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
220 #define OPT_CONVO_ESC_CAN_CLOSE 0x00000020 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
221 #define OPT_CONVO_CTL_ENTER 0x00000040 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
222 #define OPT_CONVO_F2_TOGGLES 0x00000080 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
223 #define OPT_CONVO_SHOW_TIME 0x00000100 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
224 #define OPT_CONVO_IGNORE_COLOUR 0x00000200 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
225 #define OPT_CONVO_SHOW_SMILEY 0x00000400 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
226 #define OPT_CONVO_IGNORE_FONTS 0x00000800 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
227 #define OPT_CONVO_IGNORE_SIZES 0x00001000 |
180 | 228 |
2313
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
229 extern guint im_options; |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
230 #define OPT_IM_POPUP 0x00000001 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
231 #define OPT_IM_LOGON 0x00000002 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
232 #define OPT_IM_BUTTON_TEXT 0x00000004 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
233 #define OPT_IM_BUTTON_XPM 0x00000008 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
234 #define OPT_IM_ONE_WINDOW 0x00000010 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
235 #define OPT_IM_SIDE_TAB 0x00000020 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
236 #define OPT_IM_BR_TAB 0x00000040 |
2323
bde2481bb4db
[gaim-migrate @ 2333]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2317
diff
changeset
|
237 #define OPT_IM_HIDE_ICONS 0x00000080 |
2313
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
238 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
239 extern guint chat_options; |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
240 #define OPT_CHAT_ONE_WINDOW 0x00000001 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
241 #define OPT_CHAT_BUTTON_TEXT 0x00000002 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
242 #define OPT_CHAT_BUTTON_XPM 0x00000004 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
243 #define OPT_CHAT_LOGON 0x00000008 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
244 #define OPT_CHAT_POPUP 0x00000010 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
245 #define OPT_CHAT_SIDE_TAB 0x00000020 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
246 #define OPT_CHAT_BR_TAB 0x00000040 |
2385
bdc74764245c
[gaim-migrate @ 2398]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2382
diff
changeset
|
247 #define OPT_CHAT_TAB_COMPLETE 0x00000080 |
bdc74764245c
[gaim-migrate @ 2398]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2382
diff
changeset
|
248 #define OPT_CHAT_OLD_STYLE_TAB 0x00000100 |
754 | 249 |
2313
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
250 extern guint font_options; |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
251 #define OPT_FONT_BOLD 0x00000001 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
252 #define OPT_FONT_ITALIC 0x00000002 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
253 #define OPT_FONT_UNDERLINE 0x00000008 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
254 #define OPT_FONT_STRIKE 0x00000010 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
255 #define OPT_FONT_FACE 0x00000020 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
256 #define OPT_FONT_FGCOL 0x00000040 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
257 #define OPT_FONT_BGCOL 0x00000080 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
258 #define OPT_FONT_SIZE 0x00000100 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
259 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
260 extern guint sound_options; |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
261 #define OPT_SOUND_LOGIN 0x00000001 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
262 #define OPT_SOUND_LOGOUT 0x00000002 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
263 #define OPT_SOUND_RECV 0x00000004 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
264 #define OPT_SOUND_SEND 0x00000008 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
265 #define OPT_SOUND_FIRST_RCV 0x00000010 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
266 #define OPT_SOUND_WHEN_AWAY 0x00000020 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
267 #define OPT_SOUND_SILENT_SIGNON 0x00000040 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
268 #define OPT_SOUND_THROUGH_GNOME 0x00000080 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
269 #define OPT_SOUND_CHAT_JOIN 0x00000100 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
270 #define OPT_SOUND_CHAT_SAY 0x00000200 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
271 #define OPT_SOUND_BEEP 0x00000400 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
272 #define OPT_SOUND_CHAT_PART 0x00000800 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
273 #define OPT_SOUND_CHAT_YOU_SAY 0x00001000 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
274 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
275 #define BUDDY_ARRIVE 0 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
276 #define BUDDY_LEAVE 1 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
277 #define RECEIVE 2 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
278 #define FIRST_RECEIVE 3 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
279 #define SEND 4 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
280 #define CHAT_JOIN 5 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
281 #define CHAT_LEAVE 6 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
282 #define CHAT_YOU_SAY 7 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
283 #define CHAT_SAY 8 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
284 #define POUNCE_DEFAULT 9 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
285 #define NUM_SOUNDS 10 |
1006
0a4d0ed65e17
[gaim-migrate @ 1016]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1002
diff
changeset
|
286 extern char *sound_file[NUM_SOUNDS]; |
1 | 287 |
2313
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
288 extern guint away_options; |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
289 #define OPT_AWAY_DISCARD 0x00000001 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
290 #define OPT_AWAY_BACK_ON_IM 0x00000002 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
291 #define OPT_AWAY_TIK_HACK 0x00000004 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
292 #define OPT_AWAY_AUTO 0x00000008 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
293 #define OPT_AWAY_NO_AUTO_RESP 0x00000010 |
bd9d403fb15b
[gaim-migrate @ 2323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2309
diff
changeset
|
294 #define OPT_AWAY_QUEUE 0x00000020 |
2273
0b5c3338fa3d
[gaim-migrate @ 2283]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2248
diff
changeset
|
295 |
1 | 296 extern int report_idle; |
297 extern int web_browser; | |
2397
520257562955
[gaim-migrate @ 2410]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2393
diff
changeset
|
298 extern GSList *aim_users; |
1768 | 299 extern GSList *message_queue; |
1774 | 300 extern GSList *away_time_queue; |
1214
0baf39dc5437
[gaim-migrate @ 1224]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1213
diff
changeset
|
301 extern char sound_cmd[2048]; |
1 | 302 extern char web_command[2048]; |
303 extern struct save_pos blist_pos; | |
1813
998a6a032874
[gaim-migrate @ 1823]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1805
diff
changeset
|
304 extern struct window_size conv_size, buddy_chat_size; |
1 | 305 |
2435
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
306 /* Functions in buddy.c */ |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
307 extern void do_quit(); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
308 extern void signoff(struct gaim_connection *); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
309 extern void do_pounce(struct gaim_connection *, char *, int); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
310 |
1 | 311 /* Functions in buddy_chat.c */ |
2435
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
312 extern void show_new_buddy_chat(struct conversation *); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
313 extern void chat_set_topic(struct conversation*, char*, char*); |
472
6a92cd7322cc
[gaim-migrate @ 482]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
436
diff
changeset
|
314 extern void add_chat_buddy(struct conversation *, char *); |
1831
1b61db419774
[gaim-migrate @ 1841]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1819
diff
changeset
|
315 extern void rename_chat_buddy(struct conversation *, char *, char *); |
472
6a92cd7322cc
[gaim-migrate @ 482]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
436
diff
changeset
|
316 extern void remove_chat_buddy(struct conversation *, char *); |
2435
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
317 |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
318 /* Functions in conversation.c */ |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
319 extern void write_to_conv(struct conversation *, char *, int, char *, time_t); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
320 extern struct conversation *find_conversation(char *); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
321 |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
322 /* Functions in dialogs.c */ |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
323 extern void g_show_info_text(char *, ...); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
324 extern GtkWidget *do_error_dialog(char *, char *); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
325 extern void show_change_passwd(struct gaim_connection *); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
326 extern void show_set_dir(struct gaim_connection *); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
327 extern void show_find_email(struct gaim_connection *); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
328 extern void show_find_info(struct gaim_connection *); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
329 extern void show_set_info(struct gaim_connection *); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
330 |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
331 /* Functions in gaimrc.c */ |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
332 extern gint sort_awaymsg_list(gconstpointer, gconstpointer); |
1 | 333 |
334 /* Functions in html.c */ | |
1881
a02584b98823
[gaim-migrate @ 1891]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1874
diff
changeset
|
335 extern void grab_url(char *, void (*callback)(gpointer, char *), gpointer); |
1 | 336 extern gchar *strip_html(gchar *); |
337 | |
1026 | 338 /* Functions in idle.c */ |
2381
427ccd7dfdd2
[gaim-migrate @ 2394]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2380
diff
changeset
|
339 extern gint check_idle(gpointer); |
1026 | 340 |
2435
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
341 /* Functions in prefs.c */ |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
342 extern void debug_printf(char * fmt, ...); |
1 | 343 |
344 /* Functions in server.c */ | |
345 /* input to serv */ | |
980
82c5865f7cfe
[gaim-migrate @ 990]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
978
diff
changeset
|
346 extern void serv_login(struct aim_user *); |
960
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
347 extern void serv_close(struct gaim_connection *); |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
348 extern void serv_touch_idle(struct gaim_connection *); |
2123
56c4382f2909
[gaim-migrate @ 2133]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2111
diff
changeset
|
349 extern int serv_send_im(struct gaim_connection *, char *, char *, int); |
1032
643a4d81c18a
[gaim-migrate @ 1042]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1030
diff
changeset
|
350 extern void serv_get_info(struct gaim_connection *, char *); |
643a4d81c18a
[gaim-migrate @ 1042]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1030
diff
changeset
|
351 extern void serv_get_dir(struct gaim_connection *, char *); |
960
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
352 extern void serv_set_idle(struct gaim_connection *, int); |
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
353 extern void serv_set_info(struct gaim_connection *, char *); |
1401
bf041349b11e
[gaim-migrate @ 1411]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1391
diff
changeset
|
354 extern void serv_set_away(struct gaim_connection *, char *, char *); |
1456
6650776468b3
[gaim-migrate @ 1466]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1455
diff
changeset
|
355 extern void serv_set_away_all(char *); |
978
563c409e26a1
[gaim-migrate @ 988]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
976
diff
changeset
|
356 extern void serv_change_passwd(struct gaim_connection *, char *, char *); |
1030
38452403563b
[gaim-migrate @ 1040]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1026
diff
changeset
|
357 extern void serv_add_buddy(struct gaim_connection *, char *); |
38452403563b
[gaim-migrate @ 1040]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1026
diff
changeset
|
358 extern void serv_add_buddies(struct gaim_connection *, GList *); |
38452403563b
[gaim-migrate @ 1040]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1026
diff
changeset
|
359 extern void serv_remove_buddy(struct gaim_connection *, char *); |
2334
b53cd5b63a99
[gaim-migrate @ 2347]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2329
diff
changeset
|
360 extern void serv_remove_buddies(struct gaim_connection *, GList *); |
1030
38452403563b
[gaim-migrate @ 1040]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1026
diff
changeset
|
361 extern void serv_add_permit(struct gaim_connection *, char *); |
38452403563b
[gaim-migrate @ 1040]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1026
diff
changeset
|
362 extern void serv_add_deny(struct gaim_connection *, char *); |
38452403563b
[gaim-migrate @ 1040]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1026
diff
changeset
|
363 extern void serv_rem_permit(struct gaim_connection *, char *); |
38452403563b
[gaim-migrate @ 1040]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1026
diff
changeset
|
364 extern void serv_rem_deny(struct gaim_connection *, char *); |
38452403563b
[gaim-migrate @ 1040]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1026
diff
changeset
|
365 extern void serv_set_permit_deny(struct gaim_connection *); |
976
2586b2a3725e
[gaim-migrate @ 986]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
975
diff
changeset
|
366 extern void serv_warn(struct gaim_connection *, char *, int); |
1102
d7944415b1cc
[gaim-migrate @ 1112]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1100
diff
changeset
|
367 extern void serv_set_dir(struct gaim_connection *, char *, char *, char *, char *, char *, char *, char *, int); |
d7944415b1cc
[gaim-migrate @ 1112]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1100
diff
changeset
|
368 extern void serv_dir_search(struct gaim_connection *, char *, char *, char *, char *, char *, char *, char *, char *); |
2205
cff4fbe01c7b
[gaim-migrate @ 2215]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2199
diff
changeset
|
369 extern void serv_join_chat(struct gaim_connection *, GList *); |
964
2cd7b73e2c9a
[gaim-migrate @ 974]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
960
diff
changeset
|
370 extern void serv_chat_invite(struct gaim_connection *, int, char *, char *); |
2cd7b73e2c9a
[gaim-migrate @ 974]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
960
diff
changeset
|
371 extern void serv_chat_leave(struct gaim_connection *, int); |
2cd7b73e2c9a
[gaim-migrate @ 974]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
960
diff
changeset
|
372 extern void serv_chat_whisper(struct gaim_connection *, int, char *, char *); |
2435
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
373 extern int serv_chat_send(struct gaim_connection *, int, char *); |
1 | 374 |
2435
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
375 /* Functions in util.c */ |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
376 extern char *normalize(const char *); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
377 extern char *tobase64(const char *); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
378 extern void frombase64(const char *, char **, int *); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
379 extern gint clean_pid(gpointer); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
380 extern char *date(); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
381 extern gint linkify_text(char *); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
382 extern FILE *open_log_file (char *); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
383 extern char *sec_to_text(guint); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
384 extern struct aim_user *find_user(const char *, int); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
385 extern char *full_date(); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
386 extern void check_gaim_versions(); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
387 extern char *away_subs(char *, char *); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
388 extern char *stylize(gchar *, int); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
389 extern void show_usage (int, char *); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
390 extern int do_auto_login (char *); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
391 extern char *gaim_user_dir(); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
392 extern void strncpy_nohtml(gchar *, const gchar *, size_t); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
393 extern void strncpy_withhtml(gchar *, const gchar *, size_t); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
394 extern void away_on_login(char *); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
395 extern void system_log(enum log_event, struct gaim_connection *, struct buddy *, int); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
396 extern unsigned char *utf8_to_str(unsigned char *); |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
397 extern char *str_to_utf8(unsigned char *); |
960
fa681641643d
[gaim-migrate @ 970]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
940
diff
changeset
|
398 |
2417
5473c8c5378d
[gaim-migrate @ 2430]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2416
diff
changeset
|
399 #endif /* _GAIM_H_ */ |