Mercurial > pidgin
annotate src/gaim.h @ 6156:9cdc2216b6c7
[gaim-migrate @ 6631]
0.65 has not yet been released.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Wed, 16 Jul 2003 18:49:33 +0000 |
parents | 11bedb793a44 |
children | 16e384bb7fbf |
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 |
3151 | 25 #define XPATCH BAD /* Because Kalla Said So */ |
26 | |
5872
059d95c67cda
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5842
diff
changeset
|
27 #include "connection.h" |
1 | 28 |
5248 | 29 /* Globals in main.c */ |
1560
72235e3fcff6
[gaim-migrate @ 1570]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1535
diff
changeset
|
30 extern int opt_away; |
72235e3fcff6
[gaim-migrate @ 1570]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1535
diff
changeset
|
31 extern char *opt_away_arg; |
72235e3fcff6
[gaim-migrate @ 1570]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1535
diff
changeset
|
32 extern char *opt_rcfile_arg; |
2823
cd23279122ed
[gaim-migrate @ 2836]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2820
diff
changeset
|
33 extern int opt_debug; |
1254
9da444224f0e
[gaim-migrate @ 1264]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1252
diff
changeset
|
34 |
1768 | 35 extern GSList *message_queue; |
3517 | 36 extern GSList *unread_message_queue; |
1774 | 37 extern GSList *away_time_queue; |
1 | 38 |
5248 | 39 /* Functions in main.c */ |
4082 | 40 extern void do_quit(); |
41 | |
2435
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
42 /* Functions in dialogs.c */ |
5563
9eb5b13fd412
[gaim-migrate @ 5965]
Christian Hammond <chipx86@chipx86.com>
parents:
5560
diff
changeset
|
43 extern void g_show_info_text(GaimConnection *, const char *, int, const char *, ...); |
9eb5b13fd412
[gaim-migrate @ 5965]
Christian Hammond <chipx86@chipx86.com>
parents:
5560
diff
changeset
|
44 extern void show_change_passwd(GaimConnection *); |
9eb5b13fd412
[gaim-migrate @ 5965]
Christian Hammond <chipx86@chipx86.com>
parents:
5560
diff
changeset
|
45 extern void show_set_dir(GaimConnection *); |
9eb5b13fd412
[gaim-migrate @ 5965]
Christian Hammond <chipx86@chipx86.com>
parents:
5560
diff
changeset
|
46 extern void show_find_email(GaimConnection *); |
9eb5b13fd412
[gaim-migrate @ 5965]
Christian Hammond <chipx86@chipx86.com>
parents:
5560
diff
changeset
|
47 extern void show_find_info(GaimConnection *); |
9eb5b13fd412
[gaim-migrate @ 5965]
Christian Hammond <chipx86@chipx86.com>
parents:
5560
diff
changeset
|
48 extern void show_set_info(GaimConnection *); |
5975 | 49 extern void show_confirm_del(struct buddy *); |
4921 | 50 extern void show_confirm_del_group(struct group *); |
5234 | 51 extern void show_confirm_del_chat(struct chat *); |
2435
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
52 |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
53 /* Functions in gaimrc.c */ |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
54 extern gint sort_awaymsg_list(gconstpointer, gconstpointer); |
1 | 55 |
1026 | 56 /* Functions in idle.c */ |
2381
427ccd7dfdd2
[gaim-migrate @ 2394]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2380
diff
changeset
|
57 extern gint check_idle(gpointer); |
1026 | 58 |
4184
af2eeb7f7cf8
[gaim-migrate @ 4415]
Christian Hammond <chipx86@chipx86.com>
parents:
4160
diff
changeset
|
59 |
2956 | 60 /*------------------------------------------------------------------------*/ |
61 /* Multi-Entry dialog and vCard dialog support */ | |
62 /*------------------------------------------------------------------------*/ | |
63 | |
64 /* | |
65 * Struct for "instructions" dialog data | |
66 */ | |
67 typedef struct multi_instr_dlg { | |
68 GtkWidget *label; /* dialog instructions widget */ | |
69 gchar *text; /* dialog instructions */ | |
70 } MultiInstrData; | |
71 | |
72 /* | |
73 * Struct for multiple-entry dialog data | |
74 */ | |
75 typedef struct multi_entry_data { | |
76 GtkWidget *widget; /* entry widget object */ | |
77 char *label; /* label text pointer */ | |
78 char *text; /* entry text pointer */ | |
79 int visible; /* should entry field be "visible?" */ | |
80 int editable; /* should entry field be editable? */ | |
81 } MultiEntryData; | |
82 | |
83 /* | |
84 * Struct for multiple-textbox dialog data | |
85 */ | |
86 typedef struct multi_text_data { | |
87 char *label; /* frame label */ | |
88 GtkWidget *textbox; /* text entry widget object */ | |
89 char *text; /* textbox text pointer */ | |
90 } MultiTextData; | |
91 | |
92 /* | |
93 * Struct to create a multi-entry dialog | |
94 */ | |
95 typedef struct multi_entry_dlg { | |
96 GtkWidget *window; /* dialog main window */ | |
4074 | 97 gchar *role; /* window role */ |
2956 | 98 char *title; /* window title */ |
99 | |
5563
9eb5b13fd412
[gaim-migrate @ 5965]
Christian Hammond <chipx86@chipx86.com>
parents:
5560
diff
changeset
|
100 GaimAccount *account; /* user info - needed for most everything */ |
2956 | 101 |
102 MultiInstrData *instructions; /* instructions (what else?) */ | |
103 | |
104 GtkWidget *entries_table; /* table widget containing m-e lables & entries */ | |
105 GtkWidget *entries_frame; /* frame widget containing the table widget */ | |
2975 | 106 gchar *entries_title; /* title of multi-entries list */ |
2956 | 107 GSList *multi_entry_items; /* entry dialogs parameters */ |
108 | |
109 GtkWidget *texts_ibox; /* inner vbox containing multi-text frames */ | |
110 GtkWidget *texts_obox; /* outer vbox containing multi-text frames */ | |
111 GSList *multi_text_items; /* text dialogs parameters */ | |
112 | |
113 void * (*custom)(struct multi_entry_dlg *); /* Custom function that may be used by */ | |
114 /* multi-entry dialog "wrapper" functions */ | |
115 /* (Not used by multi-entry dialog routines) */ | |
116 | |
117 void (*ok)(GtkWidget *, gpointer); /* "Save/OK" action */ | |
118 void (*cancel)(GtkWidget *, gpointer); /* "Cancel" action */ | |
119 } MultiEntryDlg; | |
120 | |
121 extern MultiTextData *multi_text_list_update(GSList **, const char *, const char *, int); | |
122 extern void multi_text_items_free_all(GSList **); | |
123 extern MultiEntryData *multi_entry_list_update(GSList **, const char *, const char *, int); | |
124 extern void multi_entry_items_free_all(GSList **); | |
125 | |
126 extern void re_show_multi_entry_instr(MultiInstrData *); | |
127 extern void re_show_multi_entry_entries(GtkWidget **, GtkWidget *, GSList *); | |
128 extern void re_show_multi_entry_textboxes(GtkWidget **, GtkWidget *, GSList *); | |
129 | |
130 extern MultiEntryDlg *multi_entry_dialog_new(void); | |
131 extern void show_multi_entry_dialog(gpointer); | |
132 | |
133 extern void show_set_vcard(MultiEntryDlg *); | |
134 | |
135 /*------------------------------------------------------------------------*/ | |
136 /* End Multi-Entry dialog and vCard dialog support */ | |
137 /*------------------------------------------------------------------------*/ | |
138 | |
2417
5473c8c5378d
[gaim-migrate @ 2430]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2416
diff
changeset
|
139 #endif /* _GAIM_H_ */ |