13 #ifndef ML_BACKGROUND_TASK_MESSAGE_H
14 #define ML_BACKGROUND_TASK_MESSAGE_H
#define MLBACKGROUNDTASKS_EXPORT
The background task receiver is a light-weight base class that 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()
Executes message when it is delivered and the task runs synchronously.
void setSender(BackgroundTask *task)
Sets who sends the message. Default is NULL and this means that the message's sender is not a Backgro...
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)
Sets who receives the message. Default is NULL.
virtual void execute()=0
Executes message when it is delivered.
virtual bool finishedProcessing()
Returns whether the message needs further processing or if it may be deleted.
virtual ~BackgroundTaskMessage()
Base class for a task that is started in an extra thread.