• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libkdegames/kggzmod

request.h

Go to the documentation of this file.
00001 /*
00002     This file is part of the kggzmod library.
00003     Copyright (c) 2005 - 2007 Josef Spillner <josef@ggzgamingzone.org>
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License as published by the Free Software Foundation; either
00008     version 2 of the License, or (at your option) any later version.
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 #ifndef KGGZMOD_REQUEST_H
00022 #define KGGZMOD_REQUEST_H
00023 
00024 #include <QtCore/QMap>
00025 #include <QtCore/QString>
00026 
00027 #include "kggzmod_export.h"
00028 
00029 namespace KGGZMod
00030 {
00031 
00048 class KGGZMOD_EXPORT Request
00049 {
00050     public:
00056         enum Type
00057         {
00058             state,  
00059             stand,  
00060             sit,    
00061             boot,   
00062             bot,    
00063             open,   
00064             chat,   
00065             info,   
00066             rankings 
00067         };
00068 
00081         Request(Type type);
00082 
00088         Type type() const;
00089 
00096         QMap<QString, QString> data;
00097 
00098     private:
00099         Type m_type;
00100 };
00101 
00112 class KGGZMOD_EXPORT StateRequest : public Request
00113 {
00114     public:
00115         StateRequest(/*Module::State*/int state);
00116 };
00117 
00128 class KGGZMOD_EXPORT StandRequest : public Request
00129 {
00130     public:
00131         StandRequest();
00132 };
00133 
00144 class KGGZMOD_EXPORT SitRequest : public Request
00145 {
00146     public:
00147         SitRequest(int seat);
00148 };
00149 
00160 class KGGZMOD_EXPORT BootRequest : public Request
00161 {
00162     public:
00163         BootRequest(const QString &playername);
00164 };
00165 
00176 class KGGZMOD_EXPORT BotRequest : public Request
00177 {
00178     public:
00179         BotRequest(int seat);
00180 };
00181 
00192 class KGGZMOD_EXPORT OpenRequest : public Request
00193 {
00194     public:
00195         OpenRequest(int seat);
00196 };
00197 
00209 class ChatRequest : public Request
00210 {
00211     public:
00212         ChatRequest(const QString &message);
00213 };
00214 
00227 class KGGZMOD_EXPORT InfoRequest : public Request
00228 {
00229     public:
00230         InfoRequest(int seat);
00231         InfoRequest();
00232 };
00233 
00248 class KGGZMOD_EXPORT RankingsRequest : public Request
00249 {
00250     public:
00251         RankingsRequest();
00252 };
00253 
00254 }
00255 
00256 #endif
00257 

libkdegames/kggzmod

Skip menu "libkdegames/kggzmod"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • kblackbox
  • kgoldrunner
  • kmahjongg
  • ksquares
  • libkdegames
  •   highscore
  •   kgame
  •   kggzgames
  •   kggzmod
  •   kggznet
  • libkmahjongg
Generated for API Reference by doxygen 1.5.4
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