13#ifndef ML_BACKGROUND_TASK_MESSAGE_H
14#define ML_BACKGROUND_TASK_MESSAGE_H
#define MLBACKGROUNDTASKS_EXPORT
Project global and OS specific declarations.
The background task receiver is a light-weight base class which can be inherited (e....
BackgroundTaskMessageReceiver()
~BackgroundTaskMessageReceiver()
The base class of all background messages.
BackgroundTask * sender()
returns the task from which the message originates
virtual void executeSynchronous()
execute message when it is delivered and the task runs synchronous, the default implementation just c...
void setSender(BackgroundTask *task)
set who sends the message (default is NULL and means that the message's sender is not a BackgroundTas...
virtual void taskWillBeDestroyed()
this needs to be implemented if the message uses finishedProcessing() and the task is finished while ...
BackgroundTaskMessageReceiver * receiver()
returns the object which receives the message (default is NULL)
void setReceiver(BackgroundTaskMessageReceiver *receiverArg)
set who receives the message (default is NULL)
virtual void execute()=0
execute message when it is delivered (reimplement in subclasses)
virtual bool finishedProcessing()
tells if the message needs further processing or if it may be deleted if true is returned,...
virtual ~BackgroundTaskMessage()
Base class for a task that is started in an extra thread.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.