KGameError Class Reference
List of all members.Public Types | |
enum | ErrorCodes { Cookie = 0, Version = 1 } |
Public Member Functions | |
KGameError () | |
~KGameError () | |
Static Public Member Functions | |
static QByteArray | errCookie (int localCookie, int remoteCookie) |
static QByteArray | errVersion (int remoteVersion) |
static QString | errorText (int errorCode, QDataStream &message) |
static QString | errorText (int errorCode, const QByteArray &message) |
Detailed Description
Definition at line 29 of file kgameerror.h.
Member Function Documentation
|
Generate an error message with Erorr Code = ErrCookie.
Definition at line 38 of file kgameerror.cpp. Referenced by KGame::networkTransmission(). |
|
Create an erorr text using a QDataStream (QByteArray) which was created using KGameError. This is the opposite function to all the errXYZ() function (e.g. errVersion). You want to use this to generate the message that shall be displayed to the user.
Definition at line 53 of file kgameerror.cpp. Referenced by errorText(), and KGameNetwork::receiveNetworkTransmission(). |
The documentation for this class was generated from the following files: