MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / Description

Method Description

Plugins/FtpServer/OperateFtpServer.cpp:228–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228const 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}

Callers

nothing calls this directly

Calls 5

ProtocolEnum · 0.85
GetUnicodeIconMethod · 0.80
GetStringMethod · 0.80
isEmptyMethod · 0.45
DisplayNameMethod · 0.45

Tested by

no test coverage detected