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 AsyncProgress = AsyncProgress (ManagedPtr AsyncProgress)
- class GObject o => IsAsyncProgress o
- toAsyncProgress :: (MonadIO m, IsAsyncProgress o) => o -> m AsyncProgress
- noAsyncProgress :: Maybe AsyncProgress
- data AsyncProgressFinishMethodInfo
- asyncProgressFinish :: (HasCallStack, MonadIO m, IsAsyncProgress a) => a -> m ()
- data AsyncProgressGetStatusMethodInfo
- asyncProgressGetStatus :: (HasCallStack, MonadIO m, IsAsyncProgress a) => a -> m (Maybe Text)
- data AsyncProgressGetUintMethodInfo
- asyncProgressGetUint :: (HasCallStack, MonadIO m, IsAsyncProgress a) => a -> Text -> m Word32
- data AsyncProgressGetUint64MethodInfo
- asyncProgressGetUint64 :: (HasCallStack, MonadIO m, IsAsyncProgress a) => a -> Text -> m Word64
- data AsyncProgressGetVariantMethodInfo
- 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
- data AsyncProgressSetStatusMethodInfo
- asyncProgressSetStatus :: (HasCallStack, MonadIO m, IsAsyncProgress a) => a -> Maybe Text -> m ()
- data AsyncProgressSetUintMethodInfo
- asyncProgressSetUint :: (HasCallStack, MonadIO m, IsAsyncProgress a) => a -> Text -> Word32 -> m ()
- data AsyncProgressSetUint64MethodInfo
- asyncProgressSetUint64 :: (HasCallStack, MonadIO m, IsAsyncProgress a) => a -> Text -> Word64 -> m ()
- data AsyncProgressSetVariantMethodInfo
- asyncProgressSetVariant :: (HasCallStack, MonadIO m, IsAsyncProgress a) => a -> Text -> GVariant -> m ()
- type AsyncProgressChangedCallback = IO ()
- data AsyncProgressChangedSignalInfo
- 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 #
GObject AsyncProgress Source # | |
IsObject AsyncProgress Source # | |
IsAsyncProgress AsyncProgress Source # | |
((~) * info (ResolveAsyncProgressMethod t AsyncProgress), MethodInfo * info AsyncProgress p) => IsLabel t (AsyncProgress -> p) Source # | |
((~) * info (ResolveAsyncProgressMethod t AsyncProgress), MethodInfo * info AsyncProgress p) => IsLabelProxy t (AsyncProgress -> p) Source # | |
HasAttributeList * AsyncProgress Source # | |
type AttributeList AsyncProgress Source # | |
type SignalList AsyncProgress Source # | |
class GObject o => IsAsyncProgress o Source #
toAsyncProgress :: (MonadIO m, IsAsyncProgress o) => o -> m AsyncProgress Source #
Methods
finish
data AsyncProgressFinishMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsAsyncProgress a) => MethodInfo * AsyncProgressFinishMethodInfo a signature Source # | |
:: (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
data AsyncProgressGetStatusMethodInfo Source #
((~) * signature (m (Maybe Text)), MonadIO m, IsAsyncProgress a) => MethodInfo * AsyncProgressGetStatusMethodInfo a signature Source # | |
asyncProgressGetStatus Source #
:: (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
data AsyncProgressGetUintMethodInfo Source #
((~) * signature (Text -> m Word32), MonadIO m, IsAsyncProgress a) => MethodInfo * AsyncProgressGetUintMethodInfo a signature Source # | |
asyncProgressGetUint :: (HasCallStack, MonadIO m, IsAsyncProgress a) => a -> Text -> m Word32 Source #
No description available in the introspection data.
getUint64
data AsyncProgressGetUint64MethodInfo Source #
((~) * signature (Text -> m Word64), MonadIO m, IsAsyncProgress a) => MethodInfo * AsyncProgressGetUint64MethodInfo a signature Source # | |
asyncProgressGetUint64 :: (HasCallStack, MonadIO m, IsAsyncProgress a) => a -> Text -> m Word64 Source #
No description available in the introspection data.
getVariant
data AsyncProgressGetVariantMethodInfo Source #
((~) * signature (Text -> m (Maybe GVariant)), MonadIO m, IsAsyncProgress a) => MethodInfo * AsyncProgressGetVariantMethodInfo a signature Source # | |
asyncProgressGetVariant Source #
:: (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
:: (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
data AsyncProgressSetStatusMethodInfo Source #
((~) * signature (Maybe Text -> m ()), MonadIO m, IsAsyncProgress a) => MethodInfo * AsyncProgressSetStatusMethodInfo a signature Source # | |
asyncProgressSetStatus Source #
:: (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
data AsyncProgressSetUintMethodInfo Source #
((~) * signature (Text -> Word32 -> m ()), MonadIO m, IsAsyncProgress a) => MethodInfo * AsyncProgressSetUintMethodInfo a signature Source # | |
asyncProgressSetUint :: (HasCallStack, MonadIO m, IsAsyncProgress a) => a -> Text -> Word32 -> m () Source #
No description available in the introspection data.
setUint64
data AsyncProgressSetUint64MethodInfo Source #
((~) * signature (Text -> Word64 -> m ()), MonadIO m, IsAsyncProgress a) => MethodInfo * AsyncProgressSetUint64MethodInfo a signature Source # | |
asyncProgressSetUint64 :: (HasCallStack, MonadIO m, IsAsyncProgress a) => a -> Text -> Word64 -> m () Source #
No description available in the introspection data.
setVariant
data AsyncProgressSetVariantMethodInfo Source #
((~) * signature (Text -> GVariant -> m ()), MonadIO m, IsAsyncProgress a) => MethodInfo * AsyncProgressSetVariantMethodInfo a signature Source # | |
asyncProgressSetVariant Source #
:: (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 #