Mercurial > pidgin
comparison src/privacy.h @ 6371:8f94cce8faa5
[gaim-migrate @ 6876]
I think I touched almost every file. Here's what happened.
I started off fixing up the Makefile.am and configure.ac files to help with
the core/UI split some. Then I got annoyed with the
build_{allow,deny}_list() functions that everything used, and decided to
core/UI split privacy. While doing that, I decided to redesign the dialog.
So now, a lot has changed, but not really so much. Just that most files
got affected.
Oh yeah, and the UI stuff was taken out of internal.h and moved to
gtkinternal.h. If you use this, please be aware of this change.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 05 Aug 2003 10:55:04 +0000 |
parents | 158196b2db19 |
children | 01289157fc37 |
comparison
equal
deleted
inserted
replaced
6370:a4b83df2165b | 6371:8f94cce8faa5 |
---|---|
1 /* | 1 /** |
2 * @file privacy.h Privacy API | |
3 * @ingroup core | |
4 * | |
2 * gaim | 5 * gaim |
3 * | 6 * |
4 * Copyright (C) 2003, Christian Hammond <chipx86@gnupdate.org> | 7 * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org> |
5 * | 8 * |
6 * This program is free software; you can redistribute it and/or modify | 9 * 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 | 10 * 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 | 11 * the Free Software Foundation; either version 2 of the License, or |
9 * (at your option) any later version. | 12 * (at your option) any later version. |
14 * GNU General Public License for more details. | 17 * GNU General Public License for more details. |
15 * | 18 * |
16 * You should have received a copy of the GNU General Public License | 19 * You should have received a copy of the GNU General Public License |
17 * along with this program; if not, write to the Free Software | 20 * along with this program; if not, write to the Free Software |
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 * | |
20 */ | 22 */ |
21 #ifndef _GAIM_PRIVACY_H_ | 23 #ifndef _GAIM_PRIVACY_H_ |
22 #define _GAIM_PRIVACY_H_ | 24 #define _GAIM_PRIVACY_H_ |
25 | |
26 #include "account.h" | |
23 | 27 |
24 #ifdef __cplusplus | 28 #ifdef __cplusplus |
25 extern "C" { | 29 extern "C" { |
26 #endif | 30 #endif |
27 | 31 |
32 /** | |
33 * Privacy core/UI operations. | |
34 */ | |
35 typedef struct | |
36 { | |
37 void (*permit_added)(GaimAccount *account, const char *name); | |
38 void (*permit_removed)(GaimAccount *account, const char *name); | |
39 void (*deny_added)(GaimAccount *account, const char *name); | |
40 void (*deny_removed)(GaimAccount *account, const char *name); | |
41 | |
42 } GaimPrivacyUiOps; | |
43 | |
44 /** | |
45 * Adds a user to the account's permit list. | |
46 * | |
47 * @param account The account. | |
48 * @Param name The name of the user to add to the list. | |
49 * | |
50 * @return TRUE if the user was added successfully, or @c FALSE otherwise. | |
51 */ | |
28 gboolean gaim_privacy_permit_add(GaimAccount *account, const char *name); | 52 gboolean gaim_privacy_permit_add(GaimAccount *account, const char *name); |
53 | |
54 /** | |
55 * Removes a user from the account's permit list. | |
56 * | |
57 * @param account The account. | |
58 * @Param name The name of the user to add to the list. | |
59 * | |
60 * @return TRUE if the user was removed successfully, or @c FALSE otherwise. | |
61 */ | |
62 gboolean gaim_privacy_permit_remove(GaimAccount *account, const char *name); | |
63 | |
64 /** | |
65 * Adds a user to the account's deny list. | |
66 * | |
67 * @param account The account. | |
68 * @Param name The name of the user to add to the list. | |
69 * | |
70 * @return TRUE if the user was added successfully, or @c FALSE otherwise. | |
71 */ | |
29 gboolean gaim_privacy_deny_add(GaimAccount *account, const char *name); | 72 gboolean gaim_privacy_deny_add(GaimAccount *account, const char *name); |
73 | |
74 /** | |
75 * Removes a user from the account's deny list. | |
76 * | |
77 * @param account The account. | |
78 * @Param name The name of the user to add to the list. | |
79 * | |
80 * @return TRUE if the user was removed successfully, or @c FALSE otherwise. | |
81 */ | |
30 gboolean gaim_privacy_deny_remove(GaimAccount *account, const char *name); | 82 gboolean gaim_privacy_deny_remove(GaimAccount *account, const char *name); |
31 gboolean gaim_privacy_permit_remove(GaimAccount *account, const char *name); | 83 |
84 /** | |
85 * Sets the UI operations structure for the privacy subsystem. | |
86 * | |
87 * @param ops The UI operations structure. | |
88 */ | |
89 void gaim_set_privacy_ui_ops(GaimPrivacyUiOps *ops); | |
90 | |
91 /** | |
92 * Returns the UI operations structure for the privacy subsystem. | |
93 * | |
94 * @return The UI operations structure. | |
95 */ | |
96 GaimPrivacyUiOps *gaim_get_privacy_ui_ops(void); | |
97 | |
98 /** | |
99 * Initializes the privacy subsystem. | |
100 */ | |
101 void gaim_privacy_init(void); | |
32 | 102 |
33 #ifdef __cplusplus | 103 #ifdef __cplusplus |
34 } | 104 } |
35 #endif | 105 #endif |
36 | 106 |