• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegames API Reference
  • KDE Home
  • Contact Us
 

libkdegames/libkdegamesprivate/kgame

Public Types | Public Member Functions | Static Public Member Functions | List of all members
KGameError Class Reference

#include <KGame/KGameError>

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 QString errorText (int errorCode, QDataStream &message)
 
static QString errorText (int errorCode, const QByteArray &message)
 
static QByteArray errVersion (int remoteVersion)
 

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 35 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 50 of file kgameerror.cpp.

QString KGameError::errorText ( int  errorCode,
const QByteArray &  message 
)
static

Definition at line 44 of file kgameerror.cpp.

QByteArray KGameError::errVersion ( int  remoteVersion)
static

Definition at line 26 of file kgameerror.cpp.


The documentation for this class was generated from the following files:
  • kgameerror.h
  • kgameerror.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkdegames/libkdegamesprivate/kgame

Skip menu "libkdegames/libkdegamesprivate/kgame"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegames API Reference

Skip menu "kdegames API Reference"
  • granatier
  • kapman
  • kblackbox
  • kgoldrunner
  • kigo
  • kmahjongg
  • KShisen
  • ksquares
  • libkdegames
  •   highscore
  •   libkdegamesprivate
  •     kgame
  • libkmahjongg
  • palapeli
  •   libpala

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal