KShellProcess Class Reference
#include <kprocess.h>
Inheritance diagram for KShellProcess:

Detailed Description
A class derived from KProcess to start child processes through a shell.Use KProcess and KProcess::setUseShell(true) instead.
- Author:
- Christian Czezatke <e9025461@student.tuwien.ac.at>
Definition at line 896 of file kprocess.h.
Public Member Functions | |
KShellProcess (const char *shellname=0) | |
~KShellProcess () | |
virtual bool | start (RunMode runmode=NotifyOnExit, Communication comm=NoCommunication) |
Static Public Member Functions | |
static QString | quote (const QString &arg) |
Protected Member Functions | |
virtual void | virtual_hook (int id, void *data) |
Constructor & Destructor Documentation
KShellProcess::KShellProcess | ( | const char * | shellname = 0 |
) |
Constructor.
If no shellname is specified, the user's default shell is used.
Definition at line 1115 of file kprocess.cpp.
KShellProcess::~KShellProcess | ( | ) |
Member Function Documentation
This function can be used to quote an argument string such that the shell processes it properly.
This is e. g. necessary for user-provided file names which may contain spaces or quotes. It also prevents expansion of wild cards and environment variables.
- Parameters:
-
arg the argument to quote
- Returns:
- the quoted argument
- Since:
- 3.1
Reimplemented from KProcess.
Definition at line 1124 of file kprocess.cpp.
The documentation for this class was generated from the following files: