KDESu::SshProcess Class Reference
#include <kdesu/ssh.h>
Inheritance diagram for KDESu::SshProcess:

Public Types | |
| enum | Errors { SshNotFound = 1, SshNeedsPassword, SshIncorrectPassword } |
Public Member Functions | |
| SshProcess (const QByteArray &host=QByteArray(), const QByteArray &user=QByteArray(), const QByteArray &command=QByteArray()) | |
| ~SshProcess () | |
| int | checkInstall (const char *password) |
| int | checkNeedPassword () |
| QByteArray | error () const |
| int | exec (const char *password, int check=0) |
| QByteArray | prompt () const |
| void | setHost (const QByteArray &host) |
| void | setStub (const QByteArray &stub) |
Protected Member Functions | |
| virtual QByteArray | display () |
| virtual QByteArray | displayAuth () |
| virtual void | virtual_hook (int id, void *data) |
Detailed Description
Executes a remote command, using ssh.
Member Enumeration Documentation
Constructor & Destructor Documentation
| KDESu::SshProcess::SshProcess | ( | const QByteArray & | host = QByteArray(), |
| const QByteArray & | user = QByteArray(), |
||
| const QByteArray & | command = QByteArray() |
||
| ) | [explicit] |
Member Function Documentation
| int KDESu::SshProcess::checkInstall | ( | const char * | password | ) |
| int KDESu::SshProcess::checkNeedPassword | ( | ) |
| QByteArray KDESu::SshProcess::display | ( | ) | [protected, virtual] |
This virtual function can be overloaded when special behavior is desired.
By default, it returns the value returned by KCookie.
Reimplemented from KDESu::StubProcess.
| QByteArray KDESu::SshProcess::displayAuth | ( | ) | [protected, virtual] |
| int KDESu::SshProcess::exec | ( | const char * | password, |
| int | check = 0 |
||
| ) |
| void KDESu::SshProcess::setHost | ( | const QByteArray & | host | ) |
| void KDESu::SshProcess::setStub | ( | const QByteArray & | stub | ) |
| void KDESu::SshProcess::virtual_hook | ( | int | id, |
| void * | data | ||
| ) | [protected, virtual] |
The documentation for this class was generated from the following files:
KDE 4.7 API Reference