pidgin: privacy.h Source File

pidgin 2.14.4

Loading...
Searching...
No Matches
privacy.h
Go to the documentation of this file.
1
6/* purple
7 *
8 * Purple 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.
11 *
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.
16 *
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.
21 *
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
25 */
26#ifndef _PURPLE_PRIVACY_H_
27#define _PURPLE_PRIVACY_H_
28
32 typedef enum _PurplePrivacyType
33{
34 PURPLE_PRIVACY_ALLOW_ALL = 1,
35 PURPLE_PRIVACY_DENY_ALL,
36 PURPLE_PRIVACY_ALLOW_USERS,
37 PURPLE_PRIVACY_DENY_USERS,
38 PURPLE_PRIVACY_ALLOW_BUDDYLIST
39} PurplePrivacyType;
40
41#include "account.h"
42
43#ifdef __cplusplus
44extern "C" {
45#endif
46
50 typedef struct
51{
52 void (*permit_added)(PurpleAccount *account, const char *name);
53 void (*permit_removed)(PurpleAccount *account, const char *name);
54 void (*deny_added)(PurpleAccount *account, const char *name);
55 void (*deny_removed)(PurpleAccount *account, const char *name);
56
57 void (*_purple_reserved1)(void);
58 void (*_purple_reserved2)(void);
59 void (*_purple_reserved3)(void);
60 void (*_purple_reserved4)(void);
61} PurplePrivacyUiOps;
62
73gboolean purple_privacy_permit_add(PurpleAccount *account, const char *name,
74 gboolean local_only);
75
86gboolean purple_privacy_permit_remove(PurpleAccount *account, const char *name,
87 gboolean local_only);
88
99gboolean purple_privacy_deny_add(PurpleAccount *account, const char *name,
100 gboolean local_only);
101
112gboolean purple_privacy_deny_remove(PurpleAccount *account, const char *name,
113 gboolean local_only);
114
135 void purple_privacy_allow(PurpleAccount *account, const char *who, gboolean local,
136 gboolean restore);
137
158 void purple_privacy_deny(PurpleAccount *account, const char *who, gboolean local,
159 gboolean restore);
160
169gboolean purple_privacy_check(PurpleAccount *account, const char *who);
170
176 void purple_privacy_set_ui_ops(PurplePrivacyUiOps *ops);
177
183 PurplePrivacyUiOps *purple_privacy_get_ui_ops(void);
184
188 void purple_privacy_init(void);
189
190#ifdef __cplusplus
191}
192#endif
193
194#endif /* _PURPLE_PRIVACY_H_ */
account.h
Account API.
purple_privacy_check
gboolean purple_privacy_check(PurpleAccount *account, const char *who)
Check the privacy-setting for a user.
purple_privacy_deny_remove
gboolean purple_privacy_deny_remove(PurpleAccount *account, const char *name, gboolean local_only)
Removes a user from the account's deny list.
purple_privacy_allow
void purple_privacy_allow(PurpleAccount *account, const char *who, gboolean local, gboolean restore)
Allow a user to send messages.
PurplePrivacyType
enum _PurplePrivacyType PurplePrivacyType
Privacy data types.
purple_privacy_set_ui_ops
void purple_privacy_set_ui_ops(PurplePrivacyUiOps *ops)
Sets the UI operations structure for the privacy subsystem.
_PurplePrivacyType
_PurplePrivacyType
Privacy data types.
Definition: privacy.h:33
purple_privacy_deny
void purple_privacy_deny(PurpleAccount *account, const char *who, gboolean local, gboolean restore)
Block messages from a user.
purple_privacy_init
void purple_privacy_init(void)
Initializes the privacy subsystem.
purple_privacy_permit_remove
gboolean purple_privacy_permit_remove(PurpleAccount *account, const char *name, gboolean local_only)
Removes a user from the account's permit list.
purple_privacy_permit_add
gboolean purple_privacy_permit_add(PurpleAccount *account, const char *name, gboolean local_only)
Adds a user to the account's permit list.
purple_privacy_deny_add
gboolean purple_privacy_deny_add(PurpleAccount *account, const char *name, gboolean local_only)
Adds a user to the account's deny list.
purple_privacy_get_ui_ops
PurplePrivacyUiOps * purple_privacy_get_ui_ops(void)
Returns the UI operations structure for the privacy subsystem.
PurplePrivacyUiOps
Privacy core/UI operations.
Definition: privacy.h:51
_PurpleAccount
Structure representing an account.
Definition: account.h:170