KGameError Class Reference

#include <kgameerror.h>

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)
 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)


Detailed Description

Definition at line 29 of file kgameerror.h.


Member Enumeration Documentation

enum KGameError::ErrorCodes
 

Enumerator:
Cookie 
Version 

Definition at line 35 of file kgameerror.h.


Constructor & Destructor Documentation

KGameError::KGameError  )  [inline]
 

Definition at line 32 of file kgameerror.h.

KGameError::~KGameError  )  [inline]
 

Definition at line 33 of file kgameerror.h.


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,
const QByteArray &  message
[static]
 

Definition at line 47 of file kgameerror.cpp.

References errorText().

Here is the call graph for this function:

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.

References Cookie, and Version.

Referenced by errorText(), and KGameNetwork::receiveNetworkTransmission().

QByteArray KGameError::errVersion int  remoteVersion  )  [static]
 

Definition at line 29 of file kgameerror.cpp.

References KGameMessage::version().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Wed Aug 23 18:05:22 2006 for libkdegames by  doxygen 1.4.6