Class

GioSimplePermission

Description [src]

final class Gio.SimplePermission : Gio.Permission {
  /* No available fields */
}

GSimplePermission is a trivial implementation of GPermission that represents a permission that is either always or never allowed. The value is given at construction and doesn’t change.

Calling request or release will result in errors.

Hierarchy

hierarchy this GSimplePermission ancestor_0 GPermission ancestor_0--this ancestor_1 GObject ancestor_1--ancestor_0

Ancestors

Constructors

g_simple_permission_new

Creates a new GPermission instance that represents an action that is either always or never allowed.

Available since: 2.26

Instance methods

Methods inherited from GPermission (10)
g_permission_acquire

Attempts to acquire the permission represented by permission.

Available since: 2.26

g_permission_acquire_async

Attempts to acquire the permission represented by permission.

Available since: 2.26

g_permission_acquire_finish

Collects the result of attempting to acquire the permission represented by permission.

Available since: 2.26

g_permission_get_allowed

Gets the value of the ‘allowed’ property. This property is TRUE if the caller currently has permission to perform the action that permission represents the permission to perform.

Available since: 2.26

g_permission_get_can_acquire

Gets the value of the ‘can-acquire’ property. This property is TRUE if it is generally possible to acquire the permission by calling g_permission_acquire().

Available since: 2.26

g_permission_get_can_release

Gets the value of the ‘can-release’ property. This property is TRUE if it is generally possible to release the permission by calling g_permission_release().

Available since: 2.26

g_permission_impl_update

This function is called by the GPermission implementation to update the properties of the permission. You should never call this function except from a GPermission implementation.

Available since: 2.26

g_permission_release

Attempts to release the permission represented by permission.

Available since: 2.26

g_permission_release_async

Attempts to release the permission represented by permission.

Available since: 2.26

g_permission_release_finish

Collects the result of attempting to release the permission represented by permission.

Available since: 2.26

Methods inherited from GObject (43)

Properties

Properties inherited from GPermission (3)
Gio.Permission:allowed

TRUE if the caller currently has permission to perform the action that permission represents the permission to perform.

Gio.Permission:can-acquire

TRUE if it is generally possible to acquire the permission by calling g_permission_acquire().

Gio.Permission:can-release

TRUE if it is generally possible to release the permission by calling g_permission_release().

Signals

Signals inherited from GObject (1)