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

Method Description

Plugins/Telnet/OperateTelnet.cpp:179–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179const QString COperateTelnet::Description()
180{
181 QString szDescription;
182 if(!Name().isEmpty())
183 szDescription = tr("Name: ") + Name() + "\n";
184
185 if(!GetTypeName().isEmpty())
186 szDescription += tr("Type: ") + GetTypeName() + "\n";
187
188 if(!Protocol().isEmpty()) {
189 szDescription += tr("Protocol: ") + Protocol();
190#ifdef DEBUG
191 if(!GetPlugin()->DisplayName().isEmpty())
192 szDescription += " - " + GetPlugin()->DisplayName();
193#endif
194 szDescription += "\n";
195 }
196
197 auto &net = m_Parameters.m_Net;
198 if(!net.GetHost().isEmpty())
199 szDescription += tr("Server address: ") + net.GetHost()
200 + ":" + QString::number(net.GetPort()) + "\n";
201
202 CSecurityLevel sl(GetSecurityLevel());
203 if(!(GetSecurityLevel() & CSecurityLevel::Level::No)) {
204 szDescription += tr("Security level: ");
205 if(!sl.GetUnicodeIcon().isEmpty())
206 szDescription += sl.GetUnicodeIcon() + " ";
207 szDescription += sl.GetString() + "\n";
208 }
209
210 if(!GetPlugin()->Description().isEmpty())
211 szDescription += tr("Description: ") + GetPlugin()->Description();
212
213 return szDescription;
214}
215
216void COperateTelnet::slotNewData(const char *buf, int len)
217{

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