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

GI.Gio.Objects.SimplePermission

Description

SimplePermission 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 request or release 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

Overloaded 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