Mercurial > pidgin
annotate src/gaim.h @ 334:0fa651368776
[gaim-migrate @ 344]
Uh huh
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sun, 04 Jun 2000 00:42:45 +0000 |
parents | f6406aeb2691 |
children | f5b199e20d12 |
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 | |
94
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
22 #include <gtk/gtk.h> |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
23 #include <time.h> |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
24 #include <stdio.h> |
1 | 25 #ifdef USE_APPLET |
26 #include <applet-widget.h> | |
27 #endif /* USE_APPLET */ | |
28 | |
29 | |
30 /* | |
31 1. gethostbyname(); | |
32 2. connect(); | |
33 3. toc_signon(); | |
34 4. toc_wait_signon(); | |
35 5. toc_wait_config(); | |
36 6. actually done.. | |
37 */ | |
38 | |
39 #define STATE_OFFLINE 0 | |
40 #define STATE_FLAPON 1 | |
41 #define STATE_SIGNON_REQUEST 2 | |
42 #define STATE_SIGNON_ACK 3 | |
43 #define STATE_CONFIG 4 | |
44 #define STATE_ONLINE 5 | |
45 | |
46 #define BROWSER_NETSCAPE 0 | |
47 #define BROWSER_KFM 1 | |
48 #define BROWSER_MANUAL 2 | |
49 #define BROWSER_INTERNAL 3 | |
50 | |
51 #define UC_AOL 1 | |
52 #define UC_ADMIN 2 | |
53 #define UC_UNCONFIRMED 4 | |
54 #define UC_NORMAL 8 | |
55 #define UC_UNAVAILABLE 16 | |
56 | |
57 #define IDLE_NONE 0 | |
58 #define IDLE_GAIM 1 | |
59 #define IDLE_SYSTEM 2 | |
60 | |
61 #define WFLAG_SEND 1 | |
62 #define WFLAG_RECV 2 | |
63 #define WFLAG_AUTO 4 | |
64 #define WFLAG_WHISPER 8 | |
65 #define WFLAG_FILERECV 16 | |
66 #define WFLAG_SYSTEM 32 | |
67 | |
68 #define AUTO_RESPONSE "<AUTO-REPLY> : " | |
69 | |
90
f5b305c0d974
[gaim-migrate @ 100]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
82
diff
changeset
|
70 #define PLUGIN_DIR ".gaim/plugins/" |
1 | 71 |
72 #define REG_EMAIL_ADDR "gaiminfo@blueridge.net" | |
73 #define REG_SRVR "blueridge.net" | |
74 #define REG_PORT 25 | |
75 | |
76 extern struct prefs_data *pd; | |
77 extern struct debug_window *dw; | |
78 | |
79 struct aim_user { | |
80 char username[64]; | |
81 char password[32]; | |
82 char user_info[2048]; | |
83 }; | |
84 | |
85 struct save_pos { | |
86 int x; | |
87 int y; | |
88 int width; | |
89 int height; | |
90 int xoff; | |
91 int yoff; | |
92 }; | |
93 | |
94 struct prefs_data { | |
95 GtkWidget *window; | |
96 GtkWidget *away_list; | |
97 struct away_message *cur_message; | |
98 GtkWidget *away_text; | |
99 char *edited_message; | |
100 GtkWidget *browser_entry; | |
101 GtkWidget *nwbutton; | |
102 GtkWidget *aim_host_entry; | |
103 GtkWidget *aim_port_entry; | |
104 GtkWidget *login_host_entry; | |
105 GtkWidget *login_port_entry; | |
106 GtkWidget *http_proxy_host_entry; | |
107 GtkWidget *http_proxy_port_entry; | |
253
5b28ef2b550e
[gaim-migrate @ 263]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
249
diff
changeset
|
108 GtkWidget *socks_proxy_host_entry; |
5b28ef2b550e
[gaim-migrate @ 263]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
249
diff
changeset
|
109 GtkWidget *socks_proxy_port_entry; |
1 | 110 |
111 }; | |
112 | |
113 | |
114 struct option_set { | |
115 int *options; | |
116 int option; | |
117 }; | |
118 | |
119 struct g_url { | |
120 char address[255]; | |
121 int port; | |
122 char page[255]; | |
123 }; | |
124 | |
90
f5b305c0d974
[gaim-migrate @ 100]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
82
diff
changeset
|
125 #ifdef GAIM_PLUGINS |
1 | 126 struct gaim_plugin { |
90
f5b305c0d974
[gaim-migrate @ 100]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
82
diff
changeset
|
127 char *name; |
f5b305c0d974
[gaim-migrate @ 100]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
82
diff
changeset
|
128 char *filename; |
f5b305c0d974
[gaim-migrate @ 100]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
82
diff
changeset
|
129 char *description; |
f5b305c0d974
[gaim-migrate @ 100]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
82
diff
changeset
|
130 void *handle; |
1 | 131 }; |
94
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
132 |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
133 enum gaim_event { |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
134 event_signon = 0, |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
135 event_signoff, |
133
e277d5f0c1dd
[gaim-migrate @ 143]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
115
diff
changeset
|
136 event_away, |
136
4e91b92f91a7
[gaim-migrate @ 146]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
133
diff
changeset
|
137 event_back, |
94
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
138 event_im_recv, |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
139 event_im_send, |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
140 event_buddy_signon, |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
141 event_buddy_signoff, |
133
e277d5f0c1dd
[gaim-migrate @ 143]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
115
diff
changeset
|
142 event_buddy_away, |
136
4e91b92f91a7
[gaim-migrate @ 146]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
133
diff
changeset
|
143 event_buddy_back, |
115
890cfb7d8fdb
[gaim-migrate @ 125]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
109
diff
changeset
|
144 event_blist_update, |
94
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
145 /* any others? it's easy to add... */ |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
146 }; |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
147 |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
148 struct gaim_callback { |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
149 void *handle; |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
150 enum gaim_event event; |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
151 void *function; |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
152 void *data; |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
153 }; |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
154 |
142
fbabd28795d2
[gaim-migrate @ 152]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
139
diff
changeset
|
155 extern GList *plugins; |
94
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
156 extern GList *callbacks; |
90
f5b305c0d974
[gaim-migrate @ 100]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
82
diff
changeset
|
157 #endif |
1 | 158 |
159 struct buddy { | |
160 char name[80]; | |
161 GtkWidget *item; | |
162 GtkWidget *label; | |
163 GtkWidget *pix; | |
164 GtkWidget *idletime; | |
165 int present; | |
166 int log_timer; | |
167 int evil; | |
168 time_t signon; | |
169 time_t idle; | |
170 int uc; | |
171 }; | |
172 | |
173 struct log_conversation { | |
174 char name[80]; | |
175 char filename[512]; | |
176 struct log_conversation *next; | |
177 }; | |
178 | |
179 struct buddy_pounce { | |
180 char name[80]; | |
181 char message[2048]; | |
182 int popup; | |
183 int sendim; | |
184 }; | |
185 | |
186 struct away_message { | |
187 char name[80]; | |
188 char message[2048]; | |
189 }; | |
190 | |
191 struct group { | |
192 GtkWidget *item; | |
193 GtkWidget *label; | |
194 GtkWidget *tree; | |
195 char name[80]; | |
196 GList *members; | |
197 }; | |
198 | |
199 struct buddy_chat { | |
200 GtkWidget *window; | |
201 GtkWidget *text; | |
202 GtkWidget *list; | |
203 GtkWidget *entry; | |
204 GList *in_room; | |
205 GList *ignored; | |
206 int makesound; | |
207 int id; | |
208 char name[80]; | |
209 }; | |
210 | |
211 struct chat_room { | |
212 char name[128]; | |
213 int exchange; | |
214 }; | |
215 | |
313
f6406aeb2691
[gaim-migrate @ 323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
312
diff
changeset
|
216 #ifdef USE_OSCAR |
312
3069be4c291e
[gaim-migrate @ 322]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
311
diff
changeset
|
217 struct chat_connection { |
3069be4c291e
[gaim-migrate @ 322]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
311
diff
changeset
|
218 char *name; |
3069be4c291e
[gaim-migrate @ 322]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
311
diff
changeset
|
219 int fd; /* this is redundant since we have the conn below */ |
3069be4c291e
[gaim-migrate @ 322]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
311
diff
changeset
|
220 struct aim_conn_t *conn; |
3069be4c291e
[gaim-migrate @ 322]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
311
diff
changeset
|
221 int inpa; |
3069be4c291e
[gaim-migrate @ 322]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
311
diff
changeset
|
222 }; |
313
f6406aeb2691
[gaim-migrate @ 323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
312
diff
changeset
|
223 #endif |
312
3069be4c291e
[gaim-migrate @ 322]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
311
diff
changeset
|
224 |
1 | 225 struct debug_window { |
226 GtkWidget *window; | |
227 GtkWidget *entry; | |
228 }; | |
229 | |
230 struct conversation { | |
311
0a8b4edc4732
[gaim-migrate @ 321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
308
diff
changeset
|
231 GtkWidget *window; |
0a8b4edc4732
[gaim-migrate @ 321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
308
diff
changeset
|
232 char name[80]; |
1 | 233 GtkWidget *text; |
311
0a8b4edc4732
[gaim-migrate @ 321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
308
diff
changeset
|
234 GtkWidget *entry; |
1 | 235 GtkWidget *italic; |
311
0a8b4edc4732
[gaim-migrate @ 321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
308
diff
changeset
|
236 GtkWidget *bold; |
1 | 237 GtkWidget *underline; |
238 GtkWidget *palette; | |
239 GtkWidget *link; | |
234
985635758c33
[gaim-migrate @ 244]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
230
diff
changeset
|
240 GtkWidget *add_button; |
985635758c33
[gaim-migrate @ 244]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
230
diff
changeset
|
241 GtkWidget *log_button; |
1 | 242 GtkWidget *strike; |
234
985635758c33
[gaim-migrate @ 244]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
230
diff
changeset
|
243 GtkWidget *font; |
311
0a8b4edc4732
[gaim-migrate @ 321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
308
diff
changeset
|
244 GtkWidget *color_dialog; |
0a8b4edc4732
[gaim-migrate @ 321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
308
diff
changeset
|
245 GtkWidget *font_dialog; |
1 | 246 |
308
e5fa88351dc8
[gaim-migrate @ 318]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
296
diff
changeset
|
247 char current_fontface[64]; |
e5fa88351dc8
[gaim-migrate @ 318]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
296
diff
changeset
|
248 char current_fontname[64]; |
234
985635758c33
[gaim-migrate @ 244]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
230
diff
changeset
|
249 int makesound; |
985635758c33
[gaim-migrate @ 244]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
230
diff
changeset
|
250 time_t sent_away; |
1 | 251 }; |
252 | |
198
73e9a0bfff62
[gaim-migrate @ 208]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
197
diff
changeset
|
253 struct file_header { |
210
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
254 char magic[4]; /* 0 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
255 short hdrlen; /* 4 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
256 short hdrtype; /* 6 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
257 char bcookie[8]; /* 8 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
258 short encrypt; /* 16 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
259 short compress; /* 18 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
260 short totfiles; /* 20 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
261 short filesleft; /* 22 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
262 short totparts; /* 24 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
263 short partsleft; /* 26 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
264 long totsize; /* 28 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
265 long size; /* 32 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
266 long modtime; /* 36 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
267 long checksum; /* 40 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
268 long rfrcsum; /* 44 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
269 long rfsize; /* 48 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
270 long cretime; /* 52 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
271 long rfcsum; /* 56 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
272 long nrecvd; /* 60 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
273 long recvcsum; /* 64 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
274 char idstring[32]; /* 68 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
275 char flags; /* 100 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
276 char lnameoffset; /* 101 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
277 char lsizeoffset; /* 102 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
278 char dummy[69]; /* 103 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
279 char macfileinfo[16]; /* 172 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
280 short nencode; /* 188 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
281 short nlanguage; /* 190 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
282 char name[64]; /* 192 */ |
ec0686b3b03f
[gaim-migrate @ 220]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
209
diff
changeset
|
283 /* 256 */ |
198
73e9a0bfff62
[gaim-migrate @ 208]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
197
diff
changeset
|
284 }; |
73e9a0bfff62
[gaim-migrate @ 208]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
197
diff
changeset
|
285 |
1 | 286 struct file_transfer { |
287 GtkWidget *window; | |
288 char *cookie; | |
289 char *ip; | |
290 char *message; | |
291 int port; | |
292 int size; | |
293 int accepted; | |
294 char *filename; | |
295 char *lfilename; | |
296 char *user; | |
297 FILE *f; | |
298 int fd; | |
198
73e9a0bfff62
[gaim-migrate @ 208]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
197
diff
changeset
|
299 char UID[2048]; |
1 | 300 }; |
301 | |
302 struct sflap_hdr { | |
303 unsigned char ast; | |
304 unsigned char type; | |
305 unsigned short seqno; | |
306 unsigned short len; | |
307 }; | |
308 | |
309 struct signon { | |
310 unsigned int ver; | |
311 unsigned short tag; | |
312 unsigned short namelen; | |
313 char username[80]; | |
314 }; | |
315 | |
316 #define LOGIN_STEPS 5 | |
317 | |
318 #define CONVERSATION_TITLE "Gaim - Conversation with %s" | |
319 #define LOG_CONVERSATION_TITLE "Gaim - Conversation with %s (logged)" | |
320 | |
196
3042e11c1902
[gaim-migrate @ 206]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
180
diff
changeset
|
321 #define VOICE_UID "09461341-4C7F-11D1-8222-444553540000" |
197
24f0fef56a73
[gaim-migrate @ 207]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
196
diff
changeset
|
322 #define FILE_SEND_UID "09461343-4C7F-11D1-8222-444553540000" |
196
3042e11c1902
[gaim-migrate @ 206]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
180
diff
changeset
|
323 #define IMAGE_UID "09461345-4C7F-11D1-8222-444553540000" |
3042e11c1902
[gaim-migrate @ 206]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
180
diff
changeset
|
324 #define B_ICON_UID "09461346-4C7F-11D1-8222-444553540000" |
197
24f0fef56a73
[gaim-migrate @ 207]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
196
diff
changeset
|
325 #define FILE_GET_UID "09461348-4C7F-11D1-8222-444553540000" |
1 | 326 |
327 #define LAGOMETER_STR "123CHECKLAG456" | |
328 | |
329 #define AOL_SRCHSTR "/community/aimcheck.adp/url=" | |
330 | |
331 /* These should all be runtime selectable */ | |
332 | |
333 #define TOC_HOST "toc.oscar.aol.com" | |
334 #define TOC_PORT 9898 | |
335 #define AUTH_HOST "login.oscar.aol.com" | |
336 #define AUTH_PORT 5190 | |
337 #define LANGUAGE "english" | |
338 | |
339 #define MSG_LEN 2048 | |
340 /* The above should normally be the same as BUF_LEN, | |
341 * but just so we're explictly asking for the max message | |
342 * length. */ | |
343 #define BUF_LEN MSG_LEN | |
344 #define BUF_LONG BUF_LEN * 2 | |
345 | |
346 | |
347 #define TYPE_SIGNON 1 | |
348 #define TYPE_DATA 2 | |
349 #define TYPE_ERROR 3 | |
350 #define TYPE_SIGNOFF 4 | |
351 #define TYPE_KEEPALIVE 5 | |
352 | |
313
f6406aeb2691
[gaim-migrate @ 323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
312
diff
changeset
|
353 #define REVISION "gaim:$Revision: 323 $" |
1 | 354 #define FLAPON "FLAPON\r\n\r\n" |
355 | |
356 #define ROAST "Tic/Toc" | |
357 | |
358 | |
359 #define BUDDY_ARRIVE 0 | |
360 #define BUDDY_LEAVE 1 | |
361 #define SEND 2 | |
362 #define RECEIVE 3 | |
363 #define FIRST_RECEIVE 4 | |
364 #define AWAY 5 | |
365 | |
366 | |
367 #ifdef USE_APPLET | |
10 | 368 extern gboolean buddy_created; |
1 | 369 extern GtkWidget *applet; |
370 #endif /* USE_APPLET */ | |
371 | |
372 /* Globals in oscar.c */ | |
237
6ced2f1c8b24
[gaim-migrate @ 247]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
234
diff
changeset
|
373 #ifdef USE_OSCAR |
6ced2f1c8b24
[gaim-migrate @ 247]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
234
diff
changeset
|
374 extern struct aim_session_t *gaim_sess; |
6ced2f1c8b24
[gaim-migrate @ 247]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
234
diff
changeset
|
375 extern struct aim_conn_t *gaim_conn; |
312
3069be4c291e
[gaim-migrate @ 322]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
311
diff
changeset
|
376 extern GList *oscar_chats; |
237
6ced2f1c8b24
[gaim-migrate @ 247]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
234
diff
changeset
|
377 #endif |
1 | 378 |
379 /* Globals in server.c */ | |
380 extern int correction_time; | |
381 | |
230
83dd297aa363
[gaim-migrate @ 240]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
210
diff
changeset
|
382 /* Globals in dialog.c */ |
83dd297aa363
[gaim-migrate @ 240]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
210
diff
changeset
|
383 extern char *fontface; |
83dd297aa363
[gaim-migrate @ 240]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
210
diff
changeset
|
384 extern char *fontname; |
83dd297aa363
[gaim-migrate @ 240]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
210
diff
changeset
|
385 |
1 | 386 /* Globals in network.c */ |
387 | |
388 /* Globals in toc.c */ | |
389 | |
390 /* Globals in aim.c */ | |
391 extern GList *permit; /* The list of people permitted */ | |
392 extern GList *deny; /* The list of people denied */ | |
393 extern GList *log_conversations; | |
394 extern GList *buddy_pounces; | |
395 extern GList *away_messages; | |
396 extern GList *groups; | |
397 extern GList *buddy_chats; | |
398 extern GList *conversations; | |
399 extern GList *chat_rooms; | |
400 extern GtkWidget *mainwindow; | |
401 extern char *quad_addr; | |
402 extern char toc_addy[16]; | |
403 | |
404 /* Globals in away.c */ | |
405 extern struct away_message *awaymessage; | |
406 extern GtkWidget *awaymenu; | |
407 | |
408 /* Globals in buddy.c */ | |
409 extern int permdeny; | |
410 extern GtkWidget *buddies; | |
411 extern GtkWidget *bpmenu; | |
412 extern GtkWidget *blist; | |
413 | |
414 extern int general_options; | |
415 #define OPT_GEN_ENTER_SENDS 0x00000001 | |
416 #define OPT_GEN_AUTO_LOGIN 0x00000002 | |
417 #define OPT_GEN_LOG_ALL 0x00000004 | |
418 #define OPT_GEN_STRIP_HTML 0x00000008 | |
419 #define OPT_GEN_APP_BUDDY_SHOW 0x00000010 | |
420 #define OPT_GEN_POPUP_WINDOWS 0x00000020 | |
421 #define OPT_GEN_SEND_LINKS 0x00000040 | |
422 #define OPT_GEN_SHOW_LAGMETER 0x00000080 | |
423 #define OPT_GEN_DEBUG 0x00000100 | |
424 #define OPT_GEN_REMEMBER_PASS 0x00000200 | |
425 #define OPT_GEN_REGISTERED 0x00000400 | |
426 #define OPT_GEN_BROWSER_POPUP 0x00000800 | |
427 #define OPT_GEN_SAVED_WINDOWS 0x00001000 | |
428 #define OPT_GEN_DISCARD_WHEN_AWAY 0x00002000 | |
180 | 429 #define OPT_GEN_CHECK_VERSIONS 0x00004000 |
206 | 430 #define OPT_GEN_CHECK_SPELLING 0x00008000 |
180 | 431 |
1 | 432 extern int display_options; |
433 #define OPT_DISP_SHOW_TIME 0x00000001 | |
434 #define OPT_DISP_SHOW_GRPNUM 0x00000002 | |
435 #define OPT_DISP_SHOW_PIXMAPS 0x00000004 | |
436 #define OPT_DISP_SHOW_IDLETIME 0x00000008 | |
437 #define OPT_DISP_SHOW_BUTTON_XPM 0x00000010 | |
438 #define OPT_DISP_IGNORE_COLOUR 0x00000020 | |
439 #define OPT_DISP_SHOW_LOGON 0x00000040 | |
82 | 440 #define OPT_DISP_DEVIL_PIXMAPS 0x00000080 |
1 | 441 |
442 extern int sound_options; | |
443 #define OPT_SOUND_LOGIN 0x00000001 | |
444 #define OPT_SOUND_LOGOUT 0x00000002 | |
445 #define OPT_SOUND_RECV 0x00000004 | |
446 #define OPT_SOUND_SEND 0x00000008 | |
447 #define OPT_SOUND_FIRST_RCV 0x00000010 | |
448 #define OPT_SOUND_WHEN_AWAY 0x00000020 | |
109
45bcfa3b584c
[gaim-migrate @ 119]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
107
diff
changeset
|
449 #define OPT_SOUND_SILENT_SIGNON 0x00000040 |
1 | 450 |
451 | |
452 extern int font_options; | |
453 #define OPT_FONT_BOLD 0x00000001 | |
454 #define OPT_FONT_ITALIC 0x00000002 | |
455 #define OPT_FONT_UNDERLINE 0x00000008 | |
456 #define OPT_FONT_STRIKE 0x00000010 | |
230
83dd297aa363
[gaim-migrate @ 240]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
210
diff
changeset
|
457 #define OPT_FONT_FACE 0x00000020 |
1 | 458 |
459 #define DEFAULT_INFO "Visit the GAIM website at <A HREF=\"http://www.marko.net/gaim\">http://www.marko.net/gaim</A>." | |
460 | |
461 extern int report_idle; | |
462 extern int web_browser; | |
463 extern struct aim_user *current_user; | |
464 extern GList *aim_users; | |
465 extern char web_command[2048]; | |
466 extern char debug_buff[BUF_LONG]; | |
467 extern char aim_host[512]; | |
468 extern int aim_port; | |
469 extern char login_host[512]; | |
470 extern int login_port; | |
471 extern struct save_pos blist_pos; | |
180 | 472 extern char latest_ver[25]; |
1 | 473 |
474 /* Functions in about.c */ | |
475 extern void show_about(GtkWidget *, void *); | |
476 | |
477 | |
478 /* Functions in buddy_chat.c */ | |
479 extern void join_chat(); | |
480 extern void chat_write(struct buddy_chat *, char *, int, char *); | |
481 extern void add_chat_buddy(struct buddy_chat *, char *); | |
482 extern void remove_chat_buddy(struct buddy_chat *, char *); | |
483 extern void show_new_buddy_chat(struct buddy_chat *); | |
484 extern void setup_buddy_chats(); | |
485 | |
486 | |
487 | |
488 /* Functions in html.c */ | |
489 extern char *fix_url(char *); | |
490 extern struct g_url parse_url(char *); | |
491 extern char *grab_url(char *); | |
492 extern gchar *strip_html(gchar *); | |
493 | |
494 /* Functions in util.c */ | |
495 extern char *normalize(const char *); | |
496 extern int escape_text(char *); | |
26 | 497 extern char *escape_text2(char *); |
1 | 498 extern int escape_message(char *msg); |
499 extern char *frombase64(char *); | |
500 extern gint clean_pid(void *); | |
501 extern char *date(); | |
502 extern gint linkify_text(char *); | |
503 extern void aol_icon(GdkWindow *); | |
504 extern int query_state(); | |
505 extern void set_state(int); | |
506 extern FILE *open_log_file (struct conversation *c); | |
507 extern char *sec_to_text(int); | |
508 extern struct aim_user *find_user(const char *); | |
70 | 509 extern char *full_date(); |
180 | 510 extern void check_gaim_versions(); |
209 | 511 extern void spell_checker(GtkWidget *); |
1 | 512 |
513 /* Functions in server.c */ | |
514 /* input to serv */ | |
515 extern int serv_login(char *, char *); | |
516 extern void serv_close(); | |
517 extern void serv_touch_idle(); | |
518 extern void serv_finish_login(); | |
519 extern void serv_send_im(char *, char *, int); | |
520 extern void serv_get_info(char *); | |
249
810c595258c8
[gaim-migrate @ 259]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
247
diff
changeset
|
521 extern void serv_get_away_msg(char *); |
1 | 522 extern void serv_get_dir(char *); |
523 extern void serv_set_idle(int); | |
524 extern void serv_set_info(char *); | |
525 extern void serv_set_away(char *); | |
237
6ced2f1c8b24
[gaim-migrate @ 247]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
234
diff
changeset
|
526 extern void serv_change_passwd(char *, char *); |
1 | 527 extern void serv_add_buddy(char *); |
528 extern void serv_add_buddies(GList *); | |
529 extern void serv_remove_buddy(char *); | |
530 extern void serv_add_permit(char *); | |
531 extern void serv_add_deny(char *); | |
532 extern void serv_set_permit_deny(); | |
237
6ced2f1c8b24
[gaim-migrate @ 247]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
234
diff
changeset
|
533 extern void serv_build_config(char *, int); |
1 | 534 extern void serv_save_config(); |
535 extern void serv_warn(char *, int); | |
536 extern void serv_set_dir(char *, char *, char *, char *, char *, char *, char *, int); | |
537 extern void serv_dir_search(char *, char *, char *, char *, char *, char *, char *, char *); | |
538 extern void serv_accept_chat(int); | |
539 extern void serv_join_chat(int, char *); | |
540 extern void serv_chat_invite(int, char *, char *); | |
541 extern void serv_chat_leave(int); | |
542 extern void serv_chat_whisper(int, char *, char *); | |
543 extern void serv_chat_send(int, char *); | |
544 | |
545 /* output from serv */ | |
546 extern void serv_got_update(char *, int, int, time_t, time_t, int); | |
547 extern void serv_got_im(char *, char *, int); | |
548 extern void serv_got_eviled(char *, int); | |
549 extern void serv_got_chat_invite(char *, int, char *, char *); | |
550 extern void serv_got_joined_chat(int, char *); | |
551 extern void serv_got_chat_left(int); | |
552 extern void serv_got_chat_in(int, char *, int, char *); | |
553 | |
554 /* Functions in conversation.c */ | |
555 extern void write_to_conv(struct conversation *, char *, int); | |
556 extern void show_conv(struct conversation *); | |
557 extern struct conversation *new_conversation(char *); | |
558 extern struct conversation *find_conversation(char *); | |
559 extern void delete_conversation(struct conversation *); | |
560 extern void surround(GtkWidget *, char *, char *); | |
561 extern int is_logging(char *); | |
562 extern void set_state_lock(int ); | |
563 extern void rm_log(struct log_conversation *a); | |
564 extern struct log_conversation *find_log_info(char *name); | |
565 extern void remove_tags(GtkWidget *entry, char *tag); | |
566 extern void update_log_convs(); | |
567 extern void update_transparency(); | |
568 extern void update_font_buttons(); | |
234
985635758c33
[gaim-migrate @ 244]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
230
diff
changeset
|
569 extern void toggle_sensitive(GtkWidget *widget, GtkWidget *to_toggle); |
1 | 570 |
571 /* Functions in network.c */ | |
572 extern unsigned int *get_address(char *); | |
573 extern int connect_address(unsigned int, unsigned short); | |
574 | |
575 /* Functions in oscar.c */ | |
313
f6406aeb2691
[gaim-migrate @ 323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
312
diff
changeset
|
576 #ifdef USE_OSCAR |
1 | 577 extern int oscar_login(char *, char *); |
242
14fc16f579c8
[gaim-migrate @ 252]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
237
diff
changeset
|
578 extern void oscar_close(); |
312
3069be4c291e
[gaim-migrate @ 322]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
311
diff
changeset
|
579 extern struct chat_connection *find_oscar_chat(char *name); |
313
f6406aeb2691
[gaim-migrate @ 323]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
312
diff
changeset
|
580 #endif /* not #else because we still use some toc functions */ |
1 | 581 |
582 /* Functions in toc.c */ | |
583 extern void toc_close(); | |
584 extern int toc_login(char *, char *); | |
585 extern int toc_wait_signon(void); | |
586 extern char *toc_wait_config(void); | |
587 extern int sflap_send(char *, int , int ); | |
296
a88b889b692b
[gaim-migrate @ 306]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
253
diff
changeset
|
588 extern void parse_toc_buddy_list(char *, int); |
1 | 589 |
590 | |
591 /* Functions in buddy.c */ | |
592 extern void destroy_buddy(); | |
593 extern void update_num_groups(); | |
594 extern void update_show_idlepix(); | |
595 extern void update_button_pix(); | |
596 extern void update_all_buddies(); | |
597 extern void show_buddy_list(); | |
598 extern void refresh_buddy_window(); | |
599 extern void toc_build_config(char *, int len); | |
600 extern void signoff(); | |
601 extern void do_im_back(); | |
602 extern void set_buddy(struct buddy *); | |
603 extern struct person *add_person(char *, char *); | |
604 extern struct group *add_group(char *); | |
605 extern void add_category(char *); | |
606 extern void build_edit_tree(); | |
607 extern void build_permit_tree(); | |
608 extern void remove_person(struct group *, struct buddy *); | |
609 extern void remove_category(struct group *); | |
610 extern void do_pounce(char *); | |
611 extern void do_bp_menu(); | |
612 extern struct buddy *find_buddy(char *); | |
613 extern struct group *find_group(char *); | |
614 extern struct group *find_group_by_buddy(char *); | |
615 extern void remove_buddy(struct group *, struct buddy *); | |
616 extern struct buddy *add_buddy(char *, char *); | |
617 extern void remove_group(struct group *); | |
618 extern void update_lagometer(int); | |
619 | |
620 /* Functions in away.c */ | |
621 extern void rem_away_mess(GtkWidget *, struct away_message *); | |
622 extern void do_away_message(GtkWidget *, struct away_message *); | |
623 extern void do_away_menu(); | |
624 extern void away_list_unclicked(GtkWidget *, struct away_message *); | |
625 extern void away_list_clicked(GtkWidget *, struct away_message *); | |
626 | |
627 /* Functions in aim.c */ | |
628 extern void hide_login_progress(char *); | |
629 extern void set_login_progress(int, char *); | |
630 extern void show_login(); | |
631 #ifdef USE_APPLET | |
107
55faf2e3a134
[gaim-migrate @ 117]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
94
diff
changeset
|
632 extern void createOnlinePopup(); |
1 | 633 extern void applet_show_login(AppletWidget *, gpointer); |
634 extern void gnome_buddy_show(); | |
635 extern void gnome_buddy_hide(); | |
636 extern void gnome_buddy_set_pos( gint x, gint y ); | |
637 GtkRequisition gnome_buddy_get_dimentions(); | |
638 #endif | |
639 | |
640 | |
641 /* Functions in sound.c */ | |
642 extern void play_sound(int); | |
643 | |
644 | |
645 #ifdef GAIM_PLUGINS | |
646 /* Functions in plugins.c */ | |
139
c009c4f4ad02
[gaim-migrate @ 149]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
136
diff
changeset
|
647 extern void show_plugins(GtkWidget *, gpointer); |
142
fbabd28795d2
[gaim-migrate @ 152]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
139
diff
changeset
|
648 extern void load_plugin (char *); |
94
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
649 extern void gaim_signal_connect(void *, enum gaim_event, void *, void *); |
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
90
diff
changeset
|
650 extern void gaim_signal_disconnect(void *, enum gaim_event, void *); |
1 | 651 #endif |
652 | |
653 /* Functions in prefs.c */ | |
654 extern void debug_print( char * chars ); | |
655 extern void set_general_option(GtkWidget *, int *); | |
656 extern void set_option(GtkWidget *, int *); | |
657 extern void show_prefs(); | |
658 | |
659 /* Functions in gaimrc.c */ | |
660 extern void set_defaults(); | |
661 extern void load_prefs(); | |
662 extern void save_prefs(); | |
663 | |
664 | |
665 /* Functions in dialogs.c */ | |
230
83dd297aa363
[gaim-migrate @ 240]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
210
diff
changeset
|
666 extern void do_export(GtkWidget *, void *); |
1 | 667 extern void show_warn_dialog(char *); |
668 extern void do_error_dialog(char *, char *); | |
669 extern void show_error_dialog(char *); | |
670 extern void show_im_dialog(GtkWidget *, GtkWidget *); | |
671 extern void show_add_buddy(char *, char *); | |
672 extern void show_add_perm(); | |
673 extern void destroy_all_dialogs(); | |
674 extern void show_export_dialog(); | |
675 extern void show_import_dialog(); | |
676 extern void show_new_bp(); | |
677 extern void show_log_dialog(char *); | |
678 extern void show_find_email(); | |
679 extern void show_find_info(); | |
680 extern void g_show_info (char *); | |
247
f6e8ea29b24f
[gaim-migrate @ 257]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
242
diff
changeset
|
681 extern void g_show_info_text (char *); |
1 | 682 extern void show_register_dialog(); |
683 extern void show_set_info(); | |
684 extern void show_set_dir(); | |
311
0a8b4edc4732
[gaim-migrate @ 321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
308
diff
changeset
|
685 extern void show_color_dialog(struct conversation *c, GtkWidget *color); |
1 | 686 extern void create_away_mess(GtkWidget *, void *); |
687 extern void show_ee_dialog(int); | |
688 extern void show_add_link(GtkWidget *, GtkWidget *); | |
146 | 689 extern void show_change_passwd(); |
1 | 690 |
311
0a8b4edc4732
[gaim-migrate @ 321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
308
diff
changeset
|
691 extern void show_font_dialog(struct conversation *c, GtkWidget *font); |
0a8b4edc4732
[gaim-migrate @ 321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
308
diff
changeset
|
692 extern void cancel_font(GtkWidget *widget, struct conversation *c); |
230
83dd297aa363
[gaim-migrate @ 240]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
210
diff
changeset
|
693 extern void apply_font(GtkWidget *widget, GtkFontSelection *fontsel); |
83dd297aa363
[gaim-migrate @ 240]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
210
diff
changeset
|
694 |
198
73e9a0bfff62
[gaim-migrate @ 208]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
197
diff
changeset
|
695 /* Functions in rvous.c */ |
73e9a0bfff62
[gaim-migrate @ 208]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
197
diff
changeset
|
696 extern void accept_file_dialog(struct file_transfer *); |
73e9a0bfff62
[gaim-migrate @ 208]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
197
diff
changeset
|
697 |
1 | 698 /* Functions in browser.c */ |
699 extern void open_url(GtkWidget *, char *); | |
700 extern void open_url_nw(GtkWidget *, char *); | |
701 extern void add_bookmark(GtkWidget *, char *); | |
702 | |
703 /* functions for appletmgr */ | |
704 extern char * getConfig(); | |
705 |