| 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 |
GI.OSTree.Objects.AsyncProgress
Contents
Description
- newtype AsyncProgress = AsyncProgress (ManagedPtr AsyncProgress)
- class GObject o => IsAsyncProgress o
- toAsyncProgress :: (MonadIO m, IsAsyncProgress o) => o -> m AsyncProgress
- noAsyncProgress :: Maybe AsyncProgress
- asyncProgressFinish :: (HasCallStack, MonadIO m, IsAsyncProgress a) => a -> m ()
- asyncProgressGetStatus :: (HasCallStack, MonadIO m, IsAsyncProgress a) => a -> m (Maybe Text)
- asyncProgressGetUint :: (HasCallStack, MonadIO m, IsAsyncProgress a) => a -> Text -> m Word32
- asyncProgressGetUint64 :: (HasCallStack, MonadIO m, IsAsyncProgress a) => a -> Text -> m Word64
- asyncProgressGetVariant :: (HasCallStack, MonadIO m, IsAsyncProgress a) => a -> Text -> m (Maybe GVariant)
- asyncProgressNew :: (HasCallStack, MonadIO m) => m AsyncProgress
- asyncProgressNewAndConnect :: (HasCallStack, MonadIO m) => Ptr () -> Ptr () -> m AsyncProgress
- asyncProgressSetStatus :: (HasCallStack, MonadIO m, IsAsyncProgress a) => a -> Maybe Text -> m ()
- asyncProgressSetUint :: (HasCallStack, MonadIO m, IsAsyncProgress a) => a -> Text -> Word32 -> m ()
- asyncProgressSetUint64 :: (HasCallStack, MonadIO m, IsAsyncProgress a) => a -> Text -> Word64 -> m ()
- asyncProgressSetVariant :: (HasCallStack, MonadIO m, IsAsyncProgress a) => a -> Text -> GVariant -> m ()
- type AsyncProgressChangedCallback = IO ()
- type C_AsyncProgressChangedCallback = Ptr () -> Ptr () -> IO ()
- afterAsyncProgressChanged :: (IsAsyncProgress a, MonadIO m) => a -> AsyncProgressChangedCallback -> m SignalHandlerId
- genClosure_AsyncProgressChanged :: AsyncProgressChangedCallback -> IO Closure
- mk_AsyncProgressChangedCallback :: C_AsyncProgressChangedCallback -> IO (FunPtr C_AsyncProgressChangedCallback)
- noAsyncProgressChangedCallback :: Maybe AsyncProgressChangedCallback
- onAsyncProgressChanged :: (IsAsyncProgress a, MonadIO m) => a -> AsyncProgressChangedCallback -> m SignalHandlerId
- wrap_AsyncProgressChangedCallback :: AsyncProgressChangedCallback -> Ptr () -> Ptr () -> IO ()
Exported types
newtype AsyncProgress Source #
Constructors
| AsyncProgress (ManagedPtr AsyncProgress) |
class GObject o => IsAsyncProgress o Source #
Instances
toAsyncProgress :: (MonadIO m, IsAsyncProgress o) => o -> m AsyncProgress Source #
Methods
finish
Arguments
| :: (HasCallStack, MonadIO m, IsAsyncProgress a) | |
| => a |
|
| -> 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 |
|
| -> m (Maybe Text) | Returns: the current status, or |
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 |
|
| -> Text |
|
| -> m (Maybe GVariant) | Returns: value for the given |
Look up a key in the AsyncProgress and return the GVariant associated
with it. The lookup is thread-safe.
Since: 2017.6
new
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 |
|
| -> Maybe Text |
|
| -> 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 |
|
| -> Text |
|
| -> GVariant |
|
| -> 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 #
afterAsyncProgressChanged :: (IsAsyncProgress a, MonadIO m) => a -> AsyncProgressChangedCallback -> m SignalHandlerId Source #
mk_AsyncProgressChangedCallback :: C_AsyncProgressChangedCallback -> IO (FunPtr C_AsyncProgressChangedCallback) Source #
onAsyncProgressChanged :: (IsAsyncProgress a, MonadIO m) => a -> AsyncProgressChangedCallback -> m SignalHandlerId Source #
wrap_AsyncProgressChangedCallback :: AsyncProgressChangedCallback -> Ptr () -> Ptr () -> IO () Source #