QGIS API Documentation  2.2.0-Valmiera
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Slots | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
QgsRunProcess Class Reference

A class that executes an external program/script. More...

#include <qgsrunprocess.h>

Collaboration diagram for QgsRunProcess:
Collaboration graph
[legend]

Public Slots

void stdoutAvailable ()
void stderrAvailable ()
void processError (QProcess::ProcessError)
void processExit (int, QProcess::ExitStatus)
void dialogGone ()

Static Public Member Functions

static QgsRunProcesscreate (const QString &action, bool capture)

Private Member Functions

 QgsRunProcess (const QString &action, bool capture)
 ~QgsRunProcess ()
void die ()

Private Attributes

QProcess * mProcess
QgsMessageOutputmOutput
QString mCommand

Detailed Description

A class that executes an external program/script.

It can optionally capture the standard output and error from the process and displays them in a dialog box.

Definition at line 34 of file qgsrunprocess.h.

Constructor & Destructor Documentation

QgsRunProcess::QgsRunProcess ( const QString &  action,
bool  capture 
)
private
QgsRunProcess::~QgsRunProcess ( )
private

Definition at line 80 of file qgsrunprocess.cpp.

References mProcess.

Member Function Documentation

static QgsRunProcess* QgsRunProcess::create ( const QString &  action,
bool  capture 
)
inlinestatic

Definition at line 46 of file qgsrunprocess.h.

Referenced by QgsAttributeAction::runAction().

void QgsRunProcess::dialogGone ( )
slot
void QgsRunProcess::die ( )
private

Definition at line 85 of file qgsrunprocess.cpp.

Referenced by dialogGone(), processError(), processExit(), and QgsRunProcess().

void QgsRunProcess::processError ( QProcess::ProcessError  err)
slot
void QgsRunProcess::processExit ( int  ,
QProcess::ExitStatus   
)
slot

Definition at line 107 of file qgsrunprocess.cpp.

References QgsMessageOutput::appendMessage(), die(), mOutput, and tr.

Referenced by dialogGone(), and QgsRunProcess().

void QgsRunProcess::stderrAvailable ( )
slot

Definition at line 99 of file qgsrunprocess.cpp.

References QgsMessageOutput::appendMessage(), mOutput, and mProcess.

Referenced by dialogGone(), and QgsRunProcess().

void QgsRunProcess::stdoutAvailable ( )
slot

Definition at line 91 of file qgsrunprocess.cpp.

References QgsMessageOutput::appendMessage(), mOutput, and mProcess.

Referenced by dialogGone(), and QgsRunProcess().

Member Data Documentation

QString QgsRunProcess::mCommand
private

Definition at line 65 of file qgsrunprocess.h.

Referenced by processError(), and QgsRunProcess().

QgsMessageOutput* QgsRunProcess::mOutput
private
QProcess* QgsRunProcess::mProcess
private

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