OSTree.AsyncProgress¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
Properties¶
None
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
Emitted when self has been changed. |
Fields¶
- Inherited:
Class Details¶
- class OSTree.AsyncProgress(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
A new progress object
- Return type:
- copy_state(dest)¶
- Parameters:
dest (
OSTree.AsyncProgress) – AnOSTree.AsyncProgressto copy to
Atomically copies all the state from self to dest, without invoking the callback. This is used for proxying progress objects across different
GLib.MainContexts.New in version 2019.6.
- finish()¶
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.
- get_status()¶
-
Get the human-readable status string from the
OSTree.AsyncProgress. This operation is thread-safe. The retuned value may beNoneif no status is set.This is a convenience function to get the well-known
statuskey.New in version 2017.6.
- get_variant(key)¶
- Parameters:
key (
str) – a key to look up- Returns:
value for the given key, or
Noneif it was not set- Return type:
GLib.VariantorNone
Look up a key in the
OSTree.AsyncProgressand return theGLib.Variantassociated with it. The lookup is thread-safe.New in version 2017.6.
- set_status(status)¶
-
Set the human-readable status string for the
OSTree.AsyncProgress. This operation is thread-safe.Nonemay be passed to clear the status.This is a convenience function to set the well-known
statuskey.New in version 2017.6.
- set_variant(key, value)¶
- Parameters:
key (
str) – a key to setvalue (
GLib.Variant) – the value to assign to key
Assign a new value to the given key, replacing any existing value. The operation is thread-safe. value may be a floating reference;
GLib.Variant.ref_sink() will be called on it.Any watchers of the
OSTree.AsyncProgresswill be notified of the change if value differs from the existing value for key.New in version 2017.6.
Signal Details¶
- OSTree.AsyncProgress.signals.changed(async_progress)¶
- Signal Name:
changed- Flags:
- Parameters:
async_progress (
OSTree.AsyncProgress) – The object which received the signal
Emitted when self has been changed.