• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • @topname@
  • Sitemap
  • Contact Us
 

libkdegames

kgameerror.h

00001 /*
00002     This file is part of the KDE games library
00003     Copyright (C) 2001 Andreas Beckermann (b_mann@gmx.de)
00004     Copyright (C) 2001 Martin Heni (martin@heni-online.de)
00005 
00006     This library is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU Library General Public
00008     License version 2 as published by the Free Software Foundation.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to
00017     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018     Boston, MA 02110-1301, USA.
00019 */
00020 /*
00021     $Id: kgameerror.h 1157643 2010-07-31 19:42:31Z tpearson $
00022 */
00023 #ifndef __KGAMEERROR_H_
00024 #define __KGAMEERROR_H_
00025 
00026 #include <tqstring.h>
00027 
00028 
00029 class KGameError
00030 {
00031 public:
00032     KGameError() { }
00033     ~KGameError() { }
00034 
00035     enum ErrorCodes {
00036         Cookie = 0, // Cookie mismatch
00037         Version = 1 // Version mismatch
00038     };
00039 
00043     static TQByteArray errCookie(int localCookie, int remoteCookie);
00044     static TQByteArray errVersion(int remoteVersion);
00045 
00054     static TQString errorText(int errorCode, TQDataStream& message);
00055     static TQString errorText(int errorCode, const TQByteArray& message);
00056 
00057 };
00058 
00059 #endif

libkdegames

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

@topname@

Skip menu "@topname@"
  • libkdegames
Generated for @topname@ by doxygen 1.5.6
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal