Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
UserListManager Class Reference

#include <user_list_manager.h>

Inheritance diagram for UserListManager:
[legend]
Collaboration diagram for UserListManager:
[legend]

Public Slots

void handleConnect ()
void handleDisconnect ()

Signals

void userLeft (const QString &userName)
void userJoined (const ServerInfo_User &userInfo)

Public Member Functions

 UserListManager (AbstractClient *_client, QObject *parent=nullptr)
 ~UserListManager () override
QMap< QString, ServerInfo_User > getAllUsersList () const
QMap< QString, ServerInfo_User > getBuddyList () const
QMap< QString, ServerInfo_User > getIgnoreList () const
bool isOwnUserRegistered () const override
QString getOwnUsername () const override
bool isUserBuddy (const QString &userName) const override
bool isUserIgnored (const QString &userName) const override
const ServerInfo_User * getOnlineUser (const QString &userName) const override

Private Slots

void setOwnUserInfo (const ServerInfo_User &userInfo)
void populateInitialOnlineUsers ()
void processListUsersResponse (const Response &response)
void processUserJoinedEvent (const Event_UserJoined &event)
void processUserLeftEvent (const Event_UserLeft &event)
void buddyListReceived (const QList< ServerInfo_User > &_buddyList)
void ignoreListReceived (const QList< ServerInfo_User > &_ignoreList)
void processAddToListEvent (const Event_AddToList &event)
void processRemoveFromListEvent (const Event_RemoveFromList &event)

Private Attributes

AbstractClientclient
ServerInfo_User * ownUserInfo
QMap< QString, ServerInfo_User > onlineUsers
QMap< QString, ServerInfo_User > buddyUsers
QMap< QString, ServerInfo_User > ignoredUsers

Constructor & Destructor Documentation

◆ UserListManager()

UserListManager::UserListManager ( AbstractClient * _client,
QObject * parent = nullptr )
explicit
Here is the call graph for this function:

◆ ~UserListManager()

UserListManager::~UserListManager ( )
override
Here is the call graph for this function:

Member Function Documentation

◆ buddyListReceived

void UserListManager::buddyListReceived ( const QList< ServerInfo_User > & _buddyList)
privateslot
Here is the caller graph for this function:

◆ getAllUsersList()

QMap< QString, ServerInfo_User > UserListManager::getAllUsersList ( ) const
inlinenodiscard

◆ getBuddyList()

QMap< QString, ServerInfo_User > UserListManager::getBuddyList ( ) const
inlinenodiscard

◆ getIgnoreList()

QMap< QString, ServerInfo_User > UserListManager::getIgnoreList ( ) const
inlinenodiscard

◆ getOnlineUser()

const ServerInfo_User * UserListManager::getOnlineUser ( const QString & userName) const
nodiscardoverridevirtual

Implements UserListProxy.

◆ getOwnUsername()

QString UserListManager::getOwnUsername ( ) const
nodiscardoverridevirtual

Implements UserListProxy.

◆ handleConnect

void UserListManager::handleConnect ( )
slot
Here is the call graph for this function:

◆ handleDisconnect

void UserListManager::handleDisconnect ( )
slot
Here is the caller graph for this function:

◆ ignoreListReceived

void UserListManager::ignoreListReceived ( const QList< ServerInfo_User > & _ignoreList)
privateslot
Here is the caller graph for this function:

◆ isOwnUserRegistered()

bool UserListManager::isOwnUserRegistered ( ) const
nodiscardoverridevirtual

Implements UserListProxy.

◆ isUserBuddy()

bool UserListManager::isUserBuddy ( const QString & userName) const
nodiscardoverridevirtual

Implements UserListProxy.

◆ isUserIgnored()

bool UserListManager::isUserIgnored ( const QString & userName) const
nodiscardoverridevirtual

Implements UserListProxy.

◆ populateInitialOnlineUsers

void UserListManager::populateInitialOnlineUsers ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ processAddToListEvent

void UserListManager::processAddToListEvent ( const Event_AddToList & event)
privateslot
Here is the caller graph for this function:

◆ processListUsersResponse

void UserListManager::processListUsersResponse ( const Response & response)
privateslot
Here is the caller graph for this function:

◆ processRemoveFromListEvent

void UserListManager::processRemoveFromListEvent ( const Event_RemoveFromList & event)
privateslot
Here is the caller graph for this function:

◆ processUserJoinedEvent

void UserListManager::processUserJoinedEvent ( const Event_UserJoined & event)
privateslot
Here is the caller graph for this function:

◆ processUserLeftEvent

void UserListManager::processUserLeftEvent ( const Event_UserLeft & event)
privateslot
Here is the caller graph for this function:

◆ setOwnUserInfo

void UserListManager::setOwnUserInfo ( const ServerInfo_User & userInfo)
privateslot
Here is the caller graph for this function:

◆ userJoined

void UserListManager::userJoined ( const ServerInfo_User & userInfo)
signal

◆ userLeft

void UserListManager::userLeft ( const QString & userName)
signal

Member Data Documentation

◆ buddyUsers

QMap<QString, ServerInfo_User> UserListManager::buddyUsers
private

◆ client

AbstractClient* UserListManager::client
private

◆ ignoredUsers

QMap<QString, ServerInfo_User> UserListManager::ignoredUsers
private

◆ onlineUsers

QMap<QString, ServerInfo_User> UserListManager::onlineUsers
private

◆ ownUserInfo

ServerInfo_User* UserListManager::ownUserInfo
private

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