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

Method Description

Src/Operate.cpp:51–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51const QString COperate::Description()
52{
53 QString szDescription;
54 if(!Name().isEmpty())
55 szDescription = tr("Name: ") + Name() + "\n";
56
57 if(!GetTypeName().isEmpty())
58 szDescription += tr("Type:") + GetTypeName() + "\n";
59
60 if(!Protocol().isEmpty()) {
61 szDescription += tr("Protocol: ") + Protocol();
62#ifdef DEBUG
63 if(!GetPlugin()->DisplayName().isEmpty())
64 szDescription += " - " + GetPlugin()->DisplayName();
65#endif
66 szDescription += "\n";
67 }
68
69 CSecurityLevel sl(GetSecurityLevel());
70 if(GetSecurityLevel() != CSecurityLevel::Level::No) {
71 szDescription += tr("Security level: ");
72 if(!sl.GetUnicodeIcon().isEmpty())
73 szDescription += sl.GetUnicodeIcon() + " ";
74 szDescription += sl.GetString() + "\n";
75 }
76
77 szDescription += tr("Description: ") + GetPlugin()->Description();
78 return szDescription;
79}
80
81const QString COperate::Protocol() const
82{

Callers 7

foreachFunction · 0.45
foreachFunction · 0.45
StartMethod · 0.45
slotUpdateNameMethod · 0.45
GetStartActionMethod · 0.45
AppendPluginMethod · 0.45
foreachFunction · 0.45

Calls 5

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

Tested by

no test coverage detected