00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include "urpoconnection.h"
00024
00025
00026 UrpoConnection::UrpoConnection()
00027 {
00028 debugMonitor_ = 0;
00029 }
00030
00031 UrpoConnection::~UrpoConnection()
00032 {
00033
00034 }
00035
00036
00037 QObject* UrpoConnection::getDebugMonitor() const
00038 {
00039 return debugMonitor_;
00040 }
00041
00042 void UrpoConnection::setDebugMonitor(QObject *monitor)
00043 {
00044 debugMonitor_ = monitor;
00045 }
00046
00047 QString UrpoConnection::getHostString()
00048 {
00049
00050 QString hostString;
00051 if( !getUserid().isEmpty())
00052 hostString=getUserid() + "@";
00053 hostString.append( getHost());
00054 return hostString;
00055 }
00056
00057 QString UrpoConnection::getKeyOption()
00058 {
00059 if( getIdentity().isEmpty())
00060 return QString();
00061 else
00062 return QString("-i ").append(getIdentity() + " ");
00063 }