13 #ifndef __SSH_h_Included__
14 #define __SSH_h_Included__
16 #include <tqcstring.h>
20 #include <tdelibs_export.h>
29 SshProcess(
const TQCString &host=0,
const TQCString &user=0,
const TQCString &command=0);
32 enum Errors { SshNotFound=1, SshNeedsPassword, SshIncorrectPassword };
37 void setHost(
const TQCString &host) { m_Host = host; }
42 void setStub(
const TQCString &stub);
51 int checkNeedPassword();
57 int checkInstall(
const char *password);
62 int exec(
const char *password,
int check=0);
64 TQCString prompt() {
return m_Prompt; }
65 TQCString error() {
return m_Error; }
69 virtual TQCString displayAuth();
73 TQCString dcopForward();
74 int ConverseSsh(
const char *password,
int check);
84 virtual void virtual_hook(
int id,
void* data );
86 class SshProcessPrivate;
int exec(const TQCString &command, const QCStringList &args)
Forks off and execute a command.
Executes a remote command, using ssh.
void setHost(const TQCString &host)
Sets the target host.
virtual TQCString display()
This virtual function can be overloaded when special behavior is desired.
virtual TQCString dcopServer()
See display.