Mercurial > pidgin.yaz
annotate src/multi.h @ 988:9523b772e546
[gaim-migrate @ 998]
progress meters for signing in. UI should be changed but at least there's something there now
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 13 Oct 2000 19:56:11 +0000 |
parents | 7e231bc0018a |
children | 70c685de2be5 |
rev | line source |
---|---|
960 | 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 | |
22 #ifndef _GAIMMULTI_H_ | |
23 #define _GAIMMULTI_H_ | |
24 | |
25 #include <gtk/gtk.h> | |
26 #include "gaim.h" | |
27 #include "aim.h" | |
28 | |
29 #define PROTO_TOC 0 | |
30 #define PROTO_OSCAR 1 | |
31 | |
32 /* ok. now the fun begins. first we create a connection structure */ | |
33 struct gaim_connection { | |
34 /* we need to do either oscar or TOC */ | |
35 /* we make this as an int in case if we want to add more protocols later */ | |
36 int protocol; | |
981
7e231bc0018a
[gaim-migrate @ 991]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
964
diff
changeset
|
37 struct prpl *prpl; |
960 | 38 |
39 /* let's do the oscar-specific stuff first since i know it better */ | |
40 struct aim_session_t *oscar_sess; | |
41 struct aim_conn_t *oscar_conn; /* we don't particularly need this since it | |
42 will be in oscar_sess, but it's useful to | |
43 still keep our own reference to it */ | |
44 int inpa; /* do we really need this? it's for the BOS conn */ | |
45 int cnpa; /* chat nav input watcher */ | |
46 int paspa; /* for changing passwords, which doesn't work yet */ | |
47 | |
48 int create_exchange; | |
49 char *create_name; | |
50 | |
51 GSList *oscar_chats; | |
964
2cd7b73e2c9a
[gaim-migrate @ 974]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
960
diff
changeset
|
52 GSList *buddy_chats; |
960 | 53 |
54 /* that's all we need for oscar. now then, on to TOC.... */ | |
55 int toc_fd; | |
56 int seqno; | |
57 int state; | |
58 /* int inpa; input watcher, dual-declared for oscar as well */ | |
59 | |
60 /* now we'll do stuff that both of them need */ | |
61 char username[64]; | |
62 char password[32]; | |
63 char user_info[2048]; | |
64 char g_screenname[64]; | |
65 int options; /* same as aim_user options */ | |
66 int keepalive; | |
67 /* stuff needed for per-connection idle times */ | |
68 int idle_timer; | |
69 time_t login_time; | |
70 time_t lastsent; | |
71 int is_idle; | |
988
9523b772e546
[gaim-migrate @ 998]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
981
diff
changeset
|
72 |
9523b772e546
[gaim-migrate @ 998]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
981
diff
changeset
|
73 /* stuff for a signin progress meter */ |
9523b772e546
[gaim-migrate @ 998]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
981
diff
changeset
|
74 GtkWidget *meter; |
9523b772e546
[gaim-migrate @ 998]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
981
diff
changeset
|
75 GtkWidget *progress; |
9523b772e546
[gaim-migrate @ 998]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
981
diff
changeset
|
76 GtkWidget *status; |
960 | 77 }; |
78 | |
79 /* now that we have our struct, we're going to need lots of them. Maybe even a list of them. */ | |
80 extern GSList *connections; | |
81 | |
82 struct gaim_connection *new_gaim_conn(int, char *, char *); | |
83 void destroy_gaim_conn(struct gaim_connection *); | |
84 | |
85 struct gaim_connection *find_gaim_conn_by_name(char *); | |
86 | |
87 void account_editor(GtkWidget *, GtkWidget *); | |
88 | |
89 void account_online(struct gaim_connection *); | |
90 void account_offline(struct gaim_connection *); | |
91 | |
92 void auto_login(); | |
93 | |
988
9523b772e546
[gaim-migrate @ 998]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
981
diff
changeset
|
94 void set_login_progress(struct gaim_connection *, float, char *); |
9523b772e546
[gaim-migrate @ 998]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
981
diff
changeset
|
95 void hide_login_progress(struct gaim_connection *, char *); |
9523b772e546
[gaim-migrate @ 998]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
981
diff
changeset
|
96 |
960 | 97 #endif /* _GAIMMULTI_H_ */ |