This commit is contained in:
Max-Wilhelm Bruker 2011-12-30 02:03:26 +01:00
parent ca9122b9fb
commit 10018280e5
20 changed files with 970 additions and 1178 deletions

View file

@ -6,6 +6,7 @@
#include <QObject>
#include <QStringList>
#include <QMutex>
#include "pb/serverinfo_room.pb.h"
class Server_ProtocolHandler;
class RoomEvent;
@ -38,9 +39,9 @@ public:
QString getJoinMessage() const { return joinMessage; }
const QMap<int, Server_Game *> &getGames() const { return games; }
Server *getServer() const;
ServerInfo_Room *getInfo(bool complete, bool showGameTypes = false) const;
ServerInfo_Room getInfo(bool complete, bool showGameTypes = false) const;
int getGamesCreatedByUser(const QString &name) const;
QList<ServerInfo_Game *> getGamesOfUser(const QString &name) const;
QList<ServerInfo_Game> getGamesOfUser(const QString &name) const;
void addClient(Server_ProtocolHandler *client);
void removeClient(Server_ProtocolHandler *client);
@ -50,6 +51,7 @@ public:
void removeGame(Server_Game *game);
void sendRoomEvent(RoomEvent *event);
RoomEvent *prepareRoomEvent(const ::google::protobuf::Message &roomEvent);
};
#endif