gi-gio-2.0.34: Gio bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Objects.SimplePermission

Description

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

Calling permissionAcquire or permissionRelease on a GSimplePermission will result in errors.

Synopsis

Exported types

class (GObject o, IsDescendantOf SimplePermission o) => IsSimplePermission o Source #

Type class for types which can be safely cast to SimplePermission, for instance with toSimplePermission.

Instances

Instances details
(GObject o, IsDescendantOf SimplePermission o) => IsSimplePermission o Source # 
Instance details

Defined in GI.Gio.Objects.SimplePermission

toSimplePermission :: (MonadIO m, IsSimplePermission o) => o -> m SimplePermission Source #

Cast to SimplePermission, for types for which this is known to be safe. For general casts, use castTo.

Methods

new

simplePermissionNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Bool

allowed: True if the action is allowed

-> m SimplePermission

Returns: the SimplePermission, as a Permission

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

Since: 2.26