Workspace 6.21.5
Public Member Functions | List of all members
SshWrapper Class Reference

#include <SSH/SSHWrapper/sshwrapper.h>

Public Member Functions

 SshWrapper ()
 
virtual ~SshWrapper ()
 
bool getFile (const QString &filePath, const QString &destinationPath)
 
bool isLoggedIn () const
 
bool login (const QString &host, const QString &user, const QString &pwd, int port, const QString &publicKeyFile, const QString &privateKeyFile, const QString &passphrase)
 
void logout ()
 
bool sendCommand (const QString &command, QString &output, bool removeTrailingNewLine=true)
 
bool sendFile (const QString &filePath, const QString &destinationPath)
 

Constructor & Destructor Documentation

◆ SshWrapper()

◆ ~SshWrapper()

~SshWrapper ( )
virtual

Member Function Documentation

◆ getFile()

bool getFile ( const QString &  filePath,
const QString &  destinationPath 
)

◆ isLoggedIn()

bool isLoggedIn ( ) const

◆ login()

bool login ( const QString &  host,
const QString &  user,
const QString &  pwd,
int  port,
const QString &  publicKeyFile,
const QString &  privateKeyFile,
const QString &  passphrase 
)

◆ logout()

void logout ( )

◆ sendCommand()

bool sendCommand ( const QString &  command,
QString &  output,
bool  removeTrailingNewLine = true 
)

◆ sendFile()

bool sendFile ( const QString &  filePath,
const QString &  destinationPath 
)