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

#include <tab_server.h>

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

Signals

void roomJoined (const ServerInfo_Room &info, bool setCurrent)
Signals inherited from Tab
void userEvent (bool globalEvent=true)
void tabTextChanged (Tab *tab, const QString &newTabText)

Public Member Functions

 TabServer (TabSupervisor *_tabSupervisor, AbstractClient *_client)
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 processServerMessageEvent (const Event_ServerMessage &event)
void joinRoom (int id, bool setCurrent)
void joinRoomFinished (const Response &resp, const CommandContainer &commandContainer, const QVariant &extraData)

Private Attributes

AbstractClientclient
RoomSelectorroomSelector
QTextBrowser * serverInfoBox
bool shouldEmitUpdate = false

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

◆ TabServer()

TabServer::TabServer ( TabSupervisor * _tabSupervisor,
AbstractClient * _client )
Here is the call graph for this function:

Member Function Documentation

◆ getTabText()

QString TabServer::getTabText ( ) const
inlinenodiscardoverridevirtual

Implements Tab.

◆ joinRoom

void TabServer::joinRoom ( int id,
bool setCurrent )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ joinRoomFinished

void TabServer::joinRoomFinished ( const Response & resp,
const CommandContainer & commandContainer,
const QVariant & extraData )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ processServerMessageEvent

void TabServer::processServerMessageEvent ( const Event_ServerMessage & event)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retranslateUi()

void TabServer::retranslateUi ( )
overridevirtual

Implements Tab.

Here is the caller graph for this function:

◆ roomJoined

void TabServer::roomJoined ( const ServerInfo_Room & info,
bool setCurrent )
signal
Here is the caller graph for this function:

Member Data Documentation

◆ client

AbstractClient* TabServer::client
private

◆ roomSelector

RoomSelector* TabServer::roomSelector
private

◆ serverInfoBox

QTextBrowser* TabServer::serverInfoBox
private

◆ shouldEmitUpdate

bool TabServer::shouldEmitUpdate = false
private

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