|
| SshProcess (const QByteArray &host=QByteArray(), const QByteArray &user=QByteArray(), const QByteArray &command=QByteArray()) |
|
int | checkInstall (const char *password) |
| Checks if the stub is installed and if the password is correct. More...
|
|
int | checkNeedPassword () |
| Checks if the current user@host needs a password. More...
|
|
QByteArray | error () const |
|
int | exec (const char *password, int check=0) |
| Executes the command. More...
|
|
QByteArray | prompt () const |
|
void | setHost (const QByteArray &host) |
| Sets the target host. More...
|
|
void | setStub (const QByteArray &stub) |
| Sets the location of the remote stub. More...
|
|
void | setCommand (const QByteArray &command) |
| Set the command. More...
|
|
void | setPriority (int prio) |
| Set the priority of the process. More...
|
|
void | setScheduler (int sched) |
| Set the scheduler type. More...
|
|
void | setUser (const QByteArray &user) |
| Set the target user. More...
|
|
void | setXOnly (bool xonly) |
| Set to "X only mode": Sycoca is not built and kdeinit is not launched. More...
|
|
int | enableLocalEcho (bool enable=true) |
| Enables/disables local echo on the pseudo tty. More...
|
|
int | exec (const QByteArray &command, const QList< QByteArray > &args) |
| Forks off and execute a command. More...
|
|
int | fd () const |
| Returns the filedescriptor of the process. More...
|
|
int | pid () const |
| Returns the pid of the process. More...
|
|
QByteArray | readAll (bool block=true) |
| Read all available output from the program's standard out. More...
|
|
QByteArray | readLine (bool block=true) |
| Reads a line from the program's standard out. More...
|
|
void | setEnvironment (const QList< QByteArray > &env) |
| Set additinal environment variables. More...
|
|
void | setErase (bool erase) |
| Overwrites the password as soon as it is used. More...
|
|
void | setExitString (const QByteArray &exit) |
| Sets the exit string. More...
|
|
void | setTerminal (bool terminal) |
| Enables/disables terminal output. More...
|
|
void | unreadLine (const QByteArray &line, bool addNewline=true) |
| Puts back a line of input. More...
|
|
int | waitForChild () |
| Waits for the child to exit. More...
|
|
int | waitSlave () |
| Waits until the pty has cleared the ECHO flag. More...
|
|
int | WaitSlave () |
|
void | writeLine (const QByteArray &line, bool addNewline=true) |
| Writes a line of text to the program's standard in. More...
|
|
|
QByteArray | display () override |
| This virtual function can be overloaded when special behavior is desired. More...
|
|
QByteArray | displayAuth () override |
| See display. More...
|
|
void | virtual_hook (int id, void *data) override |
| Standard hack to add virtual methods in a BC way. More...
|
|
| StubProcess (StubProcessPrivate &dd) |
|
int | converseStub (int check) |
| Exchange all parameters with kdesu_stub. More...
|
|
virtual QByteArray | display () |
| This virtual function can be overloaded when special behavior is desired. More...
|
|
virtual QByteArray | displayAuth () |
| See display. More...
|
|
void | virtual_hook (int id, void *data) override |
| Standard hack to add virtual methods in a BC way. More...
|
|
| PtyProcess (PtyProcessPrivate &dd) |
|
QList< QByteArray > | environment () const |
|
virtual void | virtual_hook (int id, void *data) |
| Standard hack to add virtual methods in a BC way. More...
|
|
Executes a remote command, using ssh.