Package: gio

Class g-permission

Superclasses

g-object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

None

Direct Slots

allowed
The allowed property of type :boolean (Read)
True if the caller currently has permission to perform the action that the g-permission object represents the permission to perform.
Default value: false
can-acquire
The can-acquire property of type :boolean (Read)
True if it is generally possible to acquire the permission by calling the g-permission-acquire function.
Default value: false
can-release
The can-release property of type :boolean (Read)
True if it is generally possible to release the permission by calling the g-permission-release function.
Default value: false

Details

A g-permission object represents the status of the permission of the caller to perform a certain action.

You can query if the action is currently allowed and if it is possible to acquire the permission so that the action will be allowed in the future.

There is also an API to actually acquire the permission and one to release it.

As an example, a g-permission object might represent the ability for the user to write to a g-settings object. This g-permission object could then be used to decide if it is appropriate to show a "Click here to unlock" button in a dialog and to provide the mechanism to invoke when that button is clicked.
 

Slot Access Functions

Inherited Slot Access Functions

See also

2021-12-23