Quassel IRC  Pre-Release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
ExecWrapper Class Reference

#include </tmp/quassel/src/client/execwrapper.h>

Collaboration diagram for ExecWrapper:

Public Slots

void start (const BufferInfo &info, const QString &command)

Signals

void error (const QString &errorMsg)
void output (const QString &out)

Public Member Functions

 ExecWrapper (QObject *parent=0)

Private Slots

void processReadStdout ()
void processReadStderr ()
void processFinished (int exitCode, QProcess::ExitStatus exitStatus)
void processError (QProcess::ProcessError)
void postStdout (const QString &)
void postStderr (const QString &)

Private Attributes

QProcess _process
BufferInfo _bufferInfo
QString _scriptName
QString _stdoutBuffer
QString _stderrBuffer

Detailed Description

Definition at line 28 of file execwrapper.h.

Constructor & Destructor Documentation

Member Function Documentation

void start ( const BufferInfo info,
const QString &  command 
)
slot
void error ( const QString &  errorMsg)
signal
void output ( const QString &  out)
signal
void processReadStdout ( )
privateslot

Definition at line 120 of file execwrapper.cpp.

References _process, _stdoutBuffer, and output().

Referenced by ExecWrapper().

void processReadStderr ( )
privateslot

Definition at line 133 of file execwrapper.cpp.

References _process, _stderrBuffer, and error().

Referenced by ExecWrapper().

void processFinished ( int  exitCode,
QProcess::ExitStatus  exitStatus 
)
privateslot

Definition at line 90 of file execwrapper.cpp.

References _scriptName, _stderrBuffer, _stdoutBuffer, error(), and output().

Referenced by ExecWrapper().

void processError ( QProcess::ProcessError  err)
privateslot

Definition at line 108 of file execwrapper.cpp.

References _process, _scriptName, and error().

Referenced by ExecWrapper().

void postStdout ( const QString &  msg)
privateslot

Definition at line 76 of file execwrapper.cpp.

References _bufferInfo, BufferInfo::isValid(), and Client::userInput().

Referenced by ExecWrapper().

void postStderr ( const QString &  msg)
privateslot

Member Data Documentation

QProcess _process
private

Definition at line 52 of file execwrapper.h.

Referenced by ExecWrapper(), processError(), processReadStderr(), processReadStdout(), and start().

BufferInfo _bufferInfo
private

Definition at line 53 of file execwrapper.h.

Referenced by postStderr(), postStdout(), and start().

QString _scriptName
private

Definition at line 54 of file execwrapper.h.

Referenced by processError(), processFinished(), and start().

QString _stdoutBuffer
private

Definition at line 55 of file execwrapper.h.

Referenced by processFinished(), and processReadStdout().

QString _stderrBuffer
private

Definition at line 56 of file execwrapper.h.

Referenced by processFinished(), and processReadStderr().


The documentation for this class was generated from the following files: