<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang="en_US"> <head> <title>libkdegames: kmessageio.h Source File (libkdegames)</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="pics-label" content='(pics-1.1 "http://www.icra.org/ratingsv02.html" comment "ICRAonline DE v2.0" l gen true for "http://www.kde.org" r (nz 1 vz 1 lz 1 oz 1 cb 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.kde.org" r (n 0 s 0 v 0 l 0))' /> <meta name="trademark" content="KDE e.V." /> <meta name="description" content="K Desktop Environment Homepage, KDE.org" /> <meta name="MSSmartTagsPreventParsing" content="true" /> <meta name="robots" content="all" /> <link rel="shortcut icon" href="../../favicon.ico" /> <link rel="stylesheet" media="screen" type="text/css" title="APIDOX" href="doxygen.css" /> </head> <body> <div id="nav_header_top" align="right"> <a href="#content" class="doNotDisplay" accesskey="2">Skip to main content ::</a> <a href="../.."><img id="nav_header_logo" alt="Home" align="left" src="../../kde_gear_64.png" border="0" /></a> <span class="doNotDisplay">::</span> <div id="nav_header_title" align="left">KDE API Reference</div> </div> <div id="nav_header_bottom" align="right"> <span class="doNotDisplay">:: <a href="#navigation" accesskey="5">Skip to Link Menu</a><br/></span> <div id="nav_header_bottom_right" style="text-align: left;"> / <a href="../..">API Reference</a> / <a href=".">libkdegames</a> </div> </div> <table id="main" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td valign="top" class="menuheader" height="0"></td> <td id="contentcolumn" valign="top" rowspan="2" > <div id="content" style="padding-top: 0px;"><div style="width:100%; margin: 0px; padding: 0px;"> <a name="content"></a> <!-- Generated by Doxygen 1.5.5 --> <h1>kmessageio.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span> <a name="l00002"></a>00002 <span class="comment"> This file is part of the KDE games library</span> <a name="l00003"></a>00003 <span class="comment"> Copyright (C) 2001 Burkhard Lehner (Burkhard.Lehner@gmx.de)</span> <a name="l00004"></a>00004 <span class="comment"></span> <a name="l00005"></a>00005 <span class="comment"> This library is free software; you can redistribute it and/or</span> <a name="l00006"></a>00006 <span class="comment"> modify it under the terms of the GNU Library General Public</span> <a name="l00007"></a>00007 <span class="comment"> License version 2 as published by the Free Software Foundation.</span> <a name="l00008"></a>00008 <span class="comment"></span> <a name="l00009"></a>00009 <span class="comment"> This library is distributed in the hope that it will be useful,</span> <a name="l00010"></a>00010 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span> <a name="l00011"></a>00011 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span> <a name="l00012"></a>00012 <span class="comment"> Library General Public License for more details.</span> <a name="l00013"></a>00013 <span class="comment"></span> <a name="l00014"></a>00014 <span class="comment"> You should have received a copy of the GNU Library General Public License</span> <a name="l00015"></a>00015 <span class="comment"> along with this library; see the file COPYING.LIB. If not, write to</span> <a name="l00016"></a>00016 <span class="comment"> the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span> <a name="l00017"></a>00017 <span class="comment"> Boston, MA 02110-1301, USA.</span> <a name="l00018"></a>00018 <span class="comment">*/</span> <a name="l00019"></a>00019 <a name="l00020"></a>00020 <span class="comment">/*</span> <a name="l00021"></a>00021 <span class="comment"> KMessageIO class and subclasses KMessageSocket and KMessageDirect</span> <a name="l00022"></a>00022 <span class="comment">*/</span> <a name="l00023"></a>00023 <a name="l00024"></a>00024 <span class="preprocessor">#ifndef _KMESSAGEIO_H_</span> <a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define _KMESSAGEIO_H_</span> <a name="l00026"></a>00026 <span class="preprocessor"></span> <a name="l00027"></a>00027 <span class="preprocessor">#include <qcstring.h></span> <a name="l00028"></a>00028 <span class="preprocessor">#include <qhostaddress.h></span> <a name="l00029"></a>00029 <span class="preprocessor">#include <qobject.h></span> <a name="l00030"></a>00030 <span class="preprocessor">#include <qstring.h></span> <a name="l00031"></a>00031 <span class="preprocessor">#include <qptrqueue.h></span> <a name="l00032"></a>00032 <span class="preprocessor">#include <qfile.h></span> <a name="l00033"></a>00033 <span class="preprocessor">#include <kdebug.h></span> <a name="l00034"></a>00034 <a name="l00035"></a>00035 <span class="keyword">class </span>QSocket; <a name="l00036"></a>00036 <span class="keyword">class </span>KProcess; <a name="l00037"></a>00037 <span class="comment">//class QFile;</span> <a name="l00038"></a>00038 <a name="l00039"></a>00039 <a name="l00056"></a><a class="code" href="classKMessageIO.html">00056</a> <span class="keyword">class </span><a class="code" href="classKMessageIO.html" title="This abstract base class represents one end of a message connections between two...">KMessageIO</a> : <span class="keyword">public</span> QObject <a name="l00057"></a>00057 { <a name="l00058"></a>00058 Q_OBJECT <a name="l00059"></a>00059 <a name="l00060"></a>00060 <span class="keyword">public</span>: <a name="l00064"></a>00064 <a class="code" href="classKMessageIO.html#f441515cc8006af2190fd8220c260cb8" title="The usual QObject constructor, does nothing else.">KMessageIO</a> (QObject *parent = 0, <span class="keyword">const</span> <span class="keywordtype">char</span> *name = 0); <a name="l00065"></a>00065 <a name="l00069"></a>00069 <a class="code" href="classKMessageIO.html#bc96e3cd30d933c9febabceee01b7e04" title="The usual destructor, does nothing special.">~KMessageIO</a> (); <a name="l00070"></a>00070 <a name="l00074"></a><a class="code" href="classKMessageIO.html#389aadce959970213823a2728d00c255">00074</a> <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classKMessageIO.html#389aadce959970213823a2728d00c255" title="The runtime idendifcation.">rtti</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> 0;} <a name="l00075"></a>00075 <a name="l00079"></a>00079 <span class="comment">//virtual bool isNetwork () const = 0;</span> <a name="l00080"></a><a class="code" href="classKMessageIO.html#1867d5e42cfce261346c38892008c9cf">00080</a> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classKMessageIO.html#1867d5e42cfce261346c38892008c9cf">isNetwork</a> ()<span class="keyword"> const</span> <a name="l00081"></a>00081 <span class="keyword"> </span>{ <a name="l00082"></a>00082 kdError(11001) << <span class="stringliteral">"Calling PURE virtual isNetwork...BAD"</span> << endl; <a name="l00083"></a>00083 <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00084"></a>00084 } <a name="l00085"></a>00085 <a name="l00093"></a>00093 <span class="comment">//virtual bool isConnected () const = 0;</span> <a name="l00094"></a><a class="code" href="classKMessageIO.html#3f93a66d00d8ca535ee5ab12475e30a2">00094</a> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classKMessageIO.html#3f93a66d00d8ca535ee5ab12475e30a2" title="This method returns the status of the object, whether it is already (or still) connected...">isConnected</a> ()<span class="keyword"> const</span> <a name="l00095"></a>00095 <span class="keyword"> </span>{ <a name="l00096"></a>00096 kdError(11001) << <span class="stringliteral">"Calling PURE virtual isConencted...BAD"</span> << endl; <a name="l00097"></a>00097 <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00098"></a>00098 } <a name="l00099"></a>00099 <a name="l00108"></a>00108 <span class="keywordtype">void</span> <a class="code" href="classKMessageIO.html#fe28b6039098d66a8aea760990a39049" title="Sets the ID number of this object.">setId</a> (Q_UINT32 <span class="keywordtype">id</span>); <a name="l00109"></a>00109 <a name="l00113"></a>00113 Q_UINT32 <a class="code" href="classKMessageIO.html#8ddc66bc4a2178ba1bcd447056c734a3" title="Queries the ID of this object.">id</a> (); <a name="l00114"></a>00114 <a name="l00119"></a><a class="code" href="classKMessageIO.html#7be26b8183b11c4fdc7c8dd2e2ea8696">00119</a> <span class="keyword">virtual</span> Q_UINT16 <a class="code" href="classKMessageIO.html#7be26b8183b11c4fdc7c8dd2e2ea8696">peerPort</a> ()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> 0; } <a name="l00120"></a>00120 <a name="l00125"></a><a class="code" href="classKMessageIO.html#d5ed4cb742bdd80e4646f7c005e87791">00125</a> <span class="keyword">virtual</span> QString <a class="code" href="classKMessageIO.html#d5ed4cb742bdd80e4646f7c005e87791">peerName</a> ()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> QString::fromLatin1(<span class="stringliteral">"localhost"</span>); } <a name="l00126"></a>00126 <a name="l00127"></a>00127 <a name="l00128"></a>00128 signals: <a name="l00134"></a>00134 <span class="keywordtype">void</span> <a class="code" href="classKMessageIO.html#c2925ec4f163a91f15b037dcd9dc93a2" title="This signal is emitted when /e send() on the connected KMessageIO object is called...">received</a> (<span class="keyword">const</span> QByteArray &msg); <a name="l00135"></a>00135 <a name="l00144"></a>00144 <span class="keywordtype">void</span> <a class="code" href="classKMessageIO.html#84d97fb77fbd43ea40baa2eec1f45ec5" title="This signal is emitted when the connection is closed.">connectionBroken</a> (); <a name="l00145"></a>00145 <a name="l00146"></a>00146 <span class="keyword">public</span> slots: <a name="l00147"></a>00147 <a name="l00157"></a>00157 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKMessageIO.html#595c09956ca3135e868fa9d47fe22958" title="This slot sends the data block in /e msg to the connected object, that will emit...">send</a> (<span class="keyword">const</span> QByteArray &msg) = 0; <a name="l00158"></a>00158 <a name="l00159"></a>00159 <span class="keyword">protected</span>: <a name="l00160"></a>00160 Q_UINT32 m_id; <a name="l00161"></a>00161 }; <a name="l00162"></a>00162 <a name="l00163"></a>00163 <a name="l00169"></a><a class="code" href="classKMessageSocket.html">00169</a> <span class="keyword">class </span><a class="code" href="classKMessageSocket.html" title="This class implements the message communication using a TCP/IP socket.">KMessageSocket</a> : <span class="keyword">public</span> <a class="code" href="classKMessageIO.html" title="This abstract base class represents one end of a message connections between two...">KMessageIO</a> <a name="l00170"></a>00170 { <a name="l00171"></a>00171 Q_OBJECT <a name="l00172"></a>00172 <a name="l00173"></a>00173 <span class="keyword">public</span>: <a name="l00184"></a>00184 <a class="code" href="classKMessageSocket.html#d8064d3e0d79fef411f82a2f04cbb6d4" title="Connects to a server socket on /e host with /e port.">KMessageSocket</a> (QString host, Q_UINT16 port, QObject *parent = 0, <a name="l00185"></a>00185 <span class="keyword">const</span> <span class="keywordtype">char</span> *name = 0); <a name="l00186"></a>00186 <a name="l00195"></a>00195 <a class="code" href="classKMessageSocket.html#d8064d3e0d79fef411f82a2f04cbb6d4" title="Connects to a server socket on /e host with /e port.">KMessageSocket</a> (QHostAddress host, Q_UINT16 port, QObject *parent = 0, <a name="l00196"></a>00196 <span class="keyword">const</span> <span class="keywordtype">char</span> *name = 0); <a name="l00197"></a>00197 <a name="l00209"></a>00209 <a class="code" href="classKMessageSocket.html#d8064d3e0d79fef411f82a2f04cbb6d4" title="Connects to a server socket on /e host with /e port.">KMessageSocket</a> (QSocket *socket, QObject *parent = 0, <span class="keyword">const</span> <span class="keywordtype">char</span> *name = 0); <a name="l00210"></a>00210 <a name="l00222"></a>00222 <a class="code" href="classKMessageSocket.html#d8064d3e0d79fef411f82a2f04cbb6d4" title="Connects to a server socket on /e host with /e port.">KMessageSocket</a> (<span class="keywordtype">int</span> socketFD, QObject *parent = 0, <span class="keyword">const</span> <span class="keywordtype">char</span> *name = 0); <a name="l00223"></a>00223 <a name="l00227"></a>00227 <a class="code" href="classKMessageSocket.html#9b17b632ca342a233206923d1bbd4464" title="Destructor, closes the socket.">~KMessageSocket</a> (); <a name="l00228"></a>00228 <a name="l00232"></a><a class="code" href="classKMessageSocket.html#33b6052346d142073c7955744e18ba66">00232</a> <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classKMessageSocket.html#33b6052346d142073c7955744e18ba66" title="The runtime idendifcation.">rtti</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> 1;} <a name="l00233"></a>00233 <a name="l00238"></a>00238 <span class="keyword">virtual</span> Q_UINT16 <a class="code" href="classKMessageSocket.html#4973e0515fa5c8b5e89672c1a46dde2f">peerPort</a> () <span class="keyword">const</span>; <a name="l00239"></a>00239 <a name="l00244"></a>00244 <span class="keyword">virtual</span> QString <a class="code" href="classKMessageSocket.html#37509479743000c80e9c8cf062e3a496">peerName</a> () <span class="keyword">const</span>; <a name="l00245"></a>00245 <a name="l00249"></a><a class="code" href="classKMessageSocket.html#09405d1f9800d967d5ab6de3b54f9d31">00249</a> <span class="keywordtype">bool</span> <a class="code" href="classKMessageSocket.html#09405d1f9800d967d5ab6de3b54f9d31">isNetwork</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">true</span>; } <a name="l00250"></a>00250 <a name="l00254"></a>00254 <span class="keywordtype">bool</span> <a class="code" href="classKMessageSocket.html#3bb9822c6a03b372a82a24610e70d84a" title="Returns true if the socket is in state /e connected.">isConnected</a> () <span class="keyword">const</span>; <a name="l00255"></a>00255 <a name="l00262"></a>00262 <span class="keywordtype">void</span> <a class="code" href="classKMessageSocket.html#325a64653cd9a62b34fb10e4eb72a4ff" title="Overwritten slot method from KMessageIO.">send</a> (<span class="keyword">const</span> QByteArray &msg); <a name="l00263"></a>00263 <a name="l00264"></a>00264 <span class="keyword">protected</span> slots: <a name="l00265"></a>00265 <span class="keyword">virtual</span> <span class="keywordtype">void</span> processNewData (); <a name="l00266"></a>00266 <a name="l00267"></a>00267 <span class="keyword">protected</span>: <a name="l00268"></a>00268 <span class="keywordtype">void</span> initSocket (); <a name="l00269"></a>00269 QSocket *mSocket; <a name="l00270"></a>00270 <span class="keywordtype">bool</span> mAwaitingHeader; <a name="l00271"></a>00271 Q_UINT32 mNextBlockLength; <a name="l00272"></a>00272 <a name="l00273"></a>00273 <span class="keywordtype">bool</span> isRecursive; <span class="comment">// workaround for "bug" in QSocket, Qt 2.2.3 or older</span> <a name="l00274"></a>00274 }; <a name="l00275"></a>00275 <a name="l00276"></a>00276 <a name="l00295"></a><a class="code" href="classKMessageDirect.html">00295</a> <span class="keyword">class </span><a class="code" href="classKMessageDirect.html" title="This class implements the message communication using function calls directly.">KMessageDirect</a> : <span class="keyword">public</span> <a class="code" href="classKMessageIO.html" title="This abstract base class represents one end of a message connections between two...">KMessageIO</a> <a name="l00296"></a>00296 { <a name="l00297"></a>00297 Q_OBJECT <a name="l00298"></a>00298 <a name="l00299"></a>00299 <span class="keyword">public</span>: <a name="l00307"></a>00307 <a class="code" href="classKMessageDirect.html#26b8990db45f3084e9267623f1aa25c7" title="Creates an object and connects it to the object given in the first parameter.">KMessageDirect</a> (<a class="code" href="classKMessageDirect.html" title="This class implements the message communication using function calls directly.">KMessageDirect</a> *partner = 0, QObject *parent = 0, <span class="keyword">const</span> <span class="keywordtype">char</span> <a name="l00308"></a>00308 *name = 0); <a name="l00309"></a>00309 <a name="l00313"></a>00313 <a class="code" href="classKMessageDirect.html#2a7d37f0e955dd40ef35dcb2e13cbff4" title="Destructor, closes the connection.">~KMessageDirect</a> (); <a name="l00314"></a>00314 <a name="l00318"></a><a class="code" href="classKMessageDirect.html#e8517eccf407859f7de67e4f77baf7a9">00318</a> <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classKMessageDirect.html#e8517eccf407859f7de67e4f77baf7a9" title="The runtime idendifcation.">rtti</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> 2;} <a name="l00319"></a>00319 <a name="l00320"></a>00320 <a name="l00324"></a><a class="code" href="classKMessageDirect.html#fd06fa78bd38c4cb46d05b5138678db2">00324</a> <span class="keywordtype">bool</span> <a class="code" href="classKMessageDirect.html#fd06fa78bd38c4cb46d05b5138678db2">isNetwork</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">false</span>; } <a name="l00325"></a>00325 <a name="l00334"></a>00334 <span class="keywordtype">bool</span> <a class="code" href="classKMessageDirect.html#e1a47b43f8cda3f8363491a795c6197b" title="Returns true, if the object is connected to another instance.">isConnected</a> () <span class="keyword">const</span>; <a name="l00335"></a>00335 <a name="l00342"></a>00342 <span class="keywordtype">void</span> <a class="code" href="classKMessageDirect.html#ac1022521f741c07ec93db28c5cdd09b" title="Overwritten slot method from KMessageIO.">send</a> (<span class="keyword">const</span> QByteArray &msg); <a name="l00343"></a>00343 <a name="l00344"></a>00344 <span class="keyword">protected</span>: <a name="l00345"></a>00345 <a class="code" href="classKMessageDirect.html" title="This class implements the message communication using function calls directly.">KMessageDirect</a> *mPartner; <a name="l00346"></a>00346 }; <a name="l00347"></a>00347 <a name="l00348"></a>00348 <span class="keyword">class </span>KMessageProcess : <span class="keyword">public</span> <a class="code" href="classKMessageIO.html" title="This abstract base class represents one end of a message connections between two...">KMessageIO</a> <a name="l00349"></a>00349 { <a name="l00350"></a>00350 Q_OBJECT <a name="l00351"></a>00351 <a name="l00352"></a>00352 <span class="keyword">public</span>: <a name="l00353"></a>00353 KMessageProcess(QObject *parent, QString file); <a name="l00354"></a>00354 ~KMessageProcess(); <a name="l00355"></a>00355 <span class="keywordtype">bool</span> <a class="code" href="classKMessageIO.html#3f93a66d00d8ca535ee5ab12475e30a2" title="This method returns the status of the object, whether it is already (or still) connected...">isConnected</a>() <span class="keyword">const</span>; <a name="l00356"></a>00356 <span class="keywordtype">void</span> <a class="code" href="classKMessageIO.html#595c09956ca3135e868fa9d47fe22958" title="This slot sends the data block in /e msg to the connected object, that will emit...">send</a> (<span class="keyword">const</span> QByteArray &msg); <a name="l00357"></a>00357 <span class="keywordtype">void</span> writeToProcess(); <a name="l00358"></a>00358 <a name="l00362"></a>00362 <span class="keywordtype">bool</span> <a class="code" href="classKMessageIO.html#1867d5e42cfce261346c38892008c9cf">isNetwork</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">false</span>; } <a name="l00363"></a>00363 <a name="l00367"></a>00367 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classKMessageIO.html#389aadce959970213823a2728d00c255" title="The runtime idendifcation.">rtti</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> 3;} <a name="l00368"></a>00368 <a name="l00369"></a>00369 <a name="l00370"></a>00370 <a name="l00371"></a>00371 <span class="keyword">public</span> slots: <a name="l00372"></a>00372 <span class="keywordtype">void</span> slotReceivedStdout(KProcess *proc, <span class="keywordtype">char</span> *buffer, <span class="keywordtype">int</span> buflen); <a name="l00373"></a>00373 <span class="keywordtype">void</span> slotReceivedStderr(KProcess *proc, <span class="keywordtype">char</span> *buffer, <span class="keywordtype">int</span> buflen); <a name="l00374"></a>00374 <span class="keywordtype">void</span> slotProcessExited(KProcess *p); <a name="l00375"></a>00375 <span class="keywordtype">void</span> slotWroteStdin(KProcess *p); <a name="l00376"></a>00376 <a name="l00377"></a>00377 <span class="keyword">private</span>: <a name="l00378"></a>00378 QString mProcessName; <a name="l00379"></a>00379 KProcess *mProcess; <a name="l00380"></a>00380 QPtrQueue <QByteArray> mQueue; <a name="l00381"></a>00381 QByteArray *mSendBuffer; <a name="l00382"></a>00382 QByteArray mReceiveBuffer; <a name="l00383"></a>00383 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> mReceiveCount; <a name="l00384"></a>00384 }; <a name="l00385"></a>00385 <a name="l00386"></a>00386 <span class="keyword">class </span>KMessageFilePipe : <span class="keyword">public</span> <a class="code" href="classKMessageIO.html" title="This abstract base class represents one end of a message connections between two...">KMessageIO</a> <a name="l00387"></a>00387 { <a name="l00388"></a>00388 Q_OBJECT <a name="l00389"></a>00389 <a name="l00390"></a>00390 <span class="keyword">public</span>: <a name="l00391"></a>00391 KMessageFilePipe(QObject *parent,QFile *readFile,QFile *writeFile); <a name="l00392"></a>00392 ~KMessageFilePipe(); <a name="l00393"></a>00393 <span class="keywordtype">bool</span> <a class="code" href="classKMessageIO.html#3f93a66d00d8ca535ee5ab12475e30a2" title="This method returns the status of the object, whether it is already (or still) connected...">isConnected</a>() <span class="keyword">const</span>; <a name="l00394"></a>00394 <span class="keywordtype">void</span> <a class="code" href="classKMessageIO.html#595c09956ca3135e868fa9d47fe22958" title="This slot sends the data block in /e msg to the connected object, that will emit...">send</a> (<span class="keyword">const</span> QByteArray &msg); <a name="l00395"></a>00395 <span class="keywordtype">void</span> exec(); <a name="l00396"></a>00396 <a name="l00400"></a>00400 <span class="keywordtype">bool</span> <a class="code" href="classKMessageIO.html#1867d5e42cfce261346c38892008c9cf">isNetwork</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">false</span>; } <a name="l00401"></a>00401 <a name="l00405"></a>00405 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classKMessageIO.html#389aadce959970213823a2728d00c255" title="The runtime idendifcation.">rtti</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> 4;} <a name="l00406"></a>00406 <a name="l00407"></a>00407 <a name="l00408"></a>00408 <a name="l00409"></a>00409 <span class="keyword">private</span>: <a name="l00410"></a>00410 QFile *mReadFile; <a name="l00411"></a>00411 QFile *mWriteFile; <a name="l00412"></a>00412 QByteArray mReceiveBuffer; <a name="l00413"></a>00413 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> mReceiveCount; <a name="l00414"></a>00414 }; <a name="l00415"></a>00415 <a name="l00416"></a>00416 <span class="preprocessor">#endif</span> </pre></div></div> </div></div> </td> </tr> <tr> <td valign="top" id="leftmenu" width="25%"> <a name="navigation"></a> <div class="menu_box"><h2>libkdegames</h2> <div class="nav_list"> <ul><li><a href="index.html">Main Page</a></li><li><a href="hierarchy.html">Class Hierarchy</a></li><li><a href="classes.html">Alphabetical List</a></li><li><a href="annotated.html">Class List</a></li><li><a href="files.html">File List</a></li><li><a href="functions.html">Class Members</a></li><li><a href="pages.html">Related Pages</a></li></ul> <!-- <h2>Class Picker</h2> <div style="text-align: center;"> <form name="guideform"> <select name="guidelinks" style="width:100%;" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value"> <option value="annotated.html">-- Choose --</option> <option value="classKCanvasRootPixmap.html">kcanvasrootpixmap</option>, <option value="classKCardDialog.html">kcarddialog</option>, <option value="classKChat.html">kchat</option>, <option value="classKChatBase.html">kchatbase</option>, <option value="classKChatBaseText.html">kchatbasetext</option>, <option value="classKExtHighscore_1_1Item.html">kexthighscore::item</option>, <option value="classKExtHighscore_1_1ItemArray.html">kexthighscore::itemarray</option>, <option value="classKExtHighscore_1_1Manager.html">kexthighscore::manager</option>, <option value="classKExtHighscore_1_1MultiplayerScores.html">kexthighscore::multiplayerscores</option>, <option value="classKExtHighscore_1_1Score.html">kexthighscore::score</option>, <option value="classKGame.html">kgame</option>, <option value="classKGameChat.html">kgamechat</option>, <option value="classKGameComputerIO.html">kgamecomputerio</option>, <option value="classKGameConnectDialog.html">kgameconnectdialog</option>, <option value="classKGameDialog.html">kgamedialog</option>, <option value="classKGameDialogChatConfig.html">kgamedialogchatconfig</option>, <option value="classKGameDialogConfig.html">kgamedialogconfig</option>, <option value="classKGameErrorDialog.html">kgameerrordialog</option>, <option value="classKGameErrorMessageDialog.html">kgameerrormessagedialog</option>, <option value="classKGameIO.html">kgameio</option>, <option value="classKGameKeyIO.html">kgamekeyio</option>, <option value="classKGameLCD.html">kgamelcd</option>, <option value="classKGameLCDClock.html">kgamelcdclock</option>, <option value="classKGameLCDList.html">kgamelcdlist</option>, <option value="classKGameMisc.html">kgamemisc</option>, <option value="classKGameMouseIO.html">kgamemouseio</option>, <option value="classKGameNetwork.html">kgamenetwork</option>, <option value="classKGameProcess.html">kgameprocess</option>, <option value="classKGameProcessIO.html">kgameprocessio</option>, <option value="classKGameProgress.html">kgameprogress</option>, <option value="classKGameProperty.html">kgameproperty</option>, <option value="classKGamePropertyBase.html">kgamepropertybase</option>, <option value="classKGamePropertyHandler.html">kgamepropertyhandler</option>, <option value="classKGameSequence.html">kgamesequence</option>, <option value="classKGrid2D_1_1Generic.html">kgrid2d::generic</option>, <option value="classKGrid2D_1_1Hexagonal.html">kgrid2d::hexagonal</option>, <option value="classKGrid2D_1_1HexagonalBase.html">kgrid2d::hexagonalbase</option>, <option value="classKGrid2D_1_1Square.html">kgrid2d::square</option>, <option value="classKGrid2D_1_1SquareBase.html">kgrid2d::squarebase</option>, <option value="classKHighscore.html">khighscore</option>, <option value="classKMessageClient.html">kmessageclient</option>, <option value="classKMessageDirect.html">kmessagedirect</option>, <option value="classKMessageIO.html">kmessageio</option>, <option value="classKMessageServer.html">kmessageserver</option>, <option value="classKMessageServerSocket.html">kmessageserversocket</option>, <option value="classKMessageSocket.html">kmessagesocket</option>, <option value="classKPlayer.html">kplayer</option>, <option value="classKScoreDialog.html">kscoredialog</option>, <option value="classKStdGameAction.html">kstdgameaction</option>, </select> </form> </div> --> </div></div> <div class="menu_box"><h2>API Dox</h2> <div class="nav_list"> <ul> <li><a href="../../libkdegames/html/index.html">libkdegames</a></li> </ul></div></div> </td> </tr> </table> <span class="doNotDisplay"> <a href="http://www.kde.org/" accesskey="8">KDE Home</a> | <a href="http://accessibility.kde.org/" accesskey="9">KDE Accessibility Home</a> | <a href="http://www.kde.org/media/accesskeys.php" accesskey="0">Description of Access Keys</a> </span> <div style="height: 8px"></div> <div id="footer"> <div id="footer_left"> Maintained by <a href="mailto:groot@kde.org">Adriaan de Groot</a> and <a href="mailto:winter@kde.org">Allen Winter</a>. <br/> KDE and K Desktop Environment are trademarks of <a href="http://www.kde.org/areas/kde-ev/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> | <a href="http://www.kde.org/contact/impressum.php">Legal</a> </div> <div id="footer_right"><img src="/media/images/footer_right.png" style="margin: 0px" alt="" /></div> </div> <!-- WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL BE BLOCKED INSTANTLY AND PERMANENTLY! <a href="mailto:aaaatrap-425acc3b5374943f@kde.org">Block me</a> WARNING END --> </body> </html>