Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

privacy.h

Go to the documentation of this file.
00001 
00025 #ifndef _GAIM_PRIVACY_H_
00026 #define _GAIM_PRIVACY_H_
00027 
00028 #include "account.h"
00029 
00033 typedef enum _GaimPrivacyType
00034 {
00035     GAIM_PRIVACY_ALLOW_ALL = 1,
00036     GAIM_PRIVACY_DENY_ALL,
00037     GAIM_PRIVACY_ALLOW_USERS,
00038     GAIM_PRIVACY_DENY_USERS,
00039     GAIM_PRIVACY_ALLOW_BUDDYLIST
00040 } GaimPrivacyType;
00041 
00042 #ifdef __cplusplus
00043 extern "C" {
00044 #endif
00045 
00049 typedef struct
00050 {
00051     void (*permit_added)(GaimAccount *account, const char *name);
00052     void (*permit_removed)(GaimAccount *account, const char *name);
00053     void (*deny_added)(GaimAccount *account, const char *name);
00054     void (*deny_removed)(GaimAccount *account, const char *name);
00055 
00056 } GaimPrivacyUiOps;
00057 
00068 gboolean gaim_privacy_permit_add(GaimAccount *account, const char *name,
00069                                  gboolean local_only);
00070 
00081 gboolean gaim_privacy_permit_remove(GaimAccount *account, const char *name,
00082                                     gboolean local_only);
00083 
00094 gboolean gaim_privacy_deny_add(GaimAccount *account, const char *name,
00095                                gboolean local_only);
00096 
00107 gboolean gaim_privacy_deny_remove(GaimAccount *account, const char *name,
00108                                   gboolean local_only);
00109 
00115 void gaim_privacy_set_ui_ops(GaimPrivacyUiOps *ops);
00116 
00122 GaimPrivacyUiOps *gaim_privacy_get_ui_ops(void);
00123 
00127 void gaim_privacy_init(void);
00128 
00129 #ifdef __cplusplus
00130 }
00131 #endif
00132 
00133 #endif /* _GAIM_PRIVACY_H_ */

Generated on Fri Apr 22 05:21:09 2005 for gaim by  doxygen 1.3.9.1