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

#include <local_server_interface.h>

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

Public Slots

void itemFromClient (const CommandContainer &item)
Public Slots inherited from Server_ProtocolHandler
void prepareDestroy ()

Signals

void itemToClient (const ServerMessage &item)

Public Member Functions

 LocalServerInterface (LocalServer *_server, Server_DatabaseInterface *_databaseInterface)
 ~LocalServerInterface () override
QString getAddress () const override
QString getConnectionType () const override
void transmitProtocolItem (const ServerMessage &item) override
Public Member Functions inherited from Server_ProtocolHandler
 Server_ProtocolHandler (Server *_server, Server_DatabaseInterface *_databaseInterface, QObject *parent=0)
 ~Server_ProtocolHandler ()
bool getAcceptsUserListChanges () const
bool getAcceptsRoomListChanges () const
Server_DatabaseInterfacegetDatabaseInterface () const
int getLastCommandTime () const
bool addSaidMessageSize (int size)
void processCommandContainer (const CommandContainer &cont)
void sendProtocolItem (const Response &item)
void sendProtocolItem (const SessionEvent &item)
void sendProtocolItem (const GameEventContainer &item)
void sendProtocolItem (const RoomEvent &item)
Public Member Functions inherited from Server_AbstractUserInterface
 Server_AbstractUserInterface (Server *_server)
 Server_AbstractUserInterface (Server *_server, const ServerInfo_User_Container &other)
 ~Server_AbstractUserInterface () override
void playerRemovedFromGame (Server_Game *game)
void playerAddedToGame (int gameId, int roomId, int playerId)
void joinPersistentGames (ResponseContainer &rc)
QMap< int, QPair< int, int > > getGames () const
void sendProtocolItemByType (ServerMessage::MessageType type, const ::google::protobuf::Message &item)
void sendResponseContainer (const ResponseContainer &responseContainer, Response::ResponseCode responseCode)
Public Member Functions inherited from ServerInfo_User_Container
 ServerInfo_User_Container (ServerInfo_User *_userInfo=nullptr)
 ServerInfo_User_Container (const ServerInfo_User &_userInfo)
 ServerInfo_User_Container (const ServerInfo_User_Container &other)
ServerInfo_User_Containeroperator= (const ServerInfo_User_Container &other)=default
virtual ~ServerInfo_User_Container ()
ServerInfo_User * getUserInfo () const
void setUserInfo (const ServerInfo_User &_userInfo)
ServerInfo_User & copyUserInfo (ServerInfo_User &result, bool complete, bool internalInfo=false, bool sessionInfo=false) const
ServerInfo_User copyUserInfo (bool complete, bool internalInfo=false, bool sessionInfo=false) const

Additional Inherited Members

Static Public Member Functions inherited from Server_AbstractUserInterface
static SessionEvent * prepareSessionEvent (const ::google::protobuf::Message &sessionEvent)
Protected Member Functions inherited from Server_ProtocolHandler
virtual void logDebugMessage (const QString &)
Protected Attributes inherited from Server_ProtocolHandler
QMap< int, Server_Room * > rooms
bool deleted
Server_DatabaseInterfacedatabaseInterface
AuthenticationResult authState
bool usingRealPassword
bool acceptsUserListChanges
bool acceptsRoomListChanges
bool idleClientWarningSent
Protected Attributes inherited from Server_AbstractUserInterface
Serverserver
Protected Attributes inherited from ServerInfo_User_Container
ServerInfo_User * userInfo

Constructor & Destructor Documentation

◆ LocalServerInterface()

LocalServerInterface::LocalServerInterface ( LocalServer * _server,
Server_DatabaseInterface * _databaseInterface )
Here is the call graph for this function:

◆ ~LocalServerInterface()

LocalServerInterface::~LocalServerInterface ( )
override

Member Function Documentation

◆ getAddress()

QString LocalServerInterface::getAddress ( ) const
inlineoverridevirtual

◆ getConnectionType()

QString LocalServerInterface::getConnectionType ( ) const
inlineoverridevirtual

◆ itemFromClient

void LocalServerInterface::itemFromClient ( const CommandContainer & item)
slot
Here is the call graph for this function:

◆ itemToClient

void LocalServerInterface::itemToClient ( const ServerMessage & item)
signal
Here is the caller graph for this function:

◆ transmitProtocolItem()

void LocalServerInterface::transmitProtocolItem ( const ServerMessage & item)
overridevirtual

Implements Server_ProtocolHandler.

Here is the call graph for this function:

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