libkdegames/kggzmod
KGGZMod::Request Class Reference
#include <request.h>

Detailed Description
Requests to the GGZ core client.Requests are sent from the game client to the GGZ core client whenever there is a need to change something about the game or to get more information. The first group includes seat changes (standing up, sitting down, booting players, adding bots and removing bots again). The second group includes retrieving extended information about a player or all players. In addition, table chat can also happen through a request.
When using KGGZSeatsDialog, everything except for chat can be left to the dialog.
Definition at line 48 of file request.h.
Public Types | |
| enum | Type { state, stand, sit, boot, bot, open, chat, info, rankings } |
Public Member Functions | |
| Request (Type type) | |
| Type | type () const |
Public Attributes | |
| QMap< QString, QString > | data |
Member Enumeration Documentation
The type of the request.
Depending on this type, the object might be casted to a more specific class.
- Enumerator:
-
state Change the state. stand Stand up from seat. sit Sit down again if possible. boot Boot a player from table. bot Let a bot join the game. open Open up a bot seat. chat Send a chat message. info Request infos about a player. rankings Top player rankings for this game.
Constructor & Destructor Documentation
| Request::Request | ( | Type | type | ) |
Creates a request of a specific type.
The request will not be valid until all data fields are properly filled out. It is therefore recommended to not use the request base class, but to use specific classes and their constructors which take care of this.
- Parameters:
-
type Type of the request
Definition at line 25 of file request.cpp.
Member Function Documentation
| Request::Type Request::type | ( | ) | const |
Member Data Documentation
The documentation for this class was generated from the following files:
KDE 4.0 API Reference