qTox
Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
|
Go to the documentation of this file.
34 auto friendChecker =
friendList.find(friendPk);
36 qWarning() <<
"addFriend: friendPk already taken";
40 Friend* newfriend =
new Friend(friendId, friendPk, alias);
42 id2key[friendId] = friendPk;
89 }
else if (!origName.isEmpty()) {
void removeFriendSettings(const ToxPk &id) override
static void removeFriend(const ToxPk &friendPk, bool fake=false)
QString getFriendAlias(const ToxPk &id) const override
static QString decideNickname(const ToxPk &friendPk, const QString &origName)
static QHash< ToxPk, Friend * > friendList
static Friend * addFriend(uint32_t friendId, const ToxPk &friendPk)
static Friend * findFriend(const ToxPk &friendPk)
static QList< Friend * > getAllFriends()
This class represents a Tox Public Key, which is a part of Tox ID.
static QHash< uint32_t, ToxPk > id2key
QString getDisplayedName() const override
Friend::getDisplayedName Gets the name that should be displayed for a user.
static Settings & getInstance()
Returns the singleton instance.
static const ToxPk & id2Key(uint32_t friendId)