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

#include <user_list_widget.h>

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

Public Member Functions

 UserListTWI (const ServerInfo_User &_userInfo)
const ServerInfo_User & getUserInfo () const
void setUserInfo (const ServerInfo_User &_userInfo)
void setOnline (bool online)
bool operator< (const QTreeWidgetItem &other) const override

Private Attributes

ServerInfo_User userInfo

Constructor & Destructor Documentation

◆ UserListTWI()

UserListTWI::UserListTWI ( const ServerInfo_User & _userInfo)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ getUserInfo()

const ServerInfo_User & UserListTWI::getUserInfo ( ) const
inline
Here is the caller graph for this function:

◆ operator<()

bool UserListTWI::operator< ( const QTreeWidgetItem & other) const
override

Sort Users in the following order 1) Online Users > Offline Users 2) Admins, judge/vip/donator status ignored 3) Moderators, judge/vip/donator status ignored 4) Judges 5) VIPs 6) Donators 7) Everyone else

Parameters
otherRHS to compare to
Returns
Left is less than the Right

◆ setOnline()

void UserListTWI::setOnline ( bool online)
Here is the caller graph for this function:

◆ setUserInfo()

void UserListTWI::setUserInfo ( const ServerInfo_User & _userInfo)
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ userInfo

ServerInfo_User UserListTWI::userInfo
private

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