MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / smartLinkUserText

Function smartLinkUserText

src/gui/ConnectionPanel.cpp:159–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159QString smartLinkUserText(const SmartLinkClient* client)
160{
161 if (!client)
162 return QStringLiteral("Sign in to see radios at remote stations.");
163
164 if (!client->firstName().isEmpty()) {
165 const QString call = client->callsign().trimmed();
166 if (!call.isEmpty()) {
167 return QStringLiteral("%1 %2 (%3)")
168 .arg(client->firstName().trimmed(),
169 client->lastName().trimmed(),
170 call);
171 }
172 return QStringLiteral("%1 %2")
173 .arg(client->firstName().trimmed(), client->lastName().trimmed());
174 }
175
176 if (!client->callsign().trimmed().isEmpty())
177 return QStringLiteral("Signed in as %1").arg(client->callsign().trimmed());
178
179 return QStringLiteral("Signed in to SmartLink");
180}
181
182QString normalizedStatus(QString status)
183{

Callers 2

updateSmartLinkUiMethod · 0.85
setSmartLinkClientMethod · 0.85

Calls 4

firstNameMethod · 0.80
lastNameMethod · 0.80
isEmptyMethod · 0.45
callsignMethod · 0.45

Tested by

no test coverage detected