GccCompileTask Class Reference

Task which uses gcc to compile a source file. More...

#include <GccTask.h>

Inheritance diagram for GccCompileTask:

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

 GccCompileTask (const QString &sourcefile, const QString &outFile)
 GccCompileTask (const QStringList &sourcefiles, const QString &outFile)
virtual void start ()
 Starts the task (normally done by TaskList).
virtual Task::State getState () const
 Returns the state this task is in.
virtual TaskOutputInfogetOutputInfo ()
virtual QString getDescription () const

Static Public Attributes

static QString gcc_path = QString("g++")
static QStringList default_args = QStringList() << "-Wall"

Protected Slots

void dataAvailable ()

Protected Member Functions

void init (const QString &outfile)

Protected Attributes

QProcess process
QStringList arguments
bool started
GccOutputParseroutParser

Detailed Description

Task which uses gcc to compile a source file.

Definition at line 81 of file GccTask.h.


Member Enumeration Documentation

enum Task::State [inherited]

Enumerator:
BEFORE_START 
RUNNING 
FINISHED_SUCCESS 
FINISHED_ERROR 

Definition at line 25 of file TaskInterface.h.


Constructor & Destructor Documentation

GccCompileTask::GccCompileTask ( const QString &  sourcefile,
const QString &  outFile 
)

Definition at line 15 of file GccTask.cpp.

Here is the call graph for this function:

GccCompileTask::GccCompileTask ( const QStringList &  sourcefiles,
const QString &  outFile 
)

Definition at line 22 of file GccTask.cpp.

Here is the call graph for this function:


Member Function Documentation

void GccCompileTask::dataAvailable (  )  [protected, slot]

Definition at line 71 of file GccTask.cpp.

Referenced by start().

void Task::finished (  )  [signal, inherited]

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

Referenced by RoseFrontendTask::start().

QString GccCompileTask::getDescription (  )  const [virtual]

Implements Task.

Definition at line 77 of file GccTask.cpp.

virtual TaskOutputInfo* GccCompileTask::getOutputInfo (  )  [inline, virtual]

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

Implements Task.

Definition at line 94 of file GccTask.h.

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

Returns the state this task is in.

Implements Task.

Definition at line 44 of file GccTask.cpp.

Referenced by BinaryFileNode::buildTaskFinished().

void GccCompileTask::init ( const QString &  outfile  )  [protected]

Definition at line 32 of file GccTask.cpp.

Referenced by GccCompileTask().

Here is the caller graph for this function:

void GccCompileTask::start (  )  [virtual]

Starts the task (normally done by TaskList).

Implements Task.

Definition at line 61 of file GccTask.cpp.


Member Data Documentation

QStringList GccCompileTask::arguments [protected]

Definition at line 108 of file GccTask.h.

Referenced by GccCompileTask(), getDescription(), init(), and start().

QStringList GccCompileTask::default_args = QStringList() << "-Wall" [static]

Definition at line 99 of file GccTask.h.

Referenced by init().

QString GccCompileTask::gcc_path = QString("g++") [static]

Definition at line 98 of file GccTask.h.

Referenced by start().

GccOutputParser* GccCompileTask::outParser [protected]

Definition at line 112 of file GccTask.h.

Referenced by dataAvailable(), getOutputInfo(), and init().

QProcess GccCompileTask::process [protected]

Definition at line 107 of file GccTask.h.

Referenced by dataAvailable(), getState(), init(), and start().

bool GccCompileTask::started [protected]

Definition at line 110 of file GccTask.h.

Referenced by getState(), and start().


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