qTox  Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
Static Public Member Functions | Static Private Attributes | List of all members
FriendList Class Reference

#include <friendlist.h>

Collaboration diagram for FriendList:
Collaboration graph

Static Public Member Functions

static FriendaddFriend (uint32_t friendId, const ToxPk &friendPk)
 
static FriendfindFriend (const ToxPk &friendPk)
 
static const ToxPkid2Key (uint32_t friendId)
 
static QList< Friend * > getAllFriends ()
 
static void removeFriend (const ToxPk &friendPk, bool fake=false)
 
static void clear ()
 
static QString decideNickname (const ToxPk &friendPk, const QString &origName)
 

Static Private Attributes

static QHash< ToxPk, Friend * > friendList
 
static QHash< uint32_t, ToxPkid2key
 

Detailed Description

Definition at line 33 of file friendlist.h.

Member Function Documentation

◆ addFriend()

Friend * FriendList::addFriend ( uint32_t  friendId,
const ToxPk friendPk 
)
static

Definition at line 32 of file friendlist.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clear()

void FriendList::clear ( )
static

Definition at line 72 of file friendlist.cpp.

Here is the caller graph for this function:

◆ decideNickname()

QString FriendList::decideNickname ( const ToxPk friendPk,
const QString &  origName 
)
static

Definition at line 84 of file friendlist.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findFriend()

Friend * FriendList::findFriend ( const ToxPk friendPk)
static

Definition at line 47 of file friendlist.cpp.

Here is the caller graph for this function:

◆ getAllFriends()

QList< Friend * > FriendList::getAllFriends ( )
static

Definition at line 79 of file friendlist.cpp.

Here is the caller graph for this function:

◆ id2Key()

const ToxPk & FriendList::id2Key ( uint32_t  friendId)
static

Definition at line 57 of file friendlist.cpp.

Here is the caller graph for this function:

◆ removeFriend()

void FriendList::removeFriend ( const ToxPk friendPk,
bool  fake = false 
)
static

Definition at line 62 of file friendlist.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ friendList

QHash< ToxPk, Friend * > FriendList::friendList
staticprivate

Definition at line 45 of file friendlist.h.

◆ id2key

QHash< uint32_t, ToxPk > FriendList::id2key
staticprivate

Definition at line 46 of file friendlist.h.


The documentation for this class was generated from the following files: