Mercurial > pidgin.yaz
annotate src/gaim.h @ 6035:8c44020a958e
[gaim-migrate @ 6485]
gaim_request_input() now takes a masked bool, which, if enabled, masks the
text on the entry field so that it cannot be seen. Good for password input
requests, and what do you know, that's why this is written!
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sat, 05 Jul 2003 21:54:19 +0000 |
parents | 80e5258226f3 |
children | 11bedb793a44 |
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 |
56 /* Functions in html.c */ | |
3630 | 57 struct g_url { |
58 char address[255]; | |
59 int port; | |
60 char page[255]; | |
61 }; | |
62 | |
4322 | 63 extern void grab_url(char *, gboolean, void (*callback)(gpointer, char *, unsigned long), gpointer); |
4359
5fb47ec9bfe4
[gaim-migrate @ 4625]
Christian Hammond <chipx86@chipx86.com>
parents:
4349
diff
changeset
|
64 extern gchar *strip_html(const gchar *); |
5110 | 65 extern void html_to_xhtml(const char *, char **, char **); |
3630 | 66 struct g_url *parse_url(char *url); |
1 | 67 |
1026 | 68 /* Functions in idle.c */ |
2381
427ccd7dfdd2
[gaim-migrate @ 2394]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2380
diff
changeset
|
69 extern gint check_idle(gpointer); |
1026 | 70 |
4184
af2eeb7f7cf8
[gaim-migrate @ 4415]
Christian Hammond <chipx86@chipx86.com>
parents:
4160
diff
changeset
|
71 |
2956 | 72 /*------------------------------------------------------------------------*/ |
73 /* Multi-Entry dialog and vCard dialog support */ | |
74 /*------------------------------------------------------------------------*/ | |
75 | |
76 /* | |
77 * Struct for "instructions" dialog data | |
78 */ | |
79 typedef struct multi_instr_dlg { | |
80 GtkWidget *label; /* dialog instructions widget */ | |
81 gchar *text; /* dialog instructions */ | |
82 } MultiInstrData; | |
83 | |
84 /* | |
85 * Struct for multiple-entry dialog data | |
86 */ | |
87 typedef struct multi_entry_data { | |
88 GtkWidget *widget; /* entry widget object */ | |
89 char *label; /* label text pointer */ | |
90 char *text; /* entry text pointer */ | |
91 int visible; /* should entry field be "visible?" */ | |
92 int editable; /* should entry field be editable? */ | |
93 } MultiEntryData; | |
94 | |
95 /* | |
96 * Struct for multiple-textbox dialog data | |
97 */ | |
98 typedef struct multi_text_data { | |
99 char *label; /* frame label */ | |
100 GtkWidget *textbox; /* text entry widget object */ | |
101 char *text; /* textbox text pointer */ | |
102 } MultiTextData; | |
103 | |
104 /* | |
105 * Struct to create a multi-entry dialog | |
106 */ | |
107 typedef struct multi_entry_dlg { | |
108 GtkWidget *window; /* dialog main window */ | |
4074 | 109 gchar *role; /* window role */ |
2956 | 110 char *title; /* window title */ |
111 | |
5563
9eb5b13fd412
[gaim-migrate @ 5965]
Christian Hammond <chipx86@chipx86.com>
parents:
5560
diff
changeset
|
112 GaimAccount *account; /* user info - needed for most everything */ |
2956 | 113 |
114 MultiInstrData *instructions; /* instructions (what else?) */ | |
115 | |
116 GtkWidget *entries_table; /* table widget containing m-e lables & entries */ | |
117 GtkWidget *entries_frame; /* frame widget containing the table widget */ | |
2975 | 118 gchar *entries_title; /* title of multi-entries list */ |
2956 | 119 GSList *multi_entry_items; /* entry dialogs parameters */ |
120 | |
121 GtkWidget *texts_ibox; /* inner vbox containing multi-text frames */ | |
122 GtkWidget *texts_obox; /* outer vbox containing multi-text frames */ | |
123 GSList *multi_text_items; /* text dialogs parameters */ | |
124 | |
125 void * (*custom)(struct multi_entry_dlg *); /* Custom function that may be used by */ | |
126 /* multi-entry dialog "wrapper" functions */ | |
127 /* (Not used by multi-entry dialog routines) */ | |
128 | |
129 void (*ok)(GtkWidget *, gpointer); /* "Save/OK" action */ | |
130 void (*cancel)(GtkWidget *, gpointer); /* "Cancel" action */ | |
131 } MultiEntryDlg; | |
132 | |
133 extern MultiTextData *multi_text_list_update(GSList **, const char *, const char *, int); | |
134 extern void multi_text_items_free_all(GSList **); | |
135 extern MultiEntryData *multi_entry_list_update(GSList **, const char *, const char *, int); | |
136 extern void multi_entry_items_free_all(GSList **); | |
137 | |
138 extern void re_show_multi_entry_instr(MultiInstrData *); | |
139 extern void re_show_multi_entry_entries(GtkWidget **, GtkWidget *, GSList *); | |
140 extern void re_show_multi_entry_textboxes(GtkWidget **, GtkWidget *, GSList *); | |
141 | |
142 extern MultiEntryDlg *multi_entry_dialog_new(void); | |
143 extern void show_multi_entry_dialog(gpointer); | |
144 | |
145 extern void show_set_vcard(MultiEntryDlg *); | |
146 | |
147 /*------------------------------------------------------------------------*/ | |
148 /* End Multi-Entry dialog and vCard dialog support */ | |
149 /*------------------------------------------------------------------------*/ | |
150 | |
2417
5473c8c5378d
[gaim-migrate @ 2430]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2416
diff
changeset
|
151 #endif /* _GAIM_H_ */ |