Task Class Reference

Interface for a Task (frontend call, compiler call, annotation etc). More...

#include <TaskInterface.h>

Inheritance diagram for Task:

Inheritance graph
[legend]
List of all members.

Public Types

 BEFORE_START
 RUNNING
 FINISHED_SUCCESS
 FINISHED_ERROR
enum  State { BEFORE_START, RUNNING, FINISHED_SUCCESS, FINISHED_ERROR }

Signals

void finished ()

Public Member Functions

virtual TaskOutputInfogetOutputInfo ()=0
virtual void start ()=0
 Starts the task (normally done by TaskList).
virtual State getState () const =0
 Returns the state this task is in.
virtual QString getDescription () const =0

Detailed Description

Interface for a Task (frontend call, compiler call, annotation etc).

A task is something which can be executed in a different thread/process By using these task objects a dependency management system can be implemented Example:

Definition at line 19 of file TaskInterface.h.


Member Enumeration Documentation

enum Task::State

Enumerator:
BEFORE_START 
RUNNING 
FINISHED_SUCCESS 
FINISHED_ERROR 

Definition at line 25 of file TaskInterface.h.


Member Function Documentation

void Task::finished (  )  [signal]

Emitted when task has finished, call getState() to get status (success /error)

Referenced by RoseFrontendTask::start().

virtual QString Task::getDescription (  )  const [pure virtual]

Implemented in GccCompileTask, and RoseFrontendTask.

Referenced by TaskListItem::TaskListItem().

Here is the caller graph for this function:

virtual TaskOutputInfo* Task::getOutputInfo (  )  [pure virtual]

Returns a parser object, which parses the task-output and provides (localized) error messages

Implemented in GccCompileTask, and RoseFrontendTask.

Referenced by TaskList::on_itemClicked().

virtual State Task::getState (  )  const [pure virtual]

Returns the state this task is in.

Implemented in GccCompileTask, and RoseFrontendTask.

virtual void Task::start (  )  [pure virtual]

Starts the task (normally done by TaskList).

Implemented in GccCompileTask, and RoseFrontendTask.

Referenced by TaskList::submitTask().

Here is the caller graph for this function:


The documentation for this class was generated from the following file:
Generated on Tue Sep 15 14:48:50 2009 for RoseQtWidgets by  doxygen 1.4.7