KDEsu
KDESu::SuProcess Class Reference
#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 } |
![]() | |
enum | Scheduler { SchedNormal , SchedRealtime } |
![]() | |
enum | checkPidStatus { Error =-1 , NotExited =-2 , Killed =-3 } |
Public Member Functions | |
SuProcess (const QByteArray &user=0, const QByteArray &command=0) | |
~SuProcess () | |
int | checkInstall (const char *password) |
int | checkNeedPassword () |
int | exec (const char *password, int check=NoCheck) |
QString | superUserCommand () |
bool | useUsersOwnPassword () |
![]() | |
StubProcess () | |
~StubProcess () | |
void | setCommand (const QByteArray &command) |
void | setPriority (int prio) |
void | setScheduler (int sched) |
void | setUser (const QByteArray &user) |
void | setXOnly (bool xonly) |
![]() | |
PtyProcess () | |
virtual | ~PtyProcess () |
int | enableLocalEcho (bool enable=true) |
int | exec (const QByteArray &command, const QList< QByteArray > &args) |
int | fd () const |
int | pid () const |
QByteArray | readAll (bool block=true) |
QByteArray | readLine (bool block=true) |
void | setEnvironment (const QList< QByteArray > &env) |
void | setErase (bool erase) |
void | setExitString (const QByteArray &exit) |
void | setTerminal (bool terminal) |
void | unreadLine (const QByteArray &line, bool addNewline=true) |
int | waitForChild () |
int | WaitSlave () |
void | writeLine (const QByteArray &line, bool addNewline=true) |
Protected Member Functions | |
virtual void | virtual_hook (int id, void *data) |
![]() | |
int | ConverseStub (int check) |
virtual QByteArray | display () |
virtual QByteArray | displayAuth () |
virtual void | virtual_hook (int id, void *data) |
![]() | |
QList< QByteArray > | environment () const |
virtual void | virtual_hook (int id, void *data) |
Additional Inherited Members | |
![]() | |
static bool | checkPid (pid_t pid) |
static int | checkPidExited (pid_t pid) |
![]() | |
public | __pad0__: static int waitMS(int fd |
public int | ms |
![]() | |
bool | m_bXOnly |
QByteArray | m_Command |
KDESuPrivate::KCookie * | m_pCookie |
int | m_Priority |
int | m_Scheduler |
QByteArray | m_User |
![]() | |
bool | m_bErase |
bool | m_bTerminal |
QByteArray | m_Command |
QByteArray | m_Exit |
int | m_Pid |
Detailed Description
Member Enumeration Documentation
◆ checkMode
◆ Errors
Constructor & Destructor Documentation
◆ SuProcess()
|
explicit |
◆ ~SuProcess()
Member Function Documentation
◆ checkInstall()
int KDESu::SuProcess::checkInstall | ( | const char * | password | ) |
◆ checkNeedPassword()
int KDESu::SuProcess::checkNeedPassword | ( | ) |
◆ exec()
int KDESu::SuProcess::exec | ( | const char * | password, |
int | check = NoCheck |
||
) |
◆ superUserCommand()
QString KDESu::SuProcess::superUserCommand | ( | ) |
◆ useUsersOwnPassword()
bool KDESu::SuProcess::useUsersOwnPassword | ( | ) |
◆ virtual_hook()
|
protectedvirtual |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.