Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > ea24284f03fd4a8a4b64047514d93f64 > files > 133

lib64kdegames1-devel-3.5.9-2mdv2008.1.x86_64.rpm

<?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: KGameErrorDialog Class Reference (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 -->
<div class="contents">
<h1>KGameErrorDialog Class Reference</h1><!-- doxytag: class="KGameErrorDialog" --><!-- doxytag: inherits="QObject" --><code>#include &lt;<a class="el" href="kgameerrordialog_8h-source.html">kgameerrordialog.h</a>&gt;</code>
<p>
Inherits QObject.
<p>

<p>
<a href="classKGameErrorDialog-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
Use error(), warning() and information() to display the information about a network game. 
<p>
Maybe a better solution is to use KMessageBoxes You can connect to the public slots, too - they will call the static functions, so that you can always have a <a class="el" href="classKGameErrorDialog.html" title="Use error(), warning() and information() to display the information about a network...">KGameErrorDialog</a> object lying around without losing much memory (a <a class="el" href="classKGameErrorMessageDialog.html" title="The real class for error messages.">KGameErrorMessageDialog</a> Object will be created) Error handling for <a class="el" href="classKGame.html" title="The main KDE game object.">KGame</a> <dl class="author" compact><dt><b>Author:</b></dt><dd>Andreas Beckermann &lt;<a href="mailto:b_mann@gmx.de">b_mann@gmx.de</a>&gt; </dd></dl>

<p>Definition at line <a class="el" href="kgameerrordialog_8h-source.html#l00039">39</a> of file <a class="el" href="kgameerrordialog_8h-source.html">kgameerrordialog.h</a>.</p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Slots</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4671e81000600b66e954f75b2bdf623f"></a><!-- doxytag: member="KGameErrorDialog::slotError" ref="4671e81000600b66e954f75b2bdf623f" args="(int error, QString text)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>slotError</b> (int error, QString text)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKGameErrorDialog.html#22ec5032a705e619d49d7dd47af371da">slotServerConnectionLost</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKGameErrorDialog.html#63482790ebe73740ebcc13a417239ff9">slotClientConnectionLost</a> (Q_UINT32 clientID, bool broken)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKGameErrorDialog.html#9e41315d54975f495f0adb63be78cf48">slotUnsetKGame</a> ()</td></tr>

<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d60a71d729df736e81a643a38e82e304"></a><!-- doxytag: member="KGameErrorDialog::KGameErrorDialog" ref="d60a71d729df736e81a643a38e82e304" args="(QWidget *parent)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>KGameErrorDialog</b> (QWidget *parent)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKGameErrorDialog.html#da763c61f66aca7e4596eb4792e3ef68">setKGame</a> (const <a class="el" href="classKGame.html">KGame</a> *g)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKGameErrorDialog.html#435b4fec5d2d797b192b7fc809b4f395">connectionError</a> (QString s=QString::null)</td></tr>

<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1b82f5f36dda3ffed3d69cb28ba24b30"></a><!-- doxytag: member="KGameErrorDialog::error" ref="1b82f5f36dda3ffed3d69cb28ba24b30" args="(const QString &amp;errorText, QWidget *parent=0)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>error</b> (const QString &amp;errorText, QWidget *parent=0)</td></tr>

</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="da763c61f66aca7e4596eb4792e3ef68"></a><!-- doxytag: member="KGameErrorDialog::setKGame" ref="da763c61f66aca7e4596eb4792e3ef68" args="(const KGame *g)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KGameErrorDialog::setKGame           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKGame.html">KGame</a> *&nbsp;</td>
          <td class="paramname"> <em>g</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Automatically connects the <a class="el" href="classKGame.html" title="The main KDE game object.">KGame</a> object to all error dependant slots. 
<p>
Create a <a class="el" href="classKGameErrorDialog.html" title="Use error(), warning() and information() to display the information about a network...">KGameErrorDialog</a> object, call this function and forget everything. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>g</em>&nbsp;</td><td>The <a class="el" href="classKGame.html" title="The main KDE game object.">KGame</a> which will emit the erorrs (or not ;-) ) </td></tr>
  </table>
</dl>

<p>Definition at line <a class="el" href="kgameerrordialog_8cpp-source.html#l00050">50</a> of file <a class="el" href="kgameerrordialog_8cpp-source.html">kgameerrordialog.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="435b4fec5d2d797b192b7fc809b4f395"></a><!-- doxytag: member="KGameErrorDialog::connectionError" ref="435b4fec5d2d797b192b7fc809b4f395" args="(QString s=QString::null)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KGameErrorDialog::connectionError           </td>
          <td>(</td>
          <td class="paramtype">QString&nbsp;</td>
          <td class="paramname"> <em>s</em> = <code>QString::null</code>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<a class="el" href="classKGame.html" title="The main KDE game object.">KGame</a> couldn't establish a connection. 
<p>
Use this if KGame::initConnection returns false <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>s</em>&nbsp;</td><td>A string that describes the error further (like port is already in use). Will be ignored if QString::null </td></tr>
  </table>
</dl>

<p>Definition at line <a class="el" href="kgameerrordialog_8cpp-source.html#l00103">103</a> of file <a class="el" href="kgameerrordialog_8cpp-source.html">kgameerrordialog.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="22ec5032a705e619d49d7dd47af371da"></a><!-- doxytag: member="KGameErrorDialog::slotServerConnectionLost" ref="22ec5032a705e619d49d7dd47af371da" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KGameErrorDialog::slotServerConnectionLost           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
The connection to the <a class="el" href="classKMessageServer.html">KMessageServer</a> has been lost. 
<p>
See <a class="el" href="classKGameNetwork.html#9ea60ddd6eb853a15967fd1476156ee4">KGameNetwork::signalConnectionBroken</a> 
<p>Definition at line <a class="el" href="kgameerrordialog_8cpp-source.html#l00077">77</a> of file <a class="el" href="kgameerrordialog_8cpp-source.html">kgameerrordialog.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="63482790ebe73740ebcc13a417239ff9"></a><!-- doxytag: member="KGameErrorDialog::slotClientConnectionLost" ref="63482790ebe73740ebcc13a417239ff9" args="(Q_UINT32 clientID, bool broken)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KGameErrorDialog::slotClientConnectionLost           </td>
          <td>(</td>
          <td class="paramtype">Q_UINT32&nbsp;</td>
          <td class="paramname"> <em>clientID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>broken</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
The connection to a client has been lost by accident. 
<p>
See <a class="el" href="classKGameNetwork.html#3593718156238347096e3e666f80b9b9">KGameNetwork::signalClientDisconnected</a> 
<p>Definition at line <a class="el" href="kgameerrordialog_8cpp-source.html#l00084">84</a> of file <a class="el" href="kgameerrordialog_8cpp-source.html">kgameerrordialog.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="9e41315d54975f495f0adb63be78cf48"></a><!-- doxytag: member="KGameErrorDialog::slotUnsetKGame" ref="9e41315d54975f495f0adb63be78cf48" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KGameErrorDialog::slotUnsetKGame           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Unsets a <a class="el" href="classKGame.html">KGame</a> which has been set using <a class="el" href="classKGameErrorDialog.html#da763c61f66aca7e4596eb4792e3ef68">setKGame</a> before. 
<p>
This is called automatically when the <a class="el" href="classKGame.html">KGame</a> object is destroyed and you normally don't have to call this yourself.<p>
Note that <a class="el" href="classKGameErrorDialog.html#da763c61f66aca7e4596eb4792e3ef68">setKGame</a> also unsets an already existing <a class="el" href="classKGame.html">KGame</a> object if exising. 
<p>Definition at line <a class="el" href="kgameerrordialog_8cpp-source.html#l00066">66</a> of file <a class="el" href="kgameerrordialog_8cpp-source.html">kgameerrordialog.cpp</a>.</p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="kgameerrordialog_8h-source.html">kgameerrordialog.h</a><li><a class="el" href="kgameerrordialog_8cpp-source.html">kgameerrordialog.cpp</a></ul>
</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="&#109;&#97;&#105;&#108;&#116;&#111;&#58;groo&#116;&#64;kde&#46;or&#x67;">Adriaan de Groot</a>
and
<a href="&#109;a&#105;&#108;&#116;&#111;&#58;w&#105;nter&#64;kde&#46;or&#x67">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>