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

#include <tab_account.h>

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

Signals

void openMessageDialog (const QString &userName, bool focus)
void userLeft (const QString &userName)
void userJoined (const ServerInfo_User &userInfo)
Signals inherited from Tab
void userEvent (bool globalEvent=true)
void tabTextChanged (Tab *tab, const QString &newTabText)

Public Member Functions

 TabAccount (TabSupervisor *_tabSupervisor, AbstractClient *_client, const ServerInfo_User &userInfo)
void retranslateUi () override
QString getTabText () const override
Public Member Functions inherited from Tab
 Tab (TabSupervisor *_tabSupervisor)
const QList< QMenu * > & getTabMenus () const
TabSupervisorgetTabSupervisor () const
bool getContentsChanged () const
void setContentsChanged (bool _contentsChanged)
virtual bool closeRequest ()
virtual void tabActivated ()

Private Slots

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)
void addToIgnoreList ()
void addToBuddyList ()

Private Member Functions

void addToList (const std::string &listName, const QString &userName)

Private Attributes

AbstractClientclient
UserListWidgetallUsersList
UserListWidgetbuddyList
UserListWidgetignoreList
UserInfoBoxuserInfoBox
LineEditUnfocusableaddBuddyEdit
LineEditUnfocusableaddIgnoreEdit

Additional Inherited Members

Protected Slots inherited from Tab
void showCardInfoPopup (const QPoint &pos, const CardRef &cardRef)
void deleteCardInfoPopup (const QString &cardName)
Protected Member Functions inherited from Tab
void addTabMenu (QMenu *menu)
Protected Attributes inherited from Tab
TabSupervisortabSupervisor

Constructor & Destructor Documentation

◆ TabAccount()

TabAccount::TabAccount ( TabSupervisor * _tabSupervisor,
AbstractClient * _client,
const ServerInfo_User & userInfo )
explicit
Here is the call graph for this function:

Member Function Documentation

◆ addToBuddyList

void TabAccount::addToBuddyList ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addToIgnoreList

void TabAccount::addToIgnoreList ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addToList()

void TabAccount::addToList ( const std::string & listName,
const QString & userName )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ buddyListReceived

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

◆ getTabText()

QString TabAccount::getTabText ( ) const
inlinenodiscardoverridevirtual

Implements Tab.

◆ ignoreListReceived

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

◆ openMessageDialog

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

◆ processAddToListEvent

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

◆ processListUsersResponse

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

◆ processRemoveFromListEvent

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

◆ processUserJoinedEvent

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

◆ processUserLeftEvent

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

◆ retranslateUi()

void TabAccount::retranslateUi ( )
overridevirtual

Implements Tab.

Here is the caller graph for this function:

◆ userJoined

void TabAccount::userJoined ( const ServerInfo_User & userInfo)
signal
Here is the caller graph for this function:

◆ userLeft

void TabAccount::userLeft ( const QString & userName)
signal
Here is the caller graph for this function:

Member Data Documentation

◆ addBuddyEdit

LineEditUnfocusable* TabAccount::addBuddyEdit
private

◆ addIgnoreEdit

LineEditUnfocusable* TabAccount::addIgnoreEdit
private

◆ allUsersList

UserListWidget* TabAccount::allUsersList
private

◆ buddyList

UserListWidget* TabAccount::buddyList
private

◆ client

AbstractClient* TabAccount::client
private

◆ ignoreList

UserListWidget* TabAccount::ignoreList
private

◆ userInfoBox

UserInfoBox* TabAccount::userInfoBox
private

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