TaskInterface Class
class Tasking::TaskInterfaceTaskInterface is the abstract base class for implementing custom task adapters. More...
| Header: | #include <solutions/tasking/tasktree.h> |
| Inherits: | QObject |
| Inherited By: |
Signals
| void | done(bool success) |
Detailed Description
\inmoduleTaskingSolution
To implement a custom task adapter, derive your adapter from the TaskAdapter<Task> class template. TaskAdapter automatically creates and destroys the custom task instance and associates the adapter with a given Task type.
Member Function Documentation
[signal] void TaskInterface::done(bool success)
Emit this signal from the TaskAdapter<Task>'s subclass, when the Task is finished. Pass true as a success argument when the task finishes with success; otherwise, when an error occurs, pass false.