KDESu::SuProcess Class Reference
Executes a command under elevated privileges, using su.
More...
#include <kdesu/su.h>
List of all members.
Detailed Description
Executes a command under elevated privileges, using su.
Definition at line 25 of file su.h.
Member Enumeration Documentation
Executes the command.
This will wait for the command to finish.
- Enumerator:
NoCheck |
|
Install |
|
NeedPassword |
|
Definition at line 36 of file su.h.
- Enumerator:
SuNotFound |
|
SuNotAllowed |
|
SuIncorrectPassword |
|
Definition at line 31 of file su.h.
Constructor & Destructor Documentation
KDESu::SuProcess::SuProcess |
( |
const QByteArray & |
user = 0 , |
|
|
const QByteArray & |
command = 0 | |
|
) |
| | [explicit] |
KDESu::SuProcess::~SuProcess |
( |
|
) |
|
Member Function Documentation
int KDESu::SuProcess::checkInstall |
( |
const char * |
password |
) |
|
Checks if the stub is installed and the password is correct.
- Returns:
- Zero if everything is correct, nonzero otherwise.
Definition at line 104 of file su.cpp.
int KDESu::SuProcess::checkNeedPassword |
( |
|
) |
|
Checks if a password is needed.
Definition at line 109 of file su.cpp.
int KDESu::SuProcess::exec |
( |
const char * |
password, |
|
|
int |
check = NoCheck | |
|
) |
| | |
QString KDESu::SuProcess::superUserCommand |
( |
|
) |
|
Checks what the default super user command is, e.g.
sudo, su, etc
- Returns:
- the default super user command
Definition at line 89 of file su.cpp.
bool KDESu::SuProcess::useUsersOwnPassword |
( |
|
) |
|
Checks whether or not the user's password is being asked for or another user's password.
Due to usage of systems such as sudo, even when attempting to switch to another user one may need to enter their own password.
Definition at line 94 of file su.cpp.
void KDESu::SuProcess::virtual_hook |
( |
int |
id, |
|
|
void * |
data | |
|
) |
| | [protected, virtual] |
Standard hack to add virtual methods in a BC way.
Unused.
Reimplemented from KDESu::StubProcess.
Definition at line 353 of file su.cpp.
The documentation for this class was generated from the following files: