| 159 | } |
| 160 | |
| 161 | const QString COperateFileTransfer::Description() |
| 162 | { |
| 163 | QString szDescription; |
| 164 | if(!Name().isEmpty()) |
| 165 | szDescription = tr("Name: ") + Name() + "\n"; |
| 166 | |
| 167 | if(!GetTypeName().isEmpty()) |
| 168 | szDescription += tr("Type: ") + GetTypeName() + "\n"; |
| 169 | |
| 170 | if(!Protocol().isEmpty()) { |
| 171 | szDescription += tr("Protocol: ") + Protocol(); |
| 172 | #ifdef DEBUG |
| 173 | if(!GetPlugin()->DisplayName().isEmpty()) |
| 174 | szDescription += " - " + GetPlugin()->DisplayName(); |
| 175 | #endif |
| 176 | szDescription += "\n"; |
| 177 | } |
| 178 | |
| 179 | auto &net = m_Parameter.m_Net; |
| 180 | if(!net.GetHost().isEmpty()) |
| 181 | szDescription += tr("Server address: ") + net.GetHost() |
| 182 | + ":" + QString::number(net.GetPort()) + "\n"; |
| 183 | |
| 184 | CSecurityLevel sl(GetSecurityLevel()); |
| 185 | if(!(GetSecurityLevel() & CSecurityLevel::Level::No)) { |
| 186 | szDescription += tr("Security level: "); |
| 187 | if(!sl.GetUnicodeIcon().isEmpty()) |
| 188 | szDescription += sl.GetUnicodeIcon() + " "; |
| 189 | szDescription += sl.GetString() + "\n"; |
| 190 | } |
| 191 | |
| 192 | if(!GetPlugin()->Description().isEmpty()) |
| 193 | szDescription += tr("Description: ") + GetPlugin()->Description(); |
| 194 | |
| 195 | return szDescription; |
| 196 | } |
| 197 | |
| 198 | const QString COperateFileTransfer::Protocol() const |
| 199 | { |
nothing calls this directly
no test coverage detected