6371
|
1 /**
|
|
2 * @file gtkprivacy.h GTK+ Privacy UI
|
|
3 * @ingroup gtkui
|
|
4 *
|
|
5 * gaim
|
|
6 *
|
|
7 * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org>
|
|
8 *
|
|
9 * This program is free software; you can redistribute it and/or modify
|
|
10 * it under the terms of the GNU General Public License as published by
|
|
11 * the Free Software Foundation; either version 2 of the License, or
|
|
12 * (at your option) any later version.
|
|
13 *
|
|
14 * This program is distributed in the hope that it will be useful,
|
|
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17 * GNU General Public License for more details.
|
|
18 *
|
|
19 * You should have received a copy of the GNU General Public License
|
|
20 * along with this program; if not, write to the Free Software
|
|
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
22 */
|
|
23 #ifndef _GAIM_GTK_PRIVACY_H_
|
|
24 #define _GAIM_GTK_PRIVACY_H_
|
|
25
|
|
26 #include "privacy.h"
|
|
27
|
|
28 /**
|
|
29 * Initializes the GTK+ privacy subsystem.
|
|
30 */
|
|
31 void gaim_gtk_privacy_init(void);
|
|
32
|
|
33 /**
|
|
34 * Shows the privacy dialog.
|
|
35 */
|
|
36 void gaim_gtk_privacy_dialog_show(void);
|
|
37
|
|
38 /**
|
|
39 * Hides the privacy dialog.
|
|
40 */
|
|
41 void gaim_gtk_privacy_dialog_hide(void);
|
|
42
|
|
43 /**
|
|
44 * Requests confirmation to add a user to the allow list for an account,
|
|
45 * and then adds it.
|
|
46 *
|
|
47 * If @a name is not specified, an input dialog will be presented.
|
|
48 *
|
|
49 * @param account The account.
|
|
50 * @param name The name of the user to add.
|
|
51 */
|
|
52 void gaim_gtk_request_add_permit(GaimAccount *account, const char *name);
|
|
53
|
|
54 /**
|
|
55 * Requests confirmation to add a user to the block list for an account,
|
|
56 * and then adds it.
|
|
57 *
|
|
58 * If @a name is not specified, an input dialog will be presented.
|
|
59 *
|
|
60 * @param account The account.
|
|
61 * @param name The name of the user to add.
|
|
62 */
|
|
63 void gaim_gtk_request_add_block(GaimAccount *account, const char *name);
|
|
64
|
|
65 /**
|
|
66 * Returns the UI operations structure for the GTK+ privacy subsystem.
|
|
67 *
|
|
68 * @return The GTK+ UI privacy operations structure.
|
|
69 */
|
|
70 GaimPrivacyUiOps *gaim_gtk_privacy_get_ui_ops(void);
|
|
71
|
|
72 #endif /* _GAIM_GTK_PRIVACY_H_ */
|