| 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 (constchar *host, EphyPermissionType type, EphyPermission permission);EphyPermissionInfo * ephy_permission_info_copy (constEphyPermissionInfo *info);void ephy_permission_info_free (EphyPermissionInfo *info);GType ephy_permission_manager_get_type (void);void ephy_permission_manager_add (EphyPermissionManager *manager, constchar *host, EphyPermissionType type, EphyPermission permission);void ephy_permission_manager_remove (EphyPermissionManager *manager, constchar *host, EphyPermissionType type);void ephy_permission_manager_clear (EphyPermissionManager *manager); EphyPermission ephy_permission_manager_test (EphyPermissionManager *manager, constchar *host, EphyPermissionType type);GList * ephy_permission_manager_list (EphyPermissionManager *manager, EphyPermissionType type);
#define EPHY_PERMISSION_MANAGER_IFACE(k) (G_TYPE_CHECK_CLASS_CAST((k), EPHY_TYPE_PERMISSION_MANAGER, EphyPermissionManagerIface))
| k : |
#define EPHY_IS_PERMISSION_MANAGER_IFACE(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EPHY_TYPE_PERMISSION_MANAGER))
| k : |
typedef enum
{
EPHY_PERMISSION_ALLOWED,
EPHY_PERMISSION_DENIED,
EPHY_PERMISSION_DEFAULT
} EphyPermission;
EphyPermissionInfo * ephy_permission_info_new (constchar *host, EphyPermissionType type, EphyPermission permission);
| host : | a host name |
| type : | a EphyPermissionType |
| permission : | |
| Returns : | the new |
EphyPermissionInfo * ephy_permission_info_copy (constEphyPermissionInfo *info);
| info : | a |
| Returns : | a copy of info |
void ephy_permission_info_free (EphyPermissionInfo *info);
Frees info.
| info : | a |
void ephy_permission_manager_add (EphyPermissionManager *manager, constchar *host, EphyPermissionType type, EphyPermission permission);
Adds the permission allow of type type for host host to the permissions database.
| manager : | the |
| host : | a host name |
| type : | a EphyPermissionType |
| permission : | either |
void ephy_permission_manager_remove (EphyPermissionManager *manager, constchar *host, EphyPermissionType type);
Removes the permission of type type for host host from the permissions database.
| manager : | the |
| host : | a host name |
| type : | a EphyPermissionType |
void ephy_permission_manager_clear (EphyPermissionManager *manager);
Clears the permissions database.
| manager : | the |
EphyPermission ephy_permission_manager_test (EphyPermissionManager *manager, constchar *host, EphyPermissionType type);
Gets the permission of host for type type. If there is no entry
for this type for host, it will return
| manager : | the |
| host : | a host name |
| type : | a EphyPermissionType |
| Returns : | the permission of type EphyPermission |
GList * ephy_permission_manager_list (EphyPermissionManager *manager, EphyPermissionType type);
Lists all permission entries of type type in the permissions database, each
as its own
| manager : | the |
| type : | a EphyPermissionType |
| Returns : | the list of permission entries |
| << ephy-password-manager | ephy-session >> |