|
Bifrost SDK
Bifrost SDK documentation
|
Abstract interface for observing the progress of a task. More...
#include <TaskObserver.h>
Public Types | |
| using | TaskStatus = TaskStatus |
| using | Message = Message |
Public Member Functions | |
| ITaskObserver ()=default | |
| Constructor. More... | |
| virtual | ~ITaskObserver () |
| Destructor. More... | |
Protected Member Functions | |
| virtual void | onStart () noexcept |
| Called when the task starts (defaults to noop). More... | |
| virtual void | onProgress (StringView const &title, unsigned num, unsigned denum) noexcept |
| Called when the task makes progress (defaults to noop). More... | |
| virtual void | onMessage (Message const &message) noexcept |
| Called when the task reports a message (defaults to noop). More... | |
| virtual void | onDone (TaskStatus status) noexcept=0 |
| Called when the task completed (must be overridden). More... | |
Protected Attributes | |
| friend | TaskNotifier |
Abstract interface for observing the progress of a task.
The virtual function onDone must be overridden, but the other methods may optionally be overridden.
Definition at line 96 of file TaskObserver.h.
| using Amino::ITaskObserver::Message = Message |
Definition at line 101 of file TaskObserver.h.
Definition at line 100 of file TaskObserver.h.
|
default |
Constructor.
|
virtual |
Destructor.
|
protectedpure virtualnoexcept |
Called when the task completed (must be overridden).
Implemented in Amino::ForwardTaskObserver.
|
protectedvirtualnoexcept |
Called when the task reports a message (defaults to noop).
Reimplemented in Amino::ForwardTaskObserver.
|
protectedvirtualnoexcept |
Called when the task makes progress (defaults to noop).
Reimplemented in Amino::ForwardTaskObserver.
|
protectedvirtualnoexcept |
Called when the task starts (defaults to noop).
Reimplemented in Amino::ForwardTaskObserver.
|
protected |
Definition at line 112 of file TaskObserver.h.