SuProcess Class Reference

#include <su.h>

Inheritance diagram for SuProcess:

StubProcess PtyProcess List of all members.

Detailed Description

Executes a command under elevated privileges, using su.

Definition at line 26 of file su.h.


Public Types

 SuNotFound = 1
 SuNotAllowed
 SuIncorrectPassword
 NoCheck = 0
 Install = 1
 NeedPassword = 2
enum  Errors { SuNotFound = 1, SuNotAllowed, SuIncorrectPassword }
enum  checkMode { NoCheck = 0, Install = 1, NeedPassword = 2 }

Public Member Functions

 SuProcess (const QCString &user=0, const QCString &command=0)
 ~SuProcess ()
int exec (const char *password, int check=NoCheck)
int checkInstall (const char *password)
int checkNeedPassword ()

Protected Member Functions

virtual void virtual_hook (int id, void *data)

Member Enumeration Documentation

Executes the command.

This will wait for the command to finish.

Definition at line 37 of file su.h.


Member Function Documentation

int 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 57 of file su.cpp.

int SuProcess::checkNeedPassword (  ) 

Checks if a password is needed.

Definition at line 62 of file su.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys