Mercurial > pidgin
annotate src/gaim.h @ 6304:2567032a7430
[gaim-migrate @ 6803]
*twitch*
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Fri, 25 Jul 2003 14:23:08 +0000 |
parents | 16e384bb7fbf |
children | 7a34722b3164 |
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 |
2435
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
39 /* Functions in dialogs.c */ |
5563
9eb5b13fd412
[gaim-migrate @ 5965]
Christian Hammond <chipx86@chipx86.com>
parents:
5560
diff
changeset
|
40 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
|
41 extern void show_change_passwd(GaimConnection *); |
9eb5b13fd412
[gaim-migrate @ 5965]
Christian Hammond <chipx86@chipx86.com>
parents:
5560
diff
changeset
|
42 extern void show_set_dir(GaimConnection *); |
9eb5b13fd412
[gaim-migrate @ 5965]
Christian Hammond <chipx86@chipx86.com>
parents:
5560
diff
changeset
|
43 extern void show_find_email(GaimConnection *); |
9eb5b13fd412
[gaim-migrate @ 5965]
Christian Hammond <chipx86@chipx86.com>
parents:
5560
diff
changeset
|
44 extern void show_find_info(GaimConnection *); |
9eb5b13fd412
[gaim-migrate @ 5965]
Christian Hammond <chipx86@chipx86.com>
parents:
5560
diff
changeset
|
45 extern void show_set_info(GaimConnection *); |
5975 | 46 extern void show_confirm_del(struct buddy *); |
4921 | 47 extern void show_confirm_del_group(struct group *); |
5234 | 48 extern void show_confirm_del_chat(struct chat *); |
2435
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
49 |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
50 /* Functions in gaimrc.c */ |
b4f2a53c0ee5
[gaim-migrate @ 2448]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2417
diff
changeset
|
51 extern gint sort_awaymsg_list(gconstpointer, gconstpointer); |
1 | 52 |
1026 | 53 /* Functions in idle.c */ |
2381
427ccd7dfdd2
[gaim-migrate @ 2394]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2380
diff
changeset
|
54 extern gint check_idle(gpointer); |
1026 | 55 |
4184
af2eeb7f7cf8
[gaim-migrate @ 4415]
Christian Hammond <chipx86@chipx86.com>
parents:
4160
diff
changeset
|
56 |
2956 | 57 /*------------------------------------------------------------------------*/ |
58 /* Multi-Entry dialog and vCard dialog support */ | |
59 /*------------------------------------------------------------------------*/ | |
60 | |
61 /* | |
62 * Struct for "instructions" dialog data | |
63 */ | |
64 typedef struct multi_instr_dlg { | |
65 GtkWidget *label; /* dialog instructions widget */ | |
66 gchar *text; /* dialog instructions */ | |
67 } MultiInstrData; | |
68 | |
69 /* | |
70 * Struct for multiple-entry dialog data | |
71 */ | |
72 typedef struct multi_entry_data { | |
73 GtkWidget *widget; /* entry widget object */ | |
74 char *label; /* label text pointer */ | |
75 char *text; /* entry text pointer */ | |
76 int visible; /* should entry field be "visible?" */ | |
77 int editable; /* should entry field be editable? */ | |
78 } MultiEntryData; | |
79 | |
80 /* | |
81 * Struct for multiple-textbox dialog data | |
82 */ | |
83 typedef struct multi_text_data { | |
84 char *label; /* frame label */ | |
85 GtkWidget *textbox; /* text entry widget object */ | |
86 char *text; /* textbox text pointer */ | |
87 } MultiTextData; | |
88 | |
89 /* | |
90 * Struct to create a multi-entry dialog | |
91 */ | |
92 typedef struct multi_entry_dlg { | |
93 GtkWidget *window; /* dialog main window */ | |
4074 | 94 gchar *role; /* window role */ |
2956 | 95 char *title; /* window title */ |
96 | |
5563
9eb5b13fd412
[gaim-migrate @ 5965]
Christian Hammond <chipx86@chipx86.com>
parents:
5560
diff
changeset
|
97 GaimAccount *account; /* user info - needed for most everything */ |
2956 | 98 |
99 MultiInstrData *instructions; /* instructions (what else?) */ | |
100 | |
101 GtkWidget *entries_table; /* table widget containing m-e lables & entries */ | |
102 GtkWidget *entries_frame; /* frame widget containing the table widget */ | |
2975 | 103 gchar *entries_title; /* title of multi-entries list */ |
2956 | 104 GSList *multi_entry_items; /* entry dialogs parameters */ |
105 | |
106 GtkWidget *texts_ibox; /* inner vbox containing multi-text frames */ | |
107 GtkWidget *texts_obox; /* outer vbox containing multi-text frames */ | |
108 GSList *multi_text_items; /* text dialogs parameters */ | |
109 | |
110 void * (*custom)(struct multi_entry_dlg *); /* Custom function that may be used by */ | |
111 /* multi-entry dialog "wrapper" functions */ | |
112 /* (Not used by multi-entry dialog routines) */ | |
113 | |
114 void (*ok)(GtkWidget *, gpointer); /* "Save/OK" action */ | |
115 void (*cancel)(GtkWidget *, gpointer); /* "Cancel" action */ | |
116 } MultiEntryDlg; | |
117 | |
118 extern MultiTextData *multi_text_list_update(GSList **, const char *, const char *, int); | |
119 extern void multi_text_items_free_all(GSList **); | |
120 extern MultiEntryData *multi_entry_list_update(GSList **, const char *, const char *, int); | |
121 extern void multi_entry_items_free_all(GSList **); | |
122 | |
123 extern void re_show_multi_entry_instr(MultiInstrData *); | |
124 extern void re_show_multi_entry_entries(GtkWidget **, GtkWidget *, GSList *); | |
125 extern void re_show_multi_entry_textboxes(GtkWidget **, GtkWidget *, GSList *); | |
126 | |
127 extern MultiEntryDlg *multi_entry_dialog_new(void); | |
128 extern void show_multi_entry_dialog(gpointer); | |
129 | |
130 extern void show_set_vcard(MultiEntryDlg *); | |
131 | |
132 /*------------------------------------------------------------------------*/ | |
133 /* End Multi-Entry dialog and vCard dialog support */ | |
134 /*------------------------------------------------------------------------*/ | |
135 | |
2417
5473c8c5378d
[gaim-migrate @ 2430]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2416
diff
changeset
|
136 #endif /* _GAIM_H_ */ |