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

Method Description

Plugins/FileTransfer/OperateFileTransfer.cpp:161–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161const 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
198const QString COperateFileTransfer::Protocol() const
199{

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected