#include <server_room.h>
|
| | Server_Room (int _id, int _chatHistorySize, const QString &_name, const QString &_description, const QString &_permissionLevel, const QString &_privilegeLevel, bool _autoJoin, const QString &_joinMessage, const QStringList &_gameTypes, Server *parent) |
| | ~Server_Room () override |
| int | getId () const |
| QString | getName () const |
| QString | getDescription () const |
| QString | getRoomPermission () const |
| QString | getRoomPrivilege () const |
| bool | getAutoJoin () const |
| bool | userMayJoin (const ServerInfo_User &userInfo) |
| QString | getJoinMessage () const |
| const QStringList & | getGameTypes () const |
| const QMap< int, Server_Game * > & | getGames () const |
| const QMap< int, ServerInfo_Game > & | getExternalGames () const |
| Server * | getServer () const |
| const ServerInfo_Room & | getInfo (ServerInfo_Room &result, bool complete, bool showGameTypes=false, bool includeExternalData=true) const |
| int | getGamesCreatedByUser (const QString &name) const |
| QList< ServerInfo_Game > | getGamesOfUser (const QString &name) const |
| QList< ServerInfo_ChatMessage > & | getChatHistory () |
| void | addClient (Server_ProtocolHandler *client) |
| void | removeClient (Server_ProtocolHandler *client) |
| void | addExternalUser (const ServerInfo_User &userInfo) |
| void | removeExternalUser (const QString &_name) |
| const QMap< QString, ServerInfo_User_Container > & | getExternalUsers () const |
| void | updateExternalGameList (const ServerInfo_Game &gameInfo) |
| Response::ResponseCode | processJoinGameCommand (const Command_JoinGame &cmd, ResponseContainer &rc, Server_AbstractUserInterface *userInterface) |
| void | say (const QString &userName, const QString &s, bool sendToIsl=true) |
| void | removeSaidMessages (const QString &userName, int amount, bool sendToIsl=true) |
| void | addGame (Server_Game *game) |
| void | removeGame (Server_Game *game) |
| void | sendRoomEvent (RoomEvent *event, bool sendToIsl=true) |
| RoomEvent * | prepareRoomEvent (const ::google::protobuf::Message &roomEvent) |
◆ Server_Room()
| Server_Room::Server_Room |
( |
int | _id, |
|
|
int | _chatHistorySize, |
|
|
const QString & | _name, |
|
|
const QString & | _description, |
|
|
const QString & | _permissionLevel, |
|
|
const QString & | _privilegeLevel, |
|
|
bool | _autoJoin, |
|
|
const QString & | _joinMessage, |
|
|
const QStringList & | _gameTypes, |
|
|
Server * | parent ) |
◆ ~Server_Room()
| Server_Room::~Server_Room |
( |
| ) |
|
|
override |
◆ addClient()
◆ addExternalUser()
◆ addGame()
◆ broadcastGameListUpdate
| void Server_Room::broadcastGameListUpdate |
( |
const ServerInfo_Game & | gameInfo, |
|
|
bool | sendToIsl = true ) |
|
privateslot |
◆ gameListChanged
◆ getAutoJoin()
| bool Server_Room::getAutoJoin |
( |
| ) |
const |
|
inline |
◆ getChatHistory()
◆ getDescription()
| QString Server_Room::getDescription |
( |
| ) |
const |
|
inline |
◆ getExternalGames()
| const QMap< int, ServerInfo_Game > & Server_Room::getExternalGames |
( |
| ) |
const |
|
inline |
◆ getExternalUsers()
◆ getGames()
| const QMap< int, Server_Game * > & Server_Room::getGames |
( |
| ) |
const |
|
inline |
◆ getGamesCreatedByUser()
| int Server_Room::getGamesCreatedByUser |
( |
const QString & | name | ) |
const |
◆ getGamesOfUser()
| QList< ServerInfo_Game > Server_Room::getGamesOfUser |
( |
const QString & | name | ) |
const |
◆ getGameTypes()
| const QStringList & Server_Room::getGameTypes |
( |
| ) |
const |
|
inline |
◆ getId()
| int Server_Room::getId |
( |
| ) |
const |
|
inline |
◆ getInfo()
| const ServerInfo_Room & Server_Room::getInfo |
( |
ServerInfo_Room & | result, |
|
|
bool | complete, |
|
|
bool | showGameTypes = false, |
|
|
bool | includeExternalData = true ) const |
◆ getJoinMessage()
| QString Server_Room::getJoinMessage |
( |
| ) |
const |
|
inline |
◆ getName()
| QString Server_Room::getName |
( |
| ) |
const |
|
inline |
◆ getRoomPermission()
| QString Server_Room::getRoomPermission |
( |
| ) |
const |
|
inline |
◆ getRoomPrivilege()
| QString Server_Room::getRoomPrivilege |
( |
| ) |
const |
|
inline |
◆ getServer()
| Server * Server_Room::getServer |
( |
| ) |
const |
◆ prepareRoomEvent()
| RoomEvent * Server_Room::prepareRoomEvent |
( |
const ::google::protobuf::Message & | roomEvent | ) |
|
◆ processJoinGameCommand()
◆ removeClient()
◆ removeExternalUser()
| void Server_Room::removeExternalUser |
( |
const QString & | _name | ) |
|
◆ removeGame()
◆ removeSaidMessages()
| void Server_Room::removeSaidMessages |
( |
const QString & | userName, |
|
|
int | amount, |
|
|
bool | sendToIsl = true ) |
◆ roomInfoChanged
◆ say()
| void Server_Room::say |
( |
const QString & | userName, |
|
|
const QString & | s, |
|
|
bool | sendToIsl = true ) |
◆ sendRoomEvent()
| void Server_Room::sendRoomEvent |
( |
RoomEvent * | event, |
|
|
bool | sendToIsl = true ) |
◆ updateExternalGameList()
| void Server_Room::updateExternalGameList |
( |
const ServerInfo_Game & | gameInfo | ) |
|
◆ userMayJoin()
◆ autoJoin
| bool Server_Room::autoJoin |
|
private |
◆ chatHistory
◆ chatHistorySize
| int Server_Room::chatHistorySize |
|
private |
◆ description
| QString Server_Room::description |
|
private |
◆ externalGames
◆ externalUsers
◆ games
◆ gamesLock
| QReadWriteLock Server_Room::gamesLock |
|
mutable |
◆ gameTypes
| QStringList Server_Room::gameTypes |
|
private |
◆ historyLock
| QReadWriteLock Server_Room::historyLock |
|
mutable |
◆ id
◆ joinMessage
| QString Server_Room::joinMessage |
|
private |
◆ name
| QString Server_Room::name |
|
private |
◆ permissionLevel
| QString Server_Room::permissionLevel |
|
private |
◆ privilegeLevel
| QString Server_Room::privilegeLevel |
|
private |
◆ users
◆ usersLock
| QReadWriteLock Server_Room::usersLock |
|
mutable |
The documentation for this class was generated from the following files:
- libcockatrice_network/libcockatrice/network/server/remote/server_room.h
- libcockatrice_network/libcockatrice/network/server/remote/server_room.cpp