KDEsu
Go to the documentation of this file.
11 #ifndef __SU_h_Included__
12 #define __SU_h_Included__
28 explicit SuProcess(
const QByteArray &user=0,
const QByteArray &command=0);
31 enum Errors { SuNotFound=1, SuNotAllowed, SuIncorrectPassword };
36 enum checkMode { NoCheck=0, Install=1, NeedPassword=2 } ;
37 int exec(
const char *password,
int check=NoCheck);
43 int checkInstall(
const char *password);
48 int checkNeedPassword();
61 bool useUsersOwnPassword();
64 enum SuErrors { error=-1, ok=0, killme=1, notauthorized=2 } ;
65 int ConverseSU(
const char *password);
68 virtual void virtual_hook(
int id,
void* data );
70 class SuProcessPrivate;
71 SuProcessPrivate *
const d;
Executes a command under elevated privileges, using su.
checkMode
Executes the command.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:48 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.