KDEsu
KDESu::SuProcess Class Reference
Executes a command under elevated privileges, using su. More...
#include <kdesu/su.h>
Inheritance diagram for KDESu::SuProcess:

Public Types | |
| enum | checkMode { NoCheck = 0, Install = 1, NeedPassword = 2 } |
| enum | Errors { SuNotFound = 1, SuNotAllowed, SuIncorrectPassword } |
Public Member Functions | |
| int | checkInstall (const char *password) |
| int | checkNeedPassword () |
| int | exec (const char *password, int check=NoCheck) |
| QString | superUserCommand () |
| SuProcess (const QByteArray &user=0, const QByteArray &command=0) | |
| bool | useUsersOwnPassword () |
| ~SuProcess () | |
Protected Member Functions | |
| virtual void | virtual_hook (int id, void *data) |
Detailed Description
Executes a command under elevated privileges, using su.Definition at line 25 of file su.h.
Member Enumeration Documentation
Constructor & Destructor Documentation
| KDESu::SuProcess::SuProcess | ( | const QByteArray & | user = 0, |
|
| const QByteArray & | command = 0 | |||
| ) | [explicit] |
Member Function Documentation
| int KDESu::SuProcess::checkInstall | ( | const char * | password | ) |
| int KDESu::SuProcess::checkNeedPassword | ( | ) |
| int KDESu::SuProcess::exec | ( | const char * | password, | |
| int | check = NoCheck | |||
| ) |
| QString KDESu::SuProcess::superUserCommand | ( | ) |
| bool KDESu::SuProcess::useUsersOwnPassword | ( | ) |
| void KDESu::SuProcess::virtual_hook | ( | int | id, | |
| void * | data | |||
| ) | [protected, virtual] |
The documentation for this class was generated from the following files:
KDE 4.2 API Reference