MyProcess Class Reference

#include <myprocess.h>

List of all members.

Public Slots

void on_cancel ()

Signals

void procDataReady (const QByteArray &)
void eof ()

Public Member Functions

 MyProcess (QObject *go, Git *g, const QString &wd, bool reportErrors)
bool runSync (SCRef runCmd, QByteArray *runOutput, QObject *rcv, SCRef buf, QStringList *env)
bool runAsync (SCRef rc, QObject *rcv, SCRef buf, QStringList *env)

Static Public Member Functions

static const QStringList splitArgList (SCRef cmd)

Private Slots

void on_readyReadStdout ()
void on_readyReadStderr ()
void on_processExited ()
void on_launchFinished ()

Private Member Functions

void setupSignals ()
void appendSystemEnvironment (QStringList *env)
bool launchMe (SCRef runCmd, SCRef buf, QStringList *env)
void sendErrorMsg (bool notStarted=false)

Static Private Member Functions

static void restoreSpaces (QString &newCmd, SCRef sepChar)

Private Attributes

QObject * guiObject
Gitgit
QString runCmd
QByteArray * runOutput
QString workDir
QObject * receiver
bool errorReportingEnabled
bool canceling
bool busy
bool exitStatus
bool async
bool isLaunching


Detailed Description

Definition at line 17 of file myprocess.h.


Constructor & Destructor Documentation

MyProcess ( QObject *  go,
Git g,
const QString &  wd,
bool  reportErrors 
)

Definition at line 17 of file myprocess.cpp.


Member Function Documentation

bool runSync ( SCRef  runCmd,
QByteArray *  runOutput,
QObject *  rcv,
SCRef  buf,
QStringList *  env 
)

Definition at line 41 of file myprocess.cpp.

Referenced by Git::run().

bool runAsync ( SCRef  rc,
QObject *  rcv,
SCRef  buf,
QStringList *  env 
)

Definition at line 29 of file myprocess.cpp.

Referenced by Git::runAsync().

const QStringList splitArgList ( SCRef  cmd  )  [static]

Definition at line 206 of file myprocess.cpp.

Referenced by Git::getArgs(), and launchMe().

void procDataReady ( const QByteArray &   )  [signal]

Referenced by on_readyReadStderr(), on_readyReadStdout(), and setupSignals().

void eof (  )  [signal]

Referenced by on_processExited(), and setupSignals().

void on_cancel (  )  [slot]

Definition at line 200 of file myprocess.cpp.

Referenced by Git::cancelProcess(), and setupSignals().

void on_readyReadStdout (  )  [private, slot]

Definition at line 154 of file myprocess.cpp.

Referenced by runSync(), and setupSignals().

void on_readyReadStderr (  )  [private, slot]

Definition at line 171 of file myprocess.cpp.

Referenced by setupSignals().

void on_processExited (  )  [private, slot]

Definition at line 182 of file myprocess.cpp.

Referenced by setupSignals().

void on_launchFinished (  )  [private, slot]

Definition at line 148 of file myprocess.cpp.

Referenced by launchMe().

void setupSignals (  )  [private]

Definition at line 85 of file myprocess.cpp.

Referenced by runAsync(), and runSync().

void appendSystemEnvironment ( QStringList *  env  )  [private]

Definition at line 115 of file myprocess.cpp.

Referenced by launchMe().

bool launchMe ( SCRef  runCmd,
SCRef  buf,
QStringList *  env 
) [private]

Definition at line 128 of file myprocess.cpp.

Referenced by runAsync(), and runSync().

void sendErrorMsg ( bool  notStarted = false  )  [private]

Definition at line 101 of file myprocess.cpp.

Referenced by launchMe(), and on_processExited().

void restoreSpaces ( QString &  newCmd,
SCRef  sepChar 
) [static, private]

Definition at line 257 of file myprocess.cpp.

Referenced by splitArgList().


Member Data Documentation

QObject* guiObject [private]

Definition at line 45 of file myprocess.h.

Referenced by MyProcess(), and sendErrorMsg().

Git* git [private]

Definition at line 46 of file myprocess.h.

Referenced by MyProcess(), runSync(), and setupSignals().

QString runCmd [private]

Definition at line 47 of file myprocess.h.

Referenced by runAsync(), and runSync().

QByteArray* runOutput [private]

Definition at line 48 of file myprocess.h.

Referenced by MyProcess(), on_readyReadStdout(), and runSync().

QString workDir [private]

Definition at line 49 of file myprocess.h.

Referenced by launchMe(), and MyProcess().

QObject* receiver [private]

Definition at line 50 of file myprocess.h.

Referenced by MyProcess(), on_processExited(), on_readyReadStderr(), on_readyReadStdout(), runAsync(), runSync(), and setupSignals().

bool errorReportingEnabled [private]

Definition at line 51 of file myprocess.h.

Referenced by MyProcess(), and sendErrorMsg().

bool canceling [private]

Definition at line 52 of file myprocess.h.

Referenced by MyProcess(), on_cancel(), on_processExited(), on_readyReadStderr(), and on_readyReadStdout().

bool busy [private]

Definition at line 53 of file myprocess.h.

Referenced by on_processExited(), and runSync().

bool exitStatus [private]

Definition at line 54 of file myprocess.h.

Referenced by MyProcess(), on_processExited(), and runSync().

bool async [private]

Definition at line 55 of file myprocess.h.

Referenced by MyProcess(), on_processExited(), runAsync(), and runSync().

bool isLaunching [private]

Definition at line 56 of file myprocess.h.

Referenced by launchMe(), and on_launchFinished().


The documentation for this class was generated from the following files:
Generated on Fri Dec 7 21:57:40 2007 for QGit by  doxygen 1.5.3