kdecore Library API Documentation

KShellProcess Class Reference

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

#include <kprocess.h>

Inheritance diagram for KShellProcess:

KProcess QObject List of all members.

Public Methods

 KShellProcess (const char *shellname=0)
 Constructor.

 ~KShellProcess ()
 Destructor.

virtual bool start (RunMode runmode=NotifyOnExit, Communication comm=NoCommunication)
 Starts up the process.


Static Public Methods

QString quote (const QString &arg)
 This function can be used to quote an argument string such that the shell processes it properly.


Protected Methods

virtual void virtual_hook (int id, void *data)

Detailed Description

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

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

Author:
Christian Czezakte <e9025461@student.tuwien.ac.at>
Version:
Id:
kprocess.h,v 1.60 2002/09/28 12:28:47 tjansen Exp

Definition at line 790 of file kprocess.h.


Constructor & Destructor Documentation

KShellProcess::KShellProcess const char *    shellname = 0
 

Constructor.

By specifying the name of a shell (like "/bin/bash") you can override the mechanism for finding a valid shell as described in KProcess::searchShell()

Definition at line 913 of file kprocess.cpp.

References KProcess::setUseShell().

KShellProcess::~KShellProcess  
 

Destructor.

Definition at line 920 of file kprocess.cpp.


Member Function Documentation

bool KShellProcess::start RunMode    runmode = NotifyOnExit,
Communication    comm = NoCommunication
[virtual]
 

Starts up the process.

-- For a detailed description have a look at the "start" member function and the detailed description of KProcess .

Reimplemented from KProcess.

Definition at line 928 of file kprocess.cpp.

References KProcess::start().

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.

Reimplemented from KProcess.

Definition at line 923 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 kdelibs Version 3.1.0.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Oct 8 12:20:46 2003 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2001