MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / getUserAlias

Method getUserAlias

src/database/WizDatabase.cpp:3013–3031  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3011}
3012
3013QString WizDatabase::getUserAlias()
3014{
3015 WizDatabase* personDb = personalDatabase();
3016 if (!personDb)
3017 return QString();
3018
3019 QString strUserGUID = personDb->getUserGuid();
3020 WIZBIZUSER bizUser;
3021 personDb->userFromGUID(kbGUID(), strUserGUID, bizUser);
3022 if (!bizUser.alias.isEmpty()) {
3023 return bizUser.alias;
3024 } else {
3025 QString strUserName;
3026 personDb->getUserDisplayName(strUserName);
3027 return strUserName;
3028 }
3029
3030 return QString();
3031}
3032
3033QString WizDatabase::getEncryptedPassword()
3034{

Callers 3

sFunction · 0.45
dFunction · 0.45
tFunction · 0.45

Calls 5

userFromGUIDMethod · 0.80
isEmptyMethod · 0.80
getUserDisplayNameMethod · 0.80
QStringClass · 0.70
getUserGuidMethod · 0.45

Tested by

no test coverage detected