gi-gio-2.0.24: Gio bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Objects.SimplePermission

Contents

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.

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