kextprocess
KExtProcess::SuProcess Class Reference
#include <suprocess.h>

Detailed Description
Specialized process for running su(1)-based processes.Definition at line 24 of file suprocess.h.
Public Member Functions | |
| QString | password () const |
| void | setPassword (const QString &pass) |
| void | setUsername (const QString &user) |
| SuProcess (QObject *parent=0, const char *name=0) | |
| QString | username () const |
| virtual | ~SuProcess () |
Protected Member Functions | |
| virtual void | prepareStart () |
| virtual bool | shellSetupParseOutputLine (const QString &line, OutputType type) |
Properties | |
| QString | password |
| QString | username |
Constructor & Destructor Documentation
| KExtProcess::SuProcess::SuProcess | ( | QObject * | parent = 0, |
|
| const char * | name = 0 | |||
| ) |
| KExtProcess::SuProcess::~SuProcess | ( | ) | [virtual] |
Destructor:.
If the process is running when the destructor for this class is called, the child process is killed with a SIGKILL, but only if the run mode is not of type DontCare. Processes started as DontCare keep running anyway.
Definition at line 46 of file suprocess.cpp.
Member Function Documentation
| QString KExtProcess::SuProcess::password | ( | ) | const |
| void KExtProcess::SuProcess::prepareStart | ( | ) | [protected, virtual] |
Implementation of ShellBasedProcess::prepareStart().
Implements KExtProcess::ShellBasedProcess.
Definition at line 51 of file suprocess.cpp.
| void KExtProcess::SuProcess::setPassword | ( | const QString & | pass | ) |
Definition at line 77 of file suprocess.cpp.
| void KExtProcess::SuProcess::setUsername | ( | const QString & | user | ) |
Definition at line 82 of file suprocess.cpp.
| bool KExtProcess::SuProcess::shellSetupParseOutputLine | ( | const QString & | line, | |
| OutputType | type | |||
| ) | [protected, virtual] |
Implementation of the output handler for Su.
See ShellBasedProcess::shellSetupParseOutputLine()
Implements KExtProcess::ShellBasedProcess.
Definition at line 87 of file suprocess.cpp.
| QString KExtProcess::SuProcess::username | ( | ) | const |
Property Documentation
QString KExtProcess::SuProcess::password [read, write] |
Definition at line 29 of file suprocess.h.
QString KExtProcess::SuProcess::username [read, write] |
Definition at line 28 of file suprocess.h.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference