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

#include <user_list_widget.h>

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

Public Types

enum  UserListType { AllUsersList , RoomList , BuddyList , IgnoreList }

Signals

void openMessageDialog (const QString &userName, bool focus)
void addBuddy (const QString &userName)
void removeBuddy (const QString &userName)
void addIgnore (const QString &userName)
void removeIgnore (const QString &userName)

Public Member Functions

 UserListWidget (TabSupervisor *_tabSupervisor, AbstractClient *_client, UserListType _type, QWidget *parent=nullptr)
void retranslateUi ()
void processUserInfo (const ServerInfo_User &user, bool online)
bool deleteUser (const QString &userName)
void setUserOnline (const QString &userName, bool online)
const QMap< QString, UserListTWI * > & getUsers () const
void showContextMenu (const QPoint &pos, const QModelIndex &index)
void sortItems ()

Private Slots

void userClicked (QTreeWidgetItem *item, int column)

Private Member Functions

void updateCount ()

Private Attributes

QMap< QString, UserListTWI * > users
TabSupervisortabSupervisor
AbstractClientclient
UserListType type
QTreeWidget * userTree
UserListItemDelegateitemDelegate
UserContextMenuuserContextMenu
int onlineCount
QString titleStr

Member Enumeration Documentation

◆ UserListType

Enumerator
AllUsersList 
RoomList 
BuddyList 
IgnoreList 

Constructor & Destructor Documentation

◆ UserListWidget()

UserListWidget::UserListWidget ( TabSupervisor * _tabSupervisor,
AbstractClient * _client,
UserListType _type,
QWidget * parent = nullptr )
Here is the call graph for this function:

Member Function Documentation

◆ addBuddy

void UserListWidget::addBuddy ( const QString & userName)
signal

◆ addIgnore

void UserListWidget::addIgnore ( const QString & userName)
signal

◆ deleteUser()

bool UserListWidget::deleteUser ( const QString & userName)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getUsers()

const QMap< QString, UserListTWI * > & UserListWidget::getUsers ( ) const
inlinenodiscard

◆ openMessageDialog

void UserListWidget::openMessageDialog ( const QString & userName,
bool focus )
signal
Here is the caller graph for this function:

◆ processUserInfo()

void UserListWidget::processUserInfo ( const ServerInfo_User & user,
bool online )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeBuddy

void UserListWidget::removeBuddy ( const QString & userName)
signal

◆ removeIgnore

void UserListWidget::removeIgnore ( const QString & userName)
signal

◆ retranslateUi()

void UserListWidget::retranslateUi ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setUserOnline()

void UserListWidget::setUserOnline ( const QString & userName,
bool online )
Here is the call graph for this function:

◆ showContextMenu()

void UserListWidget::showContextMenu ( const QPoint & pos,
const QModelIndex & index )
Here is the call graph for this function:

◆ sortItems()

void UserListWidget::sortItems ( )
Here is the caller graph for this function:

◆ updateCount()

void UserListWidget::updateCount ( )
private
Here is the caller graph for this function:

◆ userClicked

void UserListWidget::userClicked ( QTreeWidgetItem * item,
int column )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ client

AbstractClient* UserListWidget::client
private

◆ itemDelegate

UserListItemDelegate* UserListWidget::itemDelegate
private

◆ onlineCount

int UserListWidget::onlineCount
private

◆ tabSupervisor

TabSupervisor* UserListWidget::tabSupervisor
private

◆ titleStr

QString UserListWidget::titleStr
private

◆ type

UserListType UserListWidget::type
private

◆ userContextMenu

UserContextMenu* UserListWidget::userContextMenu
private

◆ users

QMap<QString, UserListTWI *> UserListWidget::users
private

◆ userTree

QTreeWidget* UserListWidget::userTree
private

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