#include <kgameerror.h>
Public Types | |
| enum | ErrorCodes { Cookie = 0, Version = 1 } |
Public Member Functions | |
| KGameError () | |
| ~KGameError () | |
Static Public Member Functions | |
| static QByteArray | errCookie (int localCookie, int remoteCookie) |
| Generate an error message with Erorr Code = ErrCookie. | |
| static QByteArray | errVersion (int remoteVersion) |
| static QString | errorText (int errorCode, QDataStream &message) |
| Create an erorr text using a QDataStream (QByteArray) which was created using KGameError. | |
| static QString | errorText (int errorCode, const QByteArray &message) |
Definition at line 29 of file kgameerror.h.
|
|
Definition at line 35 of file kgameerror.h. |
|
|
Definition at line 32 of file kgameerror.h. |
|
|
Definition at line 33 of file kgameerror.h. |
|
||||||||||||
|
Generate an error message with Erorr Code = ErrCookie.
Definition at line 38 of file kgameerror.cpp. |
|
||||||||||||
|
Definition at line 47 of file kgameerror.cpp. References errorText(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
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. References Cookie, and Version. Referenced by errorText(), and KGameNetwork::receiveNetworkTransmission(). |
|
|
Definition at line 29 of file kgameerror.cpp. References KGameMessage::version(). Here is the call graph for this function: ![]() |
1.4.6