org.freedesktop.Problems2.Task
org.freedesktop.Problems2.Task — Represents an long running task
org.freedesktop.Problems2.Task.Start
Start
( | IN Dict<String,Variant> options) ; |
Request to start processing of the task. This method can be called only if the status property equals TASK_READY.
options
For future needs
org.freedesktop.Problems2.Task.Cancel
Cancel
( | IN Int32 flags) ; |
Request to cancel processing of the task. The task will be disposed after that. This method can be called only if the status property equals TASK_PROCESSING.
flags
For future needs
org.freedesktop.Problems2.Task.Finish
Finish
( | OUT Dict<String,Variant> results, |
OUT Int32 code) ; |
Takes the results and dispose the task. The method can be called only if the status property equals TASK_DONE.
results
The parameter for returning the results.
code
Return code
Successfully finished
Processing failed - check status code of the task type.
Accessed using the org.freedesktop.DBus.Properties interface.
READ Dict<String,Variant> Details ;
Any details that the specific task provides.
READ Int32 Status ;
This property supports org.freedesktop.DBus.Properties.PropertiesChanged signal.
TASK_NEW: processing can be started
TASK_RUNNING: the task is being processed
TASK_STOPPED: processing has been stopped - the task can define several stop points where the users can adjust the configuration
TASK_CANCELED: processing has been canceled
TASK_FAILED: processing has been failed
TASK_DONE: processing has been finished