2 * @file gtkprivacy.h GTK+ Privacy UI
8 * Pidgin is the legal property of its developers, whose names are too numerous
9 * to list here. Please refer to the COPYRIGHT file distributed with this
10 * source distribution.
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
26 #ifndef _PIDGINPRIVACY_H_
27 #define _PIDGINPRIVACY_H_
32 * Initializes the GTK+ privacy subsystem.
34 void pidgin_privacy_init(void);
37 * Shows the privacy dialog.
39 void pidgin_privacy_dialog_show(void);
42 * Hides the privacy dialog.
44 void pidgin_privacy_dialog_hide(void);
47 * Requests confirmation to add a user to the allow list for an account,
50 * If @a name is not specified, an input dialog will be presented.
52 * @param account The account.
53 * @param name The name of the user to add.
55 void pidgin_request_add_permit(PurpleAccount
*account
, const char *name
);
58 * Requests confirmation to add a user to the block list for an account,
61 * If @a name is not specified, an input dialog will be presented.
63 * @param account The account.
64 * @param name The name of the user to add.
66 void pidgin_request_add_block(PurpleAccount
*account
, const char *name
);
69 * Returns the UI operations structure for the GTK+ privacy subsystem.
71 * @return The GTK+ UI privacy operations structure.
73 PurplePrivacyUiOps
*pidgin_privacy_get_ui_ops(void);
75 #endif /* _PIDGINPRIVACY_H_ */