kdecore Library API Documentation

KShellProcess Class Reference

A class derived from KProcess to start child processes through a shell. More...

#include <kprocess.h>

Inheritance diagram for KShellProcess:

Inheritance graph
[legend]
Collaboration diagram for KShellProcess:

Collaboration graph
[legend]
List of all members.

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)

Detailed Description

A class derived from KProcess to start child processes through a shell.

Deprecated:
Use KProcess and KProcess::setUseShell(true) instead.

Author:
Christian Czezatke <e9025461@student.tuwien.ac.at>

Definition at line 883 of file kprocess.h.


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 1110 of file kprocess.cpp.

References KProcess::setUseShell().

KShellProcess::~KShellProcess  ) 
 

Destructor.

Definition at line 1116 of file kprocess.cpp.


Member Function Documentation

QString KShellProcess::quote const QString arg  )  [static]
 

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 1119 of file kprocess.cpp.

References KProcess::quote().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdecore Library Version 3.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Jul 20 13:46:57 2006 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003