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

libkdegames/kggznet

kggzpacket.h

Go to the documentation of this file.
00001 /*
00002     This file is part of the kggznet library.
00003     Copyright (c) 2006 - 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 KGGZPACKET_H
00022 #define KGGZPACKET_H
00023 
00024 #include <QtCore/QObject>
00025 #include <QtCore/QDataStream>
00026 
00027 #include "kggznet_export.h"
00028 
00029 class QAbstractSocket;
00030 
00054 class KGGZNET_EXPORT KGGZPacket : public QObject
00055 {
00056     Q_OBJECT
00057     public:
00064         KGGZPacket();
00065 
00072         ~KGGZPacket();
00073 
00083         QDataStream *inputstream();
00084 
00093         QDataStream *outputstream();
00094 
00101         void flush();
00102 
00103     public slots:
00113         void slotNetwork(int fd);
00114 
00115     signals:
00122         void signalPacket();
00123 
00124     private:
00125         QDataStream *m_inputstream, *m_outputstream;
00126         QAbstractSocket *m_socket;
00127         QByteArray m_input, m_output;
00128         int m_size;
00129 };
00130 
00131 #endif
00132 

libkdegames/kggznet

Skip menu "libkdegames/kggznet"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • 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