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

#include <local_client.h>

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

Public Member Functions

 LocalClient (LocalServerInterface *_lsi, const QString &_playerName, const QString &_clientId, QObject *parent=nullptr)
 ~LocalClient () override
void sendCommandContainer (const CommandContainer &cont) override
Public Member Functions inherited from AbstractClient
 AbstractClient (QObject *parent=nullptr)
 ~AbstractClient () override
ClientStatus getStatus () const
void sendCommand (const CommandContainer &cont)
void sendCommand (PendingCommand *pend)
bool getServerSupportsPasswordHash () const
const QString & getUserName () const

Private Slots

void itemFromServer (const ServerMessage &item)

Private Attributes

LocalServerInterfacelsi

Additional Inherited Members

Signals inherited from AbstractClient
void statusChanged (ClientStatus _status)
void maxPingTime (int seconds, int maxSeconds)
void roomEventReceived (const RoomEvent &event)
void gameEventContainerReceived (const GameEventContainer &event)
void serverIdentificationEventReceived (const Event_ServerIdentification &event)
void connectionClosedEventReceived (const Event_ConnectionClosed &event)
void serverShutdownEventReceived (const Event_ServerShutdown &event)
void addToListEventReceived (const Event_AddToList &event)
void removeFromListEventReceived (const Event_RemoveFromList &event)
void userJoinedEventReceived (const Event_UserJoined &event)
void userLeftEventReceived (const Event_UserLeft &event)
void serverMessageEventReceived (const Event_ServerMessage &event)
void listRoomsEventReceived (const Event_ListRooms &event)
void gameJoinedEventReceived (const Event_GameJoined &event)
void userMessageEventReceived (const Event_UserMessage &event)
void notifyUserEventReceived (const Event_NotifyUser &event)
void userInfoChanged (const ServerInfo_User &userInfo)
void buddyListReceived (const QList< ServerInfo_User > &buddyList)
void ignoreListReceived (const QList< ServerInfo_User > &ignoreList)
void replayAddedEventReceived (const Event_ReplayAdded &event)
void registerAccepted ()
void registerAcceptedNeedsActivate ()
void activateAccepted ()
void sigQueuePendingCommand (PendingCommand *pend)
Static Public Member Functions inherited from AbstractClient
static PendingCommandprepareSessionCommand (const ::google::protobuf::Message &cmd)
static PendingCommandprepareRoomCommand (const ::google::protobuf::Message &cmd, int roomId)
static PendingCommandprepareModeratorCommand (const ::google::protobuf::Message &cmd)
static PendingCommandprepareAdminCommand (const ::google::protobuf::Message &cmd)
Public Attributes inherited from AbstractClient
QMap< QString, bool > clientFeatures
Protected Slots inherited from AbstractClient
void processProtocolItem (const ServerMessage &item)
Protected Member Functions inherited from AbstractClient
void setStatus (ClientStatus _status)
int getNewCmdId ()
Protected Attributes inherited from AbstractClient
QMap< int, PendingCommand * > pendingCommands
QString userName
QString password
QString email
QString country
QString realName
QString token
bool serverSupportsPasswordHash

Constructor & Destructor Documentation

◆ LocalClient()

LocalClient::LocalClient ( LocalServerInterface * _lsi,
const QString & _playerName,
const QString & _clientId,
QObject * parent = nullptr )
Here is the call graph for this function:

◆ ~LocalClient()

LocalClient::~LocalClient ( )
override

Member Function Documentation

◆ itemFromServer

void LocalClient::itemFromServer ( const ServerMessage & item)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendCommandContainer()

void LocalClient::sendCommandContainer ( const CommandContainer & cont)
overridevirtual

Implements AbstractClient.

Here is the call graph for this function:

Member Data Documentation

◆ lsi

LocalServerInterface* LocalClient::lsi
private

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