OpalTask

Base class for all OPAL task implementations.

Declared in src/libs/libopal/opal/OpalTask.hpp
Inherited By BatchCancelTask, BatchListTask, BatchStatusTask, CaptureWidgetTask, config::ui::ConfigTask, construct::opal::DefinitionEditorCameraTask, construct::opal::DefinitionEditorDeleteTask, construct::opal::DefinitionEditorDuplicateTask, construct::opal::DefinitionEditorEditTask, construct::opal::DefinitionEditorNewTask, construct::opal::DefinitionEditorOpenTask, construct::opal::DefinitionEditorRevertTask, construct::opal::DefinitionEditorSaveTask, construct::opal::DefinitionEditorStateTask, DiagnosticsCollectTask, DirectiveDeleteTask, DirectiveListTask, DirectiveNewTask, DirectivePauseTask, DirectiveResumeTask, face::OpalEvaluateExpressionTask, face::OpalLoweringCompareTask, face::OpalLoweringExplainTask, face::OpalSheetCompileStatusTask, face::OpalSpirvDumpTask, face::OpalValidateExpressionTask, FsChmodTask, FsCopyTask, GotoActivityTask, GraphicsReportTask, help::HelpFindTask, help::HelpListTask, help::HelpOpenTask, help::HelpOutlineTask, help::HelpReadTask, help::HelpSearchTask, InventoryMeasureTask, ListActivitiesTask, LLVMShadeGetSourceTask, LLVMShadeRunTask, MonitorColorTask, MonitorFactsTask, MonitorStatusTask, MonitorViewTask, octomy::trove::opal::TroveAnswerAuthTask, octomy::trove::opal::TroveCancelTask, octomy::trove::opal::TroveContinueTask, octomy::trove::opal::TroveDispatchTask, octomy::trove::opal::TroveEnqueueTask, octomy::trove::opal::TroveFinalizeTask, octomy::trove::opal::TroveListTask, octomy::trove::opal::TroveStatusTask, octomy::trove::opal::TroveSwitchModelTask, octomy::trove::opal::TroveSyncTask, ScreenshotCopyTask, ScreenshotSaveTask, SerialCloseTask, SerialCreateConnectionTask, SerialDeleteConnectionTask, SerialDripfeedAdvanceTask, SerialDripfeedCancelTask, SerialDripfeedFileTask, SerialDripfeedPauseTask, SerialDripfeedResumeTask, SerialDripfeedStartTask, SerialDripfeedStatusTask, SerialGetConnectionTask, SerialGetStatusTask, SerialListConnectionsTask, SerialListPortsTask, SerialOpenTask, SerialReadLogTask, SerialSendAndWaitTask, SerialSendBytesTask, SerialSendLineTask, SerialUpdateConnectionTask, ThreadListRunawayTask, and WatchdogStatusTask
Group libopal

Detailed description

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, OpalTaskRegistry.

Member function documentation

present

[virtual] OpalStepPresentation OpalTask::present(const QVariantMap &args, const OpalReferenceNamer &namer) const

Returns 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.

In this section