| Epiphany Reference Manual |
|---|
ephy-permission-manager —
#define EPHY_PERMISSION_MANAGER_IFACE (k) #define EPHY_IS_PERMISSION_MANAGER_IFACE(k) #define EPHY_TYPE_PERMISSION_INFO enum EphyPermissionType; enum EphyPermission; EphyPermissionInfo* ephy_permission_info_new (const char *host, EphyPermissionType type, EphyPermission permission); EphyPermissionInfo* ephy_permission_info_copy (const EphyPermissionInfo *info); void ephy_permission_info_free (EphyPermissionInfo *info); GType ephy_permission_manager_get_type (void); void ephy_permission_manager_add (EphyPermissionManager *manager, const char *host, EphyPermissionType type, EphyPermission permission); void ephy_permission_manager_remove (EphyPermissionManager *manager, const char *host, EphyPermissionType type); void ephy_permission_manager_clear (EphyPermissionManager *manager); EphyPermission ephy_permission_manager_test (EphyPermissionManager *manager, const char *host, EphyPermissionType type); GList* ephy_permission_manager_list (EphyPermissionManager *manager, EphyPermissionType type);
typedef enum
{
EPHY_PERMISSION_ALLOWED,
EPHY_PERMISSION_DENIED,
EPHY_PERMISSION_DEFAULT
} EphyPermission;
EphyPermissionInfo* ephy_permission_info_new
(const char *host,
EphyPermissionType type,
EphyPermission permission);
| host : | |
| type : | |
| permission : | |
| Returns : |
EphyPermissionInfo* ephy_permission_info_copy
(const EphyPermissionInfo *info);
| info : | |
| Returns : |
void ephy_permission_info_free (EphyPermissionInfo *info);
Frees info.
| info : |
void ephy_permission_manager_add (EphyPermissionManager *manager,
const char *host,
EphyPermissionType type,
EphyPermission permission);Adds the permission allow of type type for host host to the permissions database.
| manager : | |
| host : | |
| type : | |
| permission : |
void ephy_permission_manager_remove (EphyPermissionManager *manager,
const char *host,
EphyPermissionType type);Removes the permission of type type for host host from the permissions database.
| manager : | |
| host : | |
| type : |
void ephy_permission_manager_clear (EphyPermissionManager *manager);
Clears the permissions database.
| manager : |
EphyPermission ephy_permission_manager_test (EphyPermissionManager *manager, const char *host, EphyPermissionType type);
Gets the permission of host for type type. If there is no entry for this type for host, it will return EPHY_PERMISSION_DEFAULT.
| manager : | |
| host : | |
| type : | |
| Returns : |
GList* ephy_permission_manager_list (EphyPermissionManager *manager,
EphyPermissionType type);Lists all permission entries of type type in the permissions database, each as its own EphyPermissionInfo
| manager : | |
| type : | |
| Returns : |
| << ephy-password-manager | ephy-session >> |