MoleQueue 0.9.0
Loading...
Searching...
No Matches
PuttyCommand Class Reference

#include <molequeue/puttycommand.h>

Inheritance diagram for PuttyCommand:
SshCommand SshConnection

Public Member Functions

 PuttyCommand (QObject *parentObject=0)
Public Member Functions inherited from SshCommand
 SshCommand (QObject *parentObject, QString sshCommand, QString scpCommand)
QString sshCommand ()
QString scpCommand ()
QString output () const
int exitCode () const
bool waitForCompletion (int msecs=30000)
bool isComplete () const
Public Member Functions inherited from SshConnection
 SshConnection (QObject *parentObject=0)
bool isPersistent () const
QString userName () const
QString hostName () const
QString identityFile () const
int portNumber () const
virtual bool isValid () const
QVariant & data ()
const QVariant & data () const
void setData (const QVariant &newData)

Protected Member Functions

QStringList sshArgs ()
QStringList scpArgs ()
Protected Member Functions inherited from SshCommand
virtual void sendRequest (const QString &command, const QStringList &args)
void initializeProcess ()
QString remoteSpec ()

Additional Inherited Members

Public Slots inherited from SshCommand
void setSshCommand (const QString &command)
void setScpCommand (const QString &command)
virtual bool execute (const QString &command)
virtual bool copyTo (const QString &localFile, const QString &remoteFile)
virtual bool copyFrom (const QString &remoteFile, const QString &localFile)
virtual bool copyDirTo (const QString &localDir, const QString &remoteDir)
virtual bool copyDirFrom (const QString &remoteDir, const QString &localDir)
Public Slots inherited from SshConnection
void setPersistent (bool persist)
void setUserName (const QString &newUserName)
void setHostName (const QString &newHostName)
void setIdentityFile (const QString &newIdentityFile)
void setPortNumber (int newPortNumber)
virtual bool execute (const QString &command)
virtual bool copyTo (const QString &localFile, const QString &remoteFile)
virtual bool copyFrom (const QString &remoteFile, const QString &localFile)
virtual bool copyDirTo (const QString &localDir, const QString &remoteDir)
virtual bool copyDirFrom (const QString &remoteDir, const QString &localDir)
Signals inherited from SshConnection
void requestSent ()
void requestComplete ()
Protected Slots inherited from SshCommand
void processStarted ()
void processFinished ()
Static Protected Member Functions inherited from SshConnection
static bool debug ()
Protected Attributes inherited from SshCommand
QString m_sshCommand
QString m_scpCommand
QString m_output
int m_exitCode
TerminalProcessm_process
bool m_isComplete
Protected Attributes inherited from SshConnection
bool m_persistent
QVariant m_data
QString m_userName
QString m_hostName
QString m_identityFile
int m_portNumber

Detailed Description

Concrete implementation of SshCommand using commandline plink/pscp.

Author
Marcus D. Hanwell, David C. Lonie, Chris Harris

The PuttyCommand provides an implementation of the SshCommand interface that calls the commandline plink and pscp executables in a TerminalProcess.

When writing code that needs ssh functionality, the code should use the SshConnection interface instead.

Member Function Documentation

◆ sshArgs()

QStringList sshArgs ( )
protectedvirtual
Returns
the arguments to be passed to the SSH command.

Implements SshCommand.

◆ scpArgs()

QStringList scpArgs ( )
protectedvirtual
Returns
the arguments to be passed to the SCP command.

Implements SshCommand.


The documentation for this class was generated from the following file: