Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- newtype Permission = Permission (ForeignPtr Permission)
- class GObject o => PermissionK o
- toPermission :: PermissionK o => o -> IO Permission
- noPermission :: Maybe Permission
- permissionAcquire :: (MonadIO m, PermissionK a, CancellableK b) => a -> Maybe b -> m ()
- permissionAcquireAsync :: (MonadIO m, PermissionK a, CancellableK b) => a -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- permissionAcquireFinish :: (MonadIO m, PermissionK a, AsyncResultK b) => a -> b -> m ()
- permissionGetAllowed :: (MonadIO m, PermissionK a) => a -> m Bool
- permissionGetCanAcquire :: (MonadIO m, PermissionK a) => a -> m Bool
- permissionGetCanRelease :: (MonadIO m, PermissionK a) => a -> m Bool
- permissionImplUpdate :: (MonadIO m, PermissionK a) => a -> Bool -> Bool -> Bool -> m ()
- permissionRelease :: (MonadIO m, PermissionK a, CancellableK b) => a -> Maybe b -> m ()
- permissionReleaseAsync :: (MonadIO m, PermissionK a, CancellableK b) => a -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- permissionReleaseFinish :: (MonadIO m, PermissionK a, AsyncResultK b) => a -> b -> m ()
- data PermissionAllowedPropertyInfo
- getPermissionAllowed :: (MonadIO m, PermissionK o) => o -> m Bool
- data PermissionCanAcquirePropertyInfo
- getPermissionCanAcquire :: (MonadIO m, PermissionK o) => o -> m Bool
- data PermissionCanReleasePropertyInfo
- getPermissionCanRelease :: (MonadIO m, PermissionK o) => o -> m Bool
Exported types
newtype Permission Source
GObject Permission | |
type ParentTypes Permission | |
type AttributeList Permission | |
type SignalList Permission |
class GObject o => PermissionK o Source
(GObject o, IsDescendantOf Permission o) => PermissionK o |
toPermission :: PermissionK o => o -> IO Permission Source
Methods
permissionAcquire
permissionAcquire :: (MonadIO m, PermissionK a, CancellableK b) => a -> Maybe b -> m () Source
permissionAcquireAsync
permissionAcquireAsync :: (MonadIO m, PermissionK a, CancellableK b) => a -> Maybe b -> Maybe AsyncReadyCallback -> m () Source
permissionAcquireFinish
permissionAcquireFinish :: (MonadIO m, PermissionK a, AsyncResultK b) => a -> b -> m () Source
permissionGetAllowed
permissionGetAllowed :: (MonadIO m, PermissionK a) => a -> m Bool Source
permissionGetCanAcquire
permissionGetCanAcquire :: (MonadIO m, PermissionK a) => a -> m Bool Source
permissionGetCanRelease
permissionGetCanRelease :: (MonadIO m, PermissionK a) => a -> m Bool Source
permissionImplUpdate
permissionImplUpdate :: (MonadIO m, PermissionK a) => a -> Bool -> Bool -> Bool -> m () Source
permissionRelease
permissionRelease :: (MonadIO m, PermissionK a, CancellableK b) => a -> Maybe b -> m () Source
permissionReleaseAsync
permissionReleaseAsync :: (MonadIO m, PermissionK a, CancellableK b) => a -> Maybe b -> Maybe AsyncReadyCallback -> m () Source
permissionReleaseFinish
permissionReleaseFinish :: (MonadIO m, PermissionK a, AsyncResultK b) => a -> b -> m () Source
Properties
Allowed
data PermissionAllowedPropertyInfo Source
AttrInfo PermissionAllowedPropertyInfo | |
type AttrLabel PermissionAllowedPropertyInfo = "Permission::allowed" | |
type AttrGetType PermissionAllowedPropertyInfo = Bool | |
type AttrBaseTypeConstraint PermissionAllowedPropertyInfo = PermissionK | |
type AttrSetTypeConstraint PermissionAllowedPropertyInfo = * ~ () | |
type AttrAllowedOps PermissionAllowedPropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) |
getPermissionAllowed :: (MonadIO m, PermissionK o) => o -> m Bool Source
CanAcquire
data PermissionCanAcquirePropertyInfo Source
AttrInfo PermissionCanAcquirePropertyInfo | |
type AttrLabel PermissionCanAcquirePropertyInfo = "Permission::can-acquire" | |
type AttrGetType PermissionCanAcquirePropertyInfo = Bool | |
type AttrBaseTypeConstraint PermissionCanAcquirePropertyInfo = PermissionK | |
type AttrSetTypeConstraint PermissionCanAcquirePropertyInfo = * ~ () | |
type AttrAllowedOps PermissionCanAcquirePropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) |
getPermissionCanAcquire :: (MonadIO m, PermissionK o) => o -> m Bool Source
CanRelease
data PermissionCanReleasePropertyInfo Source
AttrInfo PermissionCanReleasePropertyInfo | |
type AttrLabel PermissionCanReleasePropertyInfo = "Permission::can-release" | |
type AttrGetType PermissionCanReleasePropertyInfo = Bool | |
type AttrBaseTypeConstraint PermissionCanReleasePropertyInfo = PermissionK | |
type AttrSetTypeConstraint PermissionCanReleasePropertyInfo = * ~ () | |
type AttrAllowedOps PermissionCanReleasePropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) |
getPermissionCanRelease :: (MonadIO m, PermissionK o) => o -> m Bool Source