libkdegames Library API Documentation

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

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

Generate an error message with Erorr Code = ErrCookie.

Definition at line 38 of file kgameerror.cpp.

Referenced by KGame::networkTransmission().

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 QString::arg().

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


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for libkdegames Library Version 3.4.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sun Oct 9 09:38:19 2005 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003