KGameError Class Reference

List of all members.

Detailed Description

Definition at line 29 of file 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)
static QByteArray errVersion (int remoteVersion)
static QString errorText (int errorCode, QDataStream &message)
static QString errorText (int errorCode, const QByteArray &message)

Member Function Documentation

QByteArray KGameError::errCookie ( int  localCookie,
int  remoteCookie 
) [static]

Generate an error message with Erorr Code = ErrCookie.

Definition at line 38 of file kgameerror.cpp.

QString KGameError::errorText ( int  errorCode,
QDataStream &  message 
) [static]

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.

Returns:
an error message

Definition at line 53 of file kgameerror.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys