gi-ostree-1.0.12: OSTree bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.OSTree.Objects.AsyncProgress

Description

No description available in the introspection data.

Synopsis

Exported types

class (GObject o, IsDescendantOf AsyncProgress o) => IsAsyncProgress o Source #

Type class for types which can be safely cast to AsyncProgress, for instance with toAsyncProgress.

Instances

Instances details
(GObject o, IsDescendantOf AsyncProgress o) => IsAsyncProgress o Source # 
Instance details

Defined in GI.OSTree.Objects.AsyncProgress

toAsyncProgress :: (MonadIO m, IsAsyncProgress o) => o -> m AsyncProgress Source #

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

Methods

Overloaded methods

finish

asyncProgressFinish Source #

Arguments

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

self: Self

-> m () 

Process any pending signals, ensuring the main context is cleared of sources used by this object. Also ensures that no further events will be queued.

getStatus

asyncProgressGetStatus Source #

Arguments

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

self: an AsyncProgress

-> m (Maybe Text)

Returns: the current status, or Nothing if none is set

Get the human-readable status string from the AsyncProgress. This operation is thread-safe. The retuned value may be Nothing if no status is set.

This is a convenience function to get the well-known status key.

Since: 2017.6

getUint

asyncProgressGetUint :: (HasCallStack, MonadIO m, IsAsyncProgress a) => a -> Text -> m Word32 Source #

No description available in the introspection data.

getUint64

asyncProgressGetUint64 :: (HasCallStack, MonadIO m, IsAsyncProgress a) => a -> Text -> m Word64 Source #

No description available in the introspection data.

getVariant

asyncProgressGetVariant Source #

Arguments

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

self: an AsyncProgress

-> Text

key: a key to look up

-> m (Maybe GVariant)

Returns: value for the given key, or Nothing if it was not set

Look up a key in the AsyncProgress and return the GVariant associated with it. The lookup is thread-safe.

Since: 2017.6

new

asyncProgressNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m AsyncProgress

Returns: A new progress object

No description available in the introspection data.

newAndConnect

asyncProgressNewAndConnect :: (HasCallStack, MonadIO m) => Ptr () -> Ptr () -> m AsyncProgress Source #

No description available in the introspection data.

setStatus

asyncProgressSetStatus Source #

Arguments

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

self: an AsyncProgress

-> Maybe Text

status: new status string, or Nothing to clear the status

-> m () 

Set the human-readable status string for the AsyncProgress. This operation is thread-safe. Nothing may be passed to clear the status.

This is a convenience function to set the well-known status key.

Since: 2017.6

setUint

asyncProgressSetUint :: (HasCallStack, MonadIO m, IsAsyncProgress a) => a -> Text -> Word32 -> m () Source #

No description available in the introspection data.

setUint64

asyncProgressSetUint64 :: (HasCallStack, MonadIO m, IsAsyncProgress a) => a -> Text -> Word64 -> m () Source #

No description available in the introspection data.

setVariant

asyncProgressSetVariant Source #

Arguments

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

self: an AsyncProgress

-> Text

key: a key to set

-> GVariant

value: the value to assign to key

-> m () 

Assign a new value to the given key, replacing any existing value. The operation is thread-safe. value may be a floating reference; variantRefSink will be called on it.

Any watchers of the AsyncProgress will be notified of the change if value differs from the existing value for key.

Since: 2017.6

Signals

changed

type AsyncProgressChangedCallback = IO () Source #

Emitted when self has been changed.

type C_AsyncProgressChangedCallback = Ptr () -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

afterAsyncProgressChanged :: (IsAsyncProgress a, MonadIO m) => a -> AsyncProgressChangedCallback -> m SignalHandlerId Source #

Connect a signal handler for the changed signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after asyncProgress #changed callback

onAsyncProgressChanged :: (IsAsyncProgress a, MonadIO m) => a -> AsyncProgressChangedCallback -> m SignalHandlerId Source #

Connect a signal handler for the changed signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on asyncProgress #changed callback