|
qTox
Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
|
#include <friendlistmanager.h>


Classes | |
| struct | FilterParams |
Public Types | |
| using | IFriendListItemPtr = std::shared_ptr< IFriendListItem > |
Signals | |
| void | itemsChanged () |
Public Member Functions | |
| FriendListManager (int countContacts, QObject *parent=nullptr) | |
| QVector< IFriendListItemPtr > | getItems () const |
| bool | needHideCircles () const |
| bool | getPositionsChanged () const |
| void | addFriendListItem (IFriendListItem *item) |
| void | removeFriendListItem (IFriendListItem *item) |
| void | sortByName () |
| void | sortByActivity () |
| void | resetParents () |
| void | setFilter (const QString &searchString, bool hideOnline, bool hideOffline, bool hideGroups) |
| void | applyFilter () |
| void | updatePositions () |
| void | setSortRequired () |
| void | setGroupsOnTop (bool v) |
Private Member Functions | |
| void | removeAll (IFriendListItem *) |
| bool | cmpByName (const IFriendListItemPtr &, const IFriendListItemPtr &, bool groupsOnTop) |
| bool | cmpByActivity (const IFriendListItemPtr &, const IFriendListItemPtr &) |
Private Attributes | |
| struct FriendListManager::FilterParams | filterParams |
| bool | byName = true |
| bool | hideCircles = false |
| bool | groupsOnTop |
| bool | positionsChanged |
| bool | needSort |
| QVector< IFriendListItemPtr > | items |
| int | countContacts |
Definition at line 29 of file friendlistmanager.h.
| using FriendListManager::IFriendListItemPtr = std::shared_ptr<IFriendListItem> |
Definition at line 33 of file friendlistmanager.h.
|
explicit |
Definition at line 23 of file friendlistmanager.cpp.
| void FriendListManager::addFriendListItem | ( | IFriendListItem * | item | ) |
Definition at line 43 of file friendlistmanager.cpp.


| void FriendListManager::applyFilter | ( | ) |
|
private |
|
private |
| QVector< FriendListManager::IFriendListItemPtr > FriendListManager::getItems | ( | ) | const |
| bool FriendListManager::getPositionsChanged | ( | ) | const |
|
signal |

| bool FriendListManager::needHideCircles | ( | ) | const |
|
private |
| void FriendListManager::removeFriendListItem | ( | IFriendListItem * | item | ) |
Definition at line 58 of file friendlistmanager.cpp.


| void FriendListManager::resetParents | ( | ) |
Definition at line 76 of file friendlistmanager.cpp.


| void FriendListManager::setFilter | ( | const QString & | searchString, |
| bool | hideOnline, | ||
| bool | hideOffline, | ||
| bool | hideGroups | ||
| ) |
Definition at line 84 of file friendlistmanager.cpp.


| void FriendListManager::setGroupsOnTop | ( | bool | v | ) |
| void FriendListManager::setSortRequired | ( | ) |
| void FriendListManager::sortByActivity | ( | ) |
Definition at line 70 of file friendlistmanager.cpp.


| void FriendListManager::sortByName | ( | ) |
Definition at line 64 of file friendlistmanager.cpp.


| void FriendListManager::updatePositions | ( | ) |
Definition at line 133 of file friendlistmanager.cpp.


|
private |
Definition at line 70 of file friendlistmanager.h.
|
private |
Definition at line 77 of file friendlistmanager.h.
|
private |
|
private |
Definition at line 72 of file friendlistmanager.h.
|
private |
Definition at line 71 of file friendlistmanager.h.
|
private |
Definition at line 75 of file friendlistmanager.h.
|
private |
Definition at line 74 of file friendlistmanager.h.
|
private |
Definition at line 73 of file friendlistmanager.h.
1.8.17