SuProcess Class Reference
#include <su.h>
Inheritance diagram for SuProcess:
Public Types | |
| enum | Errors { SuNotFound =1 , SuNotAllowed , SuIncorrectPassword } |
| enum | checkMode { NoCheck =0 , Install =1 , NeedPassword =2 } |
Public Types inherited from StubProcess | |
| enum | Scheduler { SchedNormal , SchedRealtime } |
Public Types inherited from PtyProcess | |
| enum | checkPidStatus { Error =-1 , NotExited =-2 , Killed =-3 } |
Public Member Functions | |
| SuProcess (const TQCString &user=0, const TQCString &command=0) | |
| int | exec (const char *password, int check=NoCheck) |
| int | checkInstall (const char *password) |
| int | checkNeedPassword () |
Public Member Functions inherited from StubProcess | |
| void | setDcopTransport (const TQCString &dcopTransport) |
| void | setCommand (const TQCString &command) |
| void | setUser (const TQCString &user) |
| void | setXOnly (bool xonly) |
| void | setDCOPForwarding (bool dcopForwarding) |
| void | setPriority (int prio) |
| void | setScheduler (int sched) |
Public Member Functions inherited from PtyProcess | |
| int | exec (const TQCString &command, const QCStringList &args) |
| TQCString | readLine (bool block=true) |
| TQCString | readAll (bool block=true) |
| void | writeLine (const TQCString &line, bool addNewline=true) |
| void | unreadLine (const TQCString &line, bool addNewline=true) |
| void | setExitString (const TQCString &exit) |
| int | waitForChild () |
| int | WaitSlave () |
| int | enableLocalEcho (bool enable=true) |
| void | setTerminal (bool terminal) |
| void | setErase (bool erase) |
| void | setEnvironment (const QCStringList &env) |
| int | fd () |
| int | pid () |
Protected Member Functions | |
| virtual void | virtual_hook (int id, void *data) |
Protected Member Functions inherited from StubProcess | |
| int | ConverseStub (int check) |
| void | notifyTaskbar (const TQString &suffix) |
| virtual TQCString | display () |
| virtual TQCString | dcopServer () |
| virtual TQCString | dcopAuth () |
| virtual TQCString | iceAuth () |
| virtual void | virtual_hook (int id, void *data) |
Protected Member Functions inherited from PtyProcess | |
| const QCStringList & | environment () const |
| virtual void | virtual_hook (int id, void *data) |
Additional Inherited Members | |
Static Public Member Functions inherited from PtyProcess | |
| static int | waitMS (int fd, int ms) |
| static bool | checkPid (pid_t pid) |
| static int | checkPidExited (pid_t pid) |
Protected Attributes inherited from StubProcess | |
| bool | m_bXOnly |
| bool | m_bDCOPForwarding |
| int | m_Priority |
| int | m_Scheduler |
| TQCString | m_dcopTransport |
| TQCString | m_Command |
| TQCString | m_User |
| KCookie * | m_pCookie |
Protected Attributes inherited from PtyProcess | |
| bool | m_bErase |
| bool | m_bTerminal |
| int | m_Pid |
| int | m_Fd |
| TQCString | m_Command |
| TQCString | m_Exit |
Detailed Description
Member Enumeration Documentation
◆ checkMode
| enum SuProcess::checkMode |
◆ Errors
Constructor & Destructor Documentation
◆ SuProcess()
| SuProcess::SuProcess | ( | const TQCString & | user = 0, |
| const TQCString & | command = 0 |
||
| ) |
◆ ~SuProcess()
Member Function Documentation
◆ checkInstall()
| int SuProcess::checkInstall | ( | const char * | password | ) |
◆ checkNeedPassword()
| int SuProcess::checkNeedPassword | ( | ) |
◆ exec()
| int SuProcess::exec | ( | const char * | password, |
| int | check = NoCheck |
||
| ) |
◆ virtual_hook()
|
protectedvirtual |
Reimplemented from StubProcess.
The documentation for this class was generated from the following files:
Trinity API Reference
Public Types inherited from