<?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: KExtHighscore::Score 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="navpath"><b>KExtHighscore</b>::<a class="el" href="classKExtHighscore_1_1Score.html">Score</a> </div> <div class="contents"> <h1>KExtHighscore::Score Class Reference</h1><!-- doxytag: class="KExtHighscore::Score" --><code>#include <<a class="el" href="kexthighscore__item_8h-source.html">kexthighscore_item.h</a>></code> <p> <p> <a href="classKExtHighscore_1_1Score-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2> This class contains data for a score. <p> You should not inherit from this class but reimplement the methods in Highscores. <p>Definition at line <a class="el" href="kexthighscore__item_8h-source.html#l00175">175</a> of file <a class="el" href="kexthighscore__item_8h-source.html">kexthighscore_item.h</a>.</p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td></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="5298048f27e67828925d9155c6c4fba1"></a><!-- doxytag: member="KExtHighscore::Score::Score" ref="5298048f27e67828925d9155c6c4fba1" args="(ScoreType type=Won)" --> </td><td class="memItemRight" valign="bottom"><b>Score</b> (ScoreType type=Won)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">ScoreType </td><td class="memItemRight" valign="bottom"><a class="el" href="classKExtHighscore_1_1Score.html#ec1abaf718209ef373524ee2e0748bd4">type</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKExtHighscore_1_1Score.html#4cebe83c6f583545fbc1b96a3df5bba9">setType</a> (ScoreType type)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">const QVariant & </td><td class="memItemRight" valign="bottom"><a class="el" href="classKExtHighscore_1_1Score.html#1f0f5d1e94e2b240073de9e43a3fea55">data</a> (const QString &name) const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKExtHighscore_1_1Score.html#9a615e036d6d228fa88709e00a963243">setData</a> (const QString &name, const QVariant &value)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">uint </td><td class="memItemRight" valign="bottom"><a class="el" href="classKExtHighscore_1_1Score.html#38060bdcbb28eb7a6e0ce5a1022f0b58">score</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKExtHighscore_1_1Score.html#8c6c614ab67e7c55775fd1f57c86ed08">setScore</a> (uint score)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classKExtHighscore_1_1Score.html#f93208b5b810c771d9728d2de2f1ed44">isTheWorst</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classKExtHighscore_1_1Score.html#467018a0ca4e25f147bbb72c306f7c11">operator<</a> (const <a class="el" href="classKExtHighscore_1_1Score.html">Score</a> &score)</td></tr> <tr><td colspan="2"><br><h2>Friends</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="eb1591b9e7aa3b98916abba93bf04be1"></a><!-- doxytag: member="KExtHighscore::Score::MultiplayerScores" ref="eb1591b9e7aa3b98916abba93bf04be1" args="" --> class </td><td class="memItemRight" valign="bottom"><b>MultiplayerScores</b></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b560920d874bcfa1a4a692c66595f960"></a><!-- doxytag: member="KExtHighscore::Score::operator<<" ref="b560920d874bcfa1a4a692c66595f960" args="(QDataStream &stream, const Score &score)" --> QDataStream & </td><td class="memItemRight" valign="bottom"><b>operator<<</b> (QDataStream &stream, const <a class="el" href="classKExtHighscore_1_1Score.html">Score</a> &score)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ae9095b2c1111429de274e9465de3c2b"></a><!-- doxytag: member="KExtHighscore::Score::operator>>" ref="ae9095b2c1111429de274e9465de3c2b" args="(QDataStream &stream, Score &score)" --> QDataStream & </td><td class="memItemRight" valign="bottom"><b>operator>></b> (QDataStream &stream, <a class="el" href="classKExtHighscore_1_1Score.html">Score</a> &score)</td></tr> </table> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="ec1abaf718209ef373524ee2e0748bd4"></a><!-- doxytag: member="KExtHighscore::Score::type" ref="ec1abaf718209ef373524ee2e0748bd4" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">ScoreType KExtHighscore::Score::type </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>the game type. </dd></dl> <p>Definition at line <a class="el" href="kexthighscore__item_8h-source.html#l00185">185</a> of file <a class="el" href="kexthighscore__item_8h-source.html">kexthighscore_item.h</a>.</p> </div> </div><p> <a class="anchor" name="4cebe83c6f583545fbc1b96a3df5bba9"></a><!-- doxytag: member="KExtHighscore::Score::setType" ref="4cebe83c6f583545fbc1b96a3df5bba9" args="(ScoreType type)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KExtHighscore::Score::setType </td> <td>(</td> <td class="paramtype">ScoreType </td> <td class="paramname"> <em>type</em> </td> <td> ) </td> <td width="100%"><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Set the game type. <p> <p>Definition at line <a class="el" href="kexthighscore__item_8h-source.html#l00190">190</a> of file <a class="el" href="kexthighscore__item_8h-source.html">kexthighscore_item.h</a>.</p> </div> </div><p> <a class="anchor" name="1f0f5d1e94e2b240073de9e43a3fea55"></a><!-- doxytag: member="KExtHighscore::Score::data" ref="1f0f5d1e94e2b240073de9e43a3fea55" args="(const QString &name) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const QVariant & KExtHighscore::Score::data </td> <td>(</td> <td class="paramtype">const QString & </td> <td class="paramname"> <em>name</em> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table> </div> <div class="memdoc"> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>the data associated with the named <a class="el" href="classKExtHighscore_1_1Item.html" title="This class defines how to convert and how to display a highscore element (such as...">Item</a>. </dd></dl> <p>Definition at line <a class="el" href="kexthighscore__item_8cpp-source.html#l00155">155</a> of file <a class="el" href="kexthighscore__item_8cpp-source.html">kexthighscore_item.cpp</a>.</p> </div> </div><p> <a class="anchor" name="9a615e036d6d228fa88709e00a963243"></a><!-- doxytag: member="KExtHighscore::Score::setData" ref="9a615e036d6d228fa88709e00a963243" args="(const QString &name, const QVariant &value)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KExtHighscore::Score::setData </td> <td>(</td> <td class="paramtype">const QString & </td> <td class="paramname"> <em>name</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const QVariant & </td> <td class="paramname"> <em>value</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Set the data associated with the named <a class="el" href="classKExtHighscore_1_1Item.html" title="This class defines how to convert and how to display a highscore element (such as...">Item</a>. <p> Note that the value should have the type of the default value of the <a class="el" href="classKExtHighscore_1_1Item.html" title="This class defines how to convert and how to display a highscore element (such as...">Item</a>. <p>Definition at line <a class="el" href="kexthighscore__item_8cpp-source.html#l00161">161</a> of file <a class="el" href="kexthighscore__item_8cpp-source.html">kexthighscore_item.cpp</a>.</p> </div> </div><p> <a class="anchor" name="38060bdcbb28eb7a6e0ce5a1022f0b58"></a><!-- doxytag: member="KExtHighscore::Score::score" ref="38060bdcbb28eb7a6e0ce5a1022f0b58" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint KExtHighscore::Score::score </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>the score value.</dd></dl> Equivalent to <pre>data("score").toUInt()</pre>. <p>Definition at line <a class="el" href="kexthighscore__item_8h-source.html#l00209">209</a> of file <a class="el" href="kexthighscore__item_8h-source.html">kexthighscore_item.h</a>.</p> </div> </div><p> <a class="anchor" name="8c6c614ab67e7c55775fd1f57c86ed08"></a><!-- doxytag: member="KExtHighscore::Score::setScore" ref="8c6c614ab67e7c55775fd1f57c86ed08" args="(uint score)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KExtHighscore::Score::setScore </td> <td>(</td> <td class="paramtype">uint </td> <td class="paramname"> <em>score</em> </td> <td> ) </td> <td width="100%"><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Set the score value. <p> Equivalent to <pre>setData("score", score)</pre>. <p>Definition at line <a class="el" href="kexthighscore__item_8h-source.html#l00216">216</a> of file <a class="el" href="kexthighscore__item_8h-source.html">kexthighscore_item.h</a>.</p> </div> </div><p> <a class="anchor" name="f93208b5b810c771d9728d2de2f1ed44"></a><!-- doxytag: member="KExtHighscore::Score::isTheWorst" ref="f93208b5b810c771d9728d2de2f1ed44" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool KExtHighscore::Score::isTheWorst </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table> </div> <div class="memdoc"> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>true if this is the worst possible score (ie the default argument of ScoreItem). </dd></dl> <p>Definition at line <a class="el" href="kexthighscore__item_8cpp-source.html#l00168">168</a> of file <a class="el" href="kexthighscore__item_8cpp-source.html">kexthighscore_item.cpp</a>.</p> </div> </div><p> <a class="anchor" name="467018a0ca4e25f147bbb72c306f7c11"></a><!-- doxytag: member="KExtHighscore::Score::operator<" ref="467018a0ca4e25f147bbb72c306f7c11" args="(const Score &score)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool KExtHighscore::Score::operator< </td> <td>(</td> <td class="paramtype">const <a class="el" href="classKExtHighscore_1_1Score.html">Score</a> & </td> <td class="paramname"> <em>score</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Comparison operator. <p> <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classKExtHighscore_1_1Manager.html#5c5b0bc0c80dec0819ed280662f2769b">Manager::isStrictlyLess</a> </dd></dl> <p>Definition at line <a class="el" href="kexthighscore__item_8cpp-source.html#l00174">174</a> of file <a class="el" href="kexthighscore__item_8cpp-source.html">kexthighscore_item.cpp</a>.</p> </div> </div><p> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="kexthighscore__item_8h-source.html">kexthighscore_item.h</a><li><a class="el" href="kexthighscore__item_8cpp-source.html">kexthighscore_item.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="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>