00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifdef ENABLE_SSH
00016
00017 #include <globalsearch/sshconnection.h>
00018
00019 #include <globalsearch/sshmanager.h>
00020
00021 namespace GlobalSearch {
00022
00023 SSHConnection::SSHConnection(SSHManager *parent)
00024 : QObject(parent),
00025 m_host(""),
00026 m_user(""),
00027 m_pass(""),
00028 m_port(22)
00029 {
00030 }
00031
00032 SSHConnection::~SSHConnection()
00033 {
00034 }
00035
00036 void SSHConnection::setLoginDetails(const QString &host,
00037 const QString &user,
00038 const QString &pass,
00039 int port)
00040 {
00041 m_host = host;
00042 m_user = user;
00043 m_pass = pass;
00044 m_port = port;
00045 }
00046
00047 }
00048
00049 #endif // ENABLE_SSH