Mercurial > pidgin.yaz
annotate src/multi.h @ 975:a45991891aba
[gaim-migrate @ 985]
signin mods. still need a better UI, but it's getting there.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 11 Oct 2000 03:56:46 +0000 |
parents | 2cd7b73e2c9a |
children | 7e231bc0018a |
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; | |
37 | |
38 /* let's do the oscar-specific stuff first since i know it better */ | |
39 struct aim_session_t *oscar_sess; | |
40 struct aim_conn_t *oscar_conn; /* we don't particularly need this since it | |
41 will be in oscar_sess, but it's useful to | |
42 still keep our own reference to it */ | |
43 int inpa; /* do we really need this? it's for the BOS conn */ | |
44 int cnpa; /* chat nav input watcher */ | |
45 int paspa; /* for changing passwords, which doesn't work yet */ | |
46 | |
47 int create_exchange; | |
48 char *create_name; | |
49 | |
50 GSList *oscar_chats; | |
964
2cd7b73e2c9a
[gaim-migrate @ 974]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
960
diff
changeset
|
51 GSList *buddy_chats; |
960 | 52 |
53 /* that's all we need for oscar. now then, on to TOC.... */ | |
54 int toc_fd; | |
55 int seqno; | |
56 int state; | |
57 /* int inpa; input watcher, dual-declared for oscar as well */ | |
58 | |
59 /* now we'll do stuff that both of them need */ | |
60 char username[64]; | |
61 char password[32]; | |
62 char user_info[2048]; | |
63 char g_screenname[64]; | |
64 int options; /* same as aim_user options */ | |
65 int keepalive; | |
66 /* stuff needed for per-connection idle times */ | |
67 int idle_timer; | |
68 time_t login_time; | |
69 time_t lastsent; | |
70 int is_idle; | |
71 }; | |
72 | |
73 /* now that we have our struct, we're going to need lots of them. Maybe even a list of them. */ | |
74 extern GSList *connections; | |
75 | |
76 struct gaim_connection *new_gaim_conn(int, char *, char *); | |
77 void destroy_gaim_conn(struct gaim_connection *); | |
78 | |
79 struct gaim_connection *find_gaim_conn_by_name(char *); | |
80 | |
81 void account_editor(GtkWidget *, GtkWidget *); | |
82 | |
83 void account_online(struct gaim_connection *); | |
84 void account_offline(struct gaim_connection *); | |
85 | |
86 void auto_login(); | |
87 | |
88 #endif /* _GAIMMULTI_H_ */ |