Core API Reference - Policy File Entry |
Desktop Apps Training - Policy Kit | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Synopsis
DetailsPolKitPolicyFileEntrytypedef struct _PolKitPolicyFileEntry PolKitPolicyFileEntry; Objects of this class are used to record information about a policy.
PolKitPolicyFileEntryAnnotationsForeachFunc ()polkit_bool_t (*PolKitPolicyFileEntryAnnotationsForeachFunc) Callback function for polkit_policy_file_entry_annotations_foreach().
polkit_policy_file_entry_ref ()PolKitPolicyFileEntry* polkit_policy_file_entry_ref (PolKitPolicyFileEntry *policy_file_entry); Increase reference count.
polkit_policy_file_entry_unref ()void polkit_policy_file_entry_unref (PolKitPolicyFileEntry *policy_file_entry); Decreases the reference count of the object. If it becomes zero, the object is freed. Before freeing, reference counts on embedded objects are decresed by one.
polkit_policy_file_entry_debug ()void polkit_policy_file_entry_debug (PolKitPolicyFileEntry *policy_file_entry); Print debug information about object
polkit_policy_file_entry_get_id ()const char* polkit_policy_file_entry_get_id (PolKitPolicyFileEntry *policy_file_entry); Get the action identifier.
polkit_policy_file_entry_get_default ()PolKitPolicyDefault* polkit_policy_file_entry_get_default Get the the default policy for this policy.
polkit_policy_file_entry_get_action_description ()const char* polkit_policy_file_entry_get_action_description Get the description of the action that this policy entry describes. This is intended to be used in policy editors, for example "Mount internal volumes". Contrast with polkit_policy_file_entry_get_action_message(). The textual string will be returned in the current locale. Note, if polkit_context_set_load_descriptions() on the PolKitContext object used to get this object wasn't called, this method will return NULL.
polkit_policy_file_entry_get_action_message ()const char* polkit_policy_file_entry_get_action_message Get the message describing the action that this policy entry describes. This is to be used in dialogs, for example "System Policy prevents mounting this volume". Contrast with polkit_policy_file_entry_get_action_description(). The textual string will be returned in the current locale. Note, if polkit_context_set_load_descriptions() on the PolKitContext object used to get this object wasn't called, this method will return NULL.
polkit_policy_file_entry_get_action_vendor ()const char* polkit_policy_file_entry_get_action_vendor Get the name of the vendor of this action. Note, if polkit_context_set_load_descriptions() on the PolKitContext object used to get this object wasn't called, this method will return NULL.
Since 0.7 polkit_policy_file_entry_get_action_vendor_url ()const char* polkit_policy_file_entry_get_action_vendor_url Get the URL of the vendor of this action. Note, if polkit_context_set_load_descriptions() on the PolKitContext object used to get this object wasn't called, this method will return NULL.
Since 0.7 polkit_policy_file_entry_get_action_icon_name ()const char* polkit_policy_file_entry_get_action_icon_name Get the name of the icon that represents the action. This name conforms to the freedesktop.org icon naming specification. Note, if polkit_context_set_load_descriptions() on the PolKitContext object used to get this object wasn't called, this method will return NULL.
Since 0.7 polkit_policy_file_entry_annotations_foreach ()polkit_bool_t polkit_policy_file_entry_annotations_foreach Iterate over all annotations on the policy file entry.
polkit_policy_file_entry_get_annotation ()const char* polkit_policy_file_entry_get_annotation Look of the value of a given annotation.
polkit_policy_file_entry_get_default_factory ()PolKitPolicyDefault* polkit_policy_file_entry_get_default_factory Get the factory defaults for the entry. This may be different that what polkit_policy_file_entry_get_default() returns if the function polkit_policy_file_entry_set_default() have been used to change the defaults.
Since 0.7 polkit_policy_file_entry_set_default ()polkit_bool_t polkit_policy_file_entry_set_default Set new defaults for a given policy file entry; subsequent calls to polkit_policy_file_get_default() will return these values. Note that the old defaults are not modified; they are still available via polkit_policy_file_entry_get_default_factory(). This operation requires the org.freedesktop.policykit.modify-defaults authorization and will fail if the caller lacks it.
Since 0.7 |