gi-dazzle-1.0.1: libdazzle bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Dazzle.Objects.TaskCache

Description

No description available in the introspection data.

Synopsis

Exported types

newtype TaskCache Source #

Memory-managed wrapper type.

Constructors

TaskCache (ManagedPtr TaskCache) 

Instances

Instances details
Eq TaskCache Source # 
Instance details

Defined in GI.Dazzle.Objects.TaskCache

GObject TaskCache Source # 
Instance details

Defined in GI.Dazzle.Objects.TaskCache

ManagedPtrNewtype TaskCache Source # 
Instance details

Defined in GI.Dazzle.Objects.TaskCache

Methods

toManagedPtr :: TaskCache -> ManagedPtr TaskCache

TypedObject TaskCache Source # 
Instance details

Defined in GI.Dazzle.Objects.TaskCache

Methods

glibType :: IO GType

HasParentTypes TaskCache Source # 
Instance details

Defined in GI.Dazzle.Objects.TaskCache

IsGValue (Maybe TaskCache) Source #

Convert TaskCache to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Dazzle.Objects.TaskCache

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe TaskCache -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe TaskCache)

type ParentTypes TaskCache Source # 
Instance details

Defined in GI.Dazzle.Objects.TaskCache

type ParentTypes TaskCache = '[Object]

class (GObject o, IsDescendantOf TaskCache o) => IsTaskCache o Source #

Type class for types which can be safely cast to TaskCache, for instance with toTaskCache.

Instances

Instances details
(GObject o, IsDescendantOf TaskCache o) => IsTaskCache o Source # 
Instance details

Defined in GI.Dazzle.Objects.TaskCache

toTaskCache :: (MonadIO m, IsTaskCache o) => o -> m TaskCache Source #

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

Methods

evict

taskCacheEvict :: (HasCallStack, MonadIO m, IsTaskCache a) => a -> Ptr () -> m Bool Source #

No description available in the introspection data.

evictAll

taskCacheEvictAll :: (HasCallStack, MonadIO m, IsTaskCache a) => a -> m () Source #

No description available in the introspection data.

getAsync

taskCacheGetAsync :: (HasCallStack, MonadIO m, IsTaskCache a, IsCancellable b) => a -> Ptr () -> Bool -> Maybe b -> Maybe AsyncReadyCallback -> m () Source #

No description available in the introspection data.

getFinish

taskCacheGetFinish Source #

Arguments

:: (HasCallStack, MonadIO m, IsTaskCache a, IsAsyncResult b) 
=> a 
-> b 
-> m (Ptr ())

Returns: The result from the cache. (Can throw GError)

Finish a call to taskCacheGetAsync.

peek

taskCachePeek Source #

Arguments

:: (HasCallStack, MonadIO m, IsTaskCache a) 
=> a

self: An TaskCache

-> Ptr ()

key: The key for the cache

-> m (Maybe Object)

Returns: A Object or Nothing if the key was not found in the cache.

Peeks to see key is contained in the cache and returns the matching Object if it does.

The reference count of the resulting Object is not incremented. For that reason, it is important to remember that this function may only be called from the main thread.

setName

taskCacheSetName :: (HasCallStack, MonadIO m, IsTaskCache a) => a -> Text -> m () Source #

No description available in the introspection data.

Properties

keyCopyFunc

No description available in the introspection data.

constructTaskCacheKeyCopyFunc :: (IsTaskCache o, MonadIO m) => Ptr () -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “key-copy-func” property. This is rarely needed directly, but it is used by new.

keyDestroyFunc

No description available in the introspection data.

constructTaskCacheKeyDestroyFunc :: (IsTaskCache o, MonadIO m) => Ptr () -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “key-destroy-func” property. This is rarely needed directly, but it is used by new.

keyEqualFunc

No description available in the introspection data.

constructTaskCacheKeyEqualFunc :: (IsTaskCache o, MonadIO m) => Ptr () -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “key-equal-func” property. This is rarely needed directly, but it is used by new.

keyHashFunc

No description available in the introspection data.

constructTaskCacheKeyHashFunc :: (IsTaskCache o, MonadIO m) => Ptr () -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “key-hash-func” property. This is rarely needed directly, but it is used by new.

populateCallback

No description available in the introspection data.

constructTaskCachePopulateCallback :: (IsTaskCache o, MonadIO m) => Ptr () -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “populate-callback” property. This is rarely needed directly, but it is used by new.

populateCallbackData

No description available in the introspection data.

constructTaskCachePopulateCallbackData :: (IsTaskCache o, MonadIO m) => Ptr () -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “populate-callback-data” property. This is rarely needed directly, but it is used by new.

populateCallbackDataDestroy

No description available in the introspection data.

constructTaskCachePopulateCallbackDataDestroy :: (IsTaskCache o, MonadIO m) => Ptr () -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “populate-callback-data-destroy” property. This is rarely needed directly, but it is used by new.

timeToLive

This is the number of milliseconds before an item should be evicted from the cache.

A value of zero indicates no eviction.

constructTaskCacheTimeToLive :: (IsTaskCache o, MonadIO m) => Int64 -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “time-to-live” property. This is rarely needed directly, but it is used by new.

valueCopyFunc

No description available in the introspection data.

constructTaskCacheValueCopyFunc :: (IsTaskCache o, MonadIO m) => Ptr () -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “value-copy-func” property. This is rarely needed directly, but it is used by new.

valueDestroyFunc

No description available in the introspection data.

constructTaskCacheValueDestroyFunc :: (IsTaskCache o, MonadIO m) => Ptr () -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “value-destroy-func” property. This is rarely needed directly, but it is used by new.