MeVisLabToolboxReference
ml::BackgroundTaskManager::Observer Class Reference

abstract interface to observe the BackgroundTaskManager More...

#include <mlBackgroundTaskManager.h>

List of all members.

Public Member Functions

virtual ~Observer ()
 virtual destructor
virtual void taskAdded (BackgroundTask *task)=0
 called when a task was added (but is not yet started)
virtual void taskRemoved (BackgroundTask *task)=0
 called when a task was removed (either finished or canceled or not even started)
virtual void taskStatusUpdated ()=0
 called in regular intervals if there are running tasks and if the tasks change status

Detailed Description

abstract interface to observe the BackgroundTaskManager

The BackgroundTaskManager guarantees that the Observer is only called from within the GUI thread and that the given task is not changed while taskAdded/taskRemoved is called.

Definition at line 101 of file mlBackgroundTaskManager.h.


Constructor & Destructor Documentation

virtual ml::BackgroundTaskManager::Observer::~Observer ( ) [inline, virtual]

virtual destructor

Definition at line 105 of file mlBackgroundTaskManager.h.


Member Function Documentation

virtual void ml::BackgroundTaskManager::Observer::taskAdded ( BackgroundTask task) [pure virtual]

called when a task was added (but is not yet started)

virtual void ml::BackgroundTaskManager::Observer::taskRemoved ( BackgroundTask task) [pure virtual]

called when a task was removed (either finished or canceled or not even started)

virtual void ml::BackgroundTaskManager::Observer::taskStatusUpdated ( ) [pure virtual]

called in regular intervals if there are running tasks and if the tasks change status

You should use this as an indication to schedule an update to the user interface if you want to show the tasklist progress. Do NOT do expensive operation in taskStatusUpdated(), since it is called for each message a task sends to the GUI.


The documentation for this class was generated from the following file: