Base class for all OPAL task implementations. More...
| virtual OpalStepPresentation | present(const QVariantMap &args, const OpalReferenceNamer &namer) const |
An OpalTask is a named, self-contained unit of work. It acquires all state and resources it needs from its name and parameters alone (Android Intent model).
Subclasses must implement execute() which is called on a background thread by the OpalTaskRuntime.
See also OpalTaskResult, OpalTaskParams, OpalTaskContext, and OpalTaskRegistry.
[virtual] OpalStepPresentation OpalTask::present(const QVariantMap &args, const OpalReferenceNamer &namer) constReturns what a plan step of this task shows for args: the row label and the tooltip lines (opal-task-presentation §OTP-2.2).
The default builds it from the parameter descriptors: the Inline arguments make the label, and every given argument makes a tooltip line. namer gives the display name of a reference argument. Override the function for a label that is not a list of values, and call the default for the tooltip. It is pure: it reads args and calls namer, never a document, a widget or a setting.
See also OpalStepPresenter.