SSHConnect Class Reference

#include <SSHConnect.h>

Collaboration diagram for SSHConnect:

Collaboration graph
[legend]

List of all members.

Signals

void connected ()
void connectionFailed (QString)

Public Member Functions

 SSHConnect (QString, QString, QString, Myssh *)
void run ()

Private Attributes

QString _login
QString _password
QString _host
Myssh_ssh


Detailed Description

Class used to connect to an Host using the SSH protocol

Definition at line 18 of file SSHConnect.h.


Constructor & Destructor Documentation

SSHConnect::SSHConnect ( QString  l,
QString  p,
QString  h,
Myssh s 
)

Construct an SSHConnect thread to connect on a host using the ssh protocol

Parameters:
l login
p password
h hostname
s ssh connection to run the command on

Definition at line 17 of file SSHConnect.cpp.


Member Function Documentation

void SSHConnect::run (  ) 

Run the thread Will emit connected() on connection or connectionFailed(QString) if the connection fails.

Definition at line 29 of file SSHConnect.cpp.

References _host, _login, _password, _ssh, Myssh::connect_ssh(), connected(), connectionFailed(), Myssh::getErrMsg(), and Myssh::isConnected().

Here is the call graph for this function:

void SSHConnect::connected (  )  [signal]

Signal emitted when the connection is established

Referenced by run().

void SSHConnect::connectionFailed ( QString   )  [signal]

Signal emitted if the connection attempt fails

Referenced by run().


Member Data Documentation

QString SSHConnect::_login [private]

Definition at line 23 of file SSHConnect.h.

Referenced by run().

QString SSHConnect::_password [private]

Definition at line 24 of file SSHConnect.h.

Referenced by run().

QString SSHConnect::_host [private]

Definition at line 25 of file SSHConnect.h.

Referenced by run().

Myssh* SSHConnect::_ssh [private]

Definition at line 26 of file SSHConnect.h.

Referenced by run().


The documentation for this class was generated from the following files:
Generated on Mon Mar 16 18:46:09 2009 for QCJM by  doxygen 1.5.4