Ref T401, utility functions info for crashpad

This commit is contained in:
Klaus Basan
2018-11-01 16:03:30 +01:00
parent 4ff531c6c4
commit bb34bc7939
3 changed files with 15 additions and 2 deletions

View File

@@ -55,6 +55,16 @@ namespace BlackMisc
return this->getRealName() % separator % this->getHomeBase().asString();
}
QString CUser::getRealNameAndId() const
{
if (this->hasRealName())
{
if (this->hasId()) { return this->getRealName() % QStringLiteral(" (") % this->getId() % QStringLiteral(")"); }
return this->getRealName();
}
return this->getId();
}
void CUser::setCallsign(const CCallsign &callsign)
{
m_callsign = callsign;