| 226 | } |
| 227 | |
| 228 | const QString COperateFtpServer::Description() |
| 229 | { |
| 230 | QString szDescription; |
| 231 | if(!Name().isEmpty()) |
| 232 | szDescription = tr("Name: ") + Name() + "\n"; |
| 233 | |
| 234 | if(!GetTypeName().isEmpty()) |
| 235 | szDescription += tr("Type: ") + GetTypeName() + "\n"; |
| 236 | |
| 237 | if(!Protocol().isEmpty()) { |
| 238 | szDescription += tr("Protocol: ") + Protocol(); |
| 239 | #ifdef DEBUG |
| 240 | if(!GetPlugin()->DisplayName().isEmpty()) |
| 241 | szDescription += " - " + GetPlugin()->DisplayName(); |
| 242 | #endif |
| 243 | szDescription += "\n"; |
| 244 | } |
| 245 | |
| 246 | CSecurityLevel sl(GetSecurityLevel()); |
| 247 | if(!(GetSecurityLevel() & CSecurityLevel::Level::No)) { |
| 248 | szDescription += tr("Security level: "); |
| 249 | if(!sl.GetUnicodeIcon().isEmpty()) |
| 250 | szDescription += sl.GetUnicodeIcon() + " "; |
| 251 | szDescription += sl.GetString() + "\n"; |
| 252 | } |
| 253 | |
| 254 | if(!GetPlugin()->Description().isEmpty()) |
| 255 | szDescription += tr("Description: ") + GetPlugin()->Description(); |
| 256 | |
| 257 | return szDescription; |
| 258 | } |
nothing calls this directly
no test coverage detected