1 <!-- This comment will put IE 6, 7 and 8 in quirks mode -->
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
5 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
6 <title>Chess Clock: ChessClock Class Reference</title>
7 <link href="tabs.css" rel="stylesheet" type="text/css"/>
8 <link href="search/search.css" rel="stylesheet" type="text/css"/>
9 <script type="text/javaScript" src="search/search.js"></script>
10 <link href="doxygen.css" rel="stylesheet" type="text/css"/>
12 <body onload='searchBox.OnSelectItem(0);'>
13 <!-- Generated by Doxygen 1.6.3 -->
14 <script type="text/javascript"><!--
15 var searchBox = new SearchBox("searchBox", "search",false,'Search');
17 <div class="navigation" id="top">
20 <li><a href="index.html"><span>Main Page</span></a></li>
21 <li><a href="pages.html"><span>Related Pages</span></a></li>
22 <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
23 <li><a href="files.html"><span>Files</span></a></li>
25 <div id="MSearchBox" class="MSearchBoxInactive">
26 <img id="MSearchSelect" src="search/search.png"
27 onmouseover="return searchBox.OnSearchSelectShow()"
28 onmouseout="return searchBox.OnSearchSelectHide()"
30 <input type="text" id="MSearchField" value="Search" accesskey="S"
31 onfocus="searchBox.OnSearchFieldFocus(true)"
32 onblur="searchBox.OnSearchFieldFocus(false)"
33 onkeyup="searchBox.OnSearchFieldChange(event)"/>
34 <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
41 <li><a href="annotated.html"><span>Class List</span></a></li>
42 <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
43 <li><a href="functions.html"><span>Class Members</span></a></li>
47 <div class="contents">
48 <h1>ChessClock Class Reference</h1><!-- doxytag: class="ChessClock" -->
49 <p>Clock of a individual player.
50 <a href="#_details">More...</a></p>
52 <p><code>#include <<a class="el" href="chessclock_8h_source.html">chessclock.h</a>></code></p>
53 <div class="dynheader">
54 Inheritance diagram for ChessClock:</div>
55 <div class="dynsection">
57 <img src="class_chess_clock.png" usemap="#ChessClock_map" alt=""/>
58 <map id="ChessClock_map" name="ChessClock_map">
59 <area href="class_chess_clock_widget.html" alt="ChessClockWidget" shape="rect" coords="254,56,371,80"/>
60 <area href="class_delay_after_clock.html" alt="DelayAfterClock" shape="rect" coords="0,112,117,136"/>
61 <area href="class_delay_clock.html" alt="DelayClock" shape="rect" coords="127,112,244,136"/>
62 <area href="class_fischer_after_clock.html" alt="FischerAfterClock" shape="rect" coords="254,112,371,136"/>
63 <area href="class_fischer_clock.html" alt="FischerClock" shape="rect" coords="381,112,498,136"/>
64 <area href="class_hour_glass_clock.html" alt="HourGlassClock" shape="rect" coords="508,112,625,136"/>
69 <p><a href="class_chess_clock-members.html">List of all members.</a></p>
70 <table border="0" cellpadding="0" cellspacing="0">
71 <tr><td colspan="2"><h2>Public Types</h2></td></tr>
72 <tr><td class="memItemLeft" align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock.html#a4a819ca828d25e17dd5975a2ea935d28">RunningStatus</a> { <a class="el" href="class_chess_clock.html#a4a819ca828d25e17dd5975a2ea935d28a62801e3ac4d8e7f2889090525598b181">NotRunning</a> = 0,
73 <a class="el" href="class_chess_clock.html#a4a819ca828d25e17dd5975a2ea935d28ac717f6fe8e135ffff8153ec7d5b2b36c">Running</a> = 1,
74 <a class="el" href="class_chess_clock.html#a4a819ca828d25e17dd5975a2ea935d28a71899c98710fe6d3a18a5d3f1029e9d9">Paused</a> = 2
76 <tr><td colspan="2"><h2>Public Slots</h2></td></tr>
77 <tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock.html#a349c7c108551649a9885651c5470e2dd">repaintClock</a> ()=0</td></tr>
78 <tr><td class="mdescLeft"> </td><td class="mdescRight">Refresh clock information. <a href="#a349c7c108551649a9885651c5470e2dd"></a><br/></td></tr>
79 <tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock.html#a2262f5bb09794ef7a40c62c0c28a6979">updateClock</a> ()</td></tr>
80 <tr><td class="mdescLeft"> </td><td class="mdescRight">Update clock information, check looser state and refresh. <a href="#a2262f5bb09794ef7a40c62c0c28a6979"></a><br/></td></tr>
81 <tr><td colspan="2"><h2>Signals</h2></td></tr>
82 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock.html#a9406ad0b60047e6605cf3e41c8a47b13">timeOutLoser</a> ()</td></tr>
83 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock.html#a832bb1a623c56078c91be7d67b12dea9">turnEnded</a> ()</td></tr>
84 <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
85 <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock.html#af4d3718b1e746317749bbb992688dcd8">ChessClock</a> (bool white, QWidget *parent=0)</td></tr>
86 <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock.html#a8ee162da0545410332d3fc1c4696b64a">isLoser</a> () const </td></tr>
87 <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock.html#ad250dc2ff1f62f2c984e1925d30c1956">getTurn</a> () const </td></tr>
88 <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock.html#a87c8761d7b25ef31764a3e173b9645c1">isWhite</a> () const </td></tr>
89 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_chess_clock.html#a4a819ca828d25e17dd5975a2ea935d28">RunningStatus</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock.html#a8988e92a321e25d52dc00552b4d44a4d">getStatus</a> () const </td></tr>
90 <tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock.html#a49504d86896ef3f724b2aa481c85435a">startTurn</a> ()</td></tr>
91 <tr><td class="mdescLeft"> </td><td class="mdescRight">Start new turn. <a href="#a49504d86896ef3f724b2aa481c85435a"></a><br/></td></tr>
92 <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_turn_information.html">TurnInformation</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock.html#a2383619532d2e9e6557961616c722531">endTurn</a> ()</td></tr>
93 <tr><td class="mdescLeft"> </td><td class="mdescRight">End this turn. <a href="#a2383619532d2e9e6557961616c722531"></a><br/></td></tr>
94 <tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock.html#a461145515ab3854c079937143026a047">pauseTurn</a> ()</td></tr>
95 <tr><td class="mdescLeft"> </td><td class="mdescRight">Pause clock. <a href="#a461145515ab3854c079937143026a047"></a><br/></td></tr>
96 <tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock.html#ae0686cb1be507be4c7c411898ba52495">continueTurn</a> ()</td></tr>
97 <tr><td class="mdescLeft"> </td><td class="mdescRight">Continue paused game. <a href="#ae0686cb1be507be4c7c411898ba52495"></a><br/></td></tr>
98 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock.html#aa19330404a35872591d45d24fb52572e">setAnother</a> (<a class="el" href="class_chess_clock.html">ChessClock</a> *another)</td></tr>
99 <tr><td class="mdescLeft"> </td><td class="mdescRight">Set another chess clock for connecting. <a href="#aa19330404a35872591d45d24fb52572e"></a><br/></td></tr>
100 <tr><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock.html#a8e7d214dcc13dcd1087d2281fe96ce16">getTimeAvailable</a> ()</td></tr>
101 <tr><td class="mdescLeft"> </td><td class="mdescRight">Get total time available. <a href="#a8e7d214dcc13dcd1087d2281fe96ce16"></a><br/></td></tr>
102 <tr><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock.html#a4bc0dedc29db4e121424b83605a3ec1b">getTimePlayed</a> ()</td></tr>
103 <tr><td class="mdescLeft"> </td><td class="mdescRight">Get total time played. <a href="#a4bc0dedc29db4e121424b83605a3ec1b"></a><br/></td></tr>
104 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock.html#af0415d0184abb73d9ee3348635c3e0d8">setTimeAvailable</a> (int msecs)</td></tr>
105 <tr><td class="mdescLeft"> </td><td class="mdescRight">Set time available. <a href="#af0415d0184abb73d9ee3348635c3e0d8"></a><br/></td></tr>
106 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock.html#a7726be810822d28f039252e29e8377d5">addTime</a> (int msecs)</td></tr>
107 <tr><td class="mdescLeft"> </td><td class="mdescRight">Add time. <a href="#a7726be810822d28f039252e29e8377d5"></a><br/></td></tr>
108 <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock.html#a781fff762250f63de87d12f5d88ae5ed">currentTurnPlayed</a> ()</td></tr>
109 <tr><td class="mdescLeft"> </td><td class="mdescRight">Get time played current turn. <a href="#a781fff762250f63de87d12f5d88ae5ed"></a><br/></td></tr>
110 <tr><td colspan="2"><h2>Protected Attributes</h2></td></tr>
111 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_chess_clock.html">ChessClock</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock.html#a2ec3c0ed0a5e9bee6bd0864c5c9e4452">another_</a></td></tr>
112 <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock.html#a4ed94dc49d57927eb518c3e7d93718b1">loser_</a></td></tr>
113 <tr><td class="mdescLeft"> </td><td class="mdescRight">Another player's clock. <a href="#a4ed94dc49d57927eb518c3e7d93718b1"></a><br/></td></tr>
114 <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock.html#aba90e7b968a5d27fc8653f7690344f8d">turn_</a></td></tr>
115 <tr><td class="mdescLeft"> </td><td class="mdescRight">Is player losed because of timeout. <a href="#aba90e7b968a5d27fc8653f7690344f8d"></a><br/></td></tr>
116 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_chess_clock.html#a4a819ca828d25e17dd5975a2ea935d28">RunningStatus</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock.html#ad2d4601fbc0dae0599a95ce7924c9902">status_</a></td></tr>
117 <tr><td class="mdescLeft"> </td><td class="mdescRight">Current turn. <a href="#ad2d4601fbc0dae0599a95ce7924c9902"></a><br/></td></tr>
118 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_turn_information.html">TurnInformation</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock.html#a0eb205f7484c7cf2a0be1f8bec78bf68">currentTurn_</a></td></tr>
119 <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock.html#a373e5774a0af5387c76006a1a24d770e">timePlayedBeforeTurn_</a></td></tr>
120 <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock.html#abbce62e8c796244cadb1a5413469ca1b">timeAvailableBeforeTurn_</a></td></tr>
121 <tr><td class="mdescLeft"> </td><td class="mdescRight">Time played in this game BEFORE this turn msecs. <a href="#abbce62e8c796244cadb1a5413469ca1b"></a><br/></td></tr>
122 <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock.html#a844453fc4683c62d24b53b70fb68c1a9">isWhite_</a></td></tr>
123 <tr><td class="mdescLeft"> </td><td class="mdescRight">Time available for play BEFORE this turn msecs ! <a href="#a844453fc4683c62d24b53b70fb68c1a9"></a><br/></td></tr>
124 <tr><td class="memItemLeft" align="right" valign="top">QTime </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock.html#ae25ff9bfd3ccb8651b3e7890e712d1be">clockTime_</a></td></tr>
125 <tr><td class="mdescLeft"> </td><td class="mdescRight">True if white player. <a href="#ae25ff9bfd3ccb8651b3e7890e712d1be"></a><br/></td></tr>
126 <tr><td class="memItemLeft" align="right" valign="top">QTimer </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock.html#a3493e745462457ebf5660754fe333fd2">updateTimer_</a></td></tr>
127 <tr><td colspan="2"><h2>Static Protected Attributes</h2></td></tr>
128 <tr><td class="memItemLeft" align="right" valign="top">static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock.html#a848e42d72b3470578f0f958106894b4f">UPDATEINTERVAL</a> = 1000</td></tr>
130 <hr/><a name="_details"></a><h2>Detailed Description</h2>
131 <p>Clock of a individual player. </p>
132 <dl class="author"><dt><b>Author:</b></dt><dd>Arto Hyvättinen </dd></dl>
133 <dl class="date"><dt><b>Date:</b></dt><dd>2010-08-13</dd></dl>
134 <p>Base class of chess clock.</p>
135 <p><a class="el" href="class_chess_clock.html" title="Clock of a individual player.">ChessClock</a> has not GUI itself, but it is subclass of QWidget avoiding polymorphism. </p>
137 <p>Definition at line <a class="el" href="chessclock_8h_source.html#l00043">43</a> of file <a class="el" href="chessclock_8h_source.html">chessclock.h</a>.</p>
138 <hr/><h2>Member Enumeration Documentation</h2>
139 <a class="anchor" id="a4a819ca828d25e17dd5975a2ea935d28"></a><!-- doxytag: member="ChessClock::RunningStatus" ref="a4a819ca828d25e17dd5975a2ea935d28" args="" -->
140 <div class="memitem">
141 <div class="memproto">
142 <table class="memname">
144 <td class="memname">enum <a class="el" href="class_chess_clock.html#a4a819ca828d25e17dd5975a2ea935d28">ChessClock::RunningStatus</a></td>
149 <dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
150 <tr><td valign="top"><em><a class="anchor" id="a4a819ca828d25e17dd5975a2ea935d28a62801e3ac4d8e7f2889090525598b181"></a><!-- doxytag: member="NotRunning" ref="a4a819ca828d25e17dd5975a2ea935d28a62801e3ac4d8e7f2889090525598b181" args="" -->NotRunning</em> </td><td>
153 <tr><td valign="top"><em><a class="anchor" id="a4a819ca828d25e17dd5975a2ea935d28ac717f6fe8e135ffff8153ec7d5b2b36c"></a><!-- doxytag: member="Running" ref="a4a819ca828d25e17dd5975a2ea935d28ac717f6fe8e135ffff8153ec7d5b2b36c" args="" -->Running</em> </td><td>
154 <p>Turn running. </p>
156 <tr><td valign="top"><em><a class="anchor" id="a4a819ca828d25e17dd5975a2ea935d28a71899c98710fe6d3a18a5d3f1029e9d9"></a><!-- doxytag: member="Paused" ref="a4a819ca828d25e17dd5975a2ea935d28a71899c98710fe6d3a18a5d3f1029e9d9" args="" -->Paused</em> </td><td>
163 <p>Definition at line <a class="el" href="chessclock_8h_source.html#l00050">50</a> of file <a class="el" href="chessclock_8h_source.html">chessclock.h</a>.</p>
167 <hr/><h2>Constructor & Destructor Documentation</h2>
168 <a class="anchor" id="af4d3718b1e746317749bbb992688dcd8"></a><!-- doxytag: member="ChessClock::ChessClock" ref="af4d3718b1e746317749bbb992688dcd8" args="(bool white, QWidget *parent=0)" -->
169 <div class="memitem">
170 <div class="memproto">
171 <table class="memname">
173 <td class="memname">ChessClock::ChessClock </td>
175 <td class="paramtype">bool </td>
176 <td class="paramname"> <em>white</em>, </td>
179 <td class="paramkey"></td>
181 <td class="paramtype">QWidget * </td>
182 <td class="paramname"> <em>parent</em> = <code>0</code></td><td> </td>
187 <td></td><td></td><td></td>
193 <p>Definition at line <a class="el" href="chessclock_8cpp_source.html#l00028">28</a> of file <a class="el" href="chessclock_8cpp_source.html">chessclock.cpp</a>.</p>
197 <hr/><h2>Member Function Documentation</h2>
198 <a class="anchor" id="a7726be810822d28f039252e29e8377d5"></a><!-- doxytag: member="ChessClock::addTime" ref="a7726be810822d28f039252e29e8377d5" args="(int msecs)" -->
199 <div class="memitem">
200 <div class="memproto">
201 <table class="memname">
203 <td class="memname">void ChessClock::addTime </td>
205 <td class="paramtype">int </td>
206 <td class="paramname"> <em>msecs</em></td>
207 <td> ) </td>
215 <p>Add time to timeAvailableBeforeTurn_ total available time counter.</p>
216 <dl><dt><b>Parameters:</b></dt><dd>
217 <table border="0" cellspacing="2" cellpadding="0">
218 <tr><td valign="top"></td><td valign="top"><em>msecs</em> </td><td>Time to add in msecs </td></tr>
223 <p>Definition at line <a class="el" href="chessclock_8cpp_source.html#l00135">135</a> of file <a class="el" href="chessclock_8cpp_source.html">chessclock.cpp</a>.</p>
227 <a class="anchor" id="ae0686cb1be507be4c7c411898ba52495"></a><!-- doxytag: member="ChessClock::continueTurn" ref="ae0686cb1be507be4c7c411898ba52495" args="()" -->
228 <div class="memitem">
229 <div class="memproto">
230 <table class="memname">
232 <td class="memname">void ChessClock::continueTurn </td>
234 <td class="paramname"></td>
235 <td> ) </td>
236 <td><code> [virtual]</code></td>
242 <p>Continue paused game. </p>
244 <p>Definition at line <a class="el" href="chessclock_8cpp_source.html#l00070">70</a> of file <a class="el" href="chessclock_8cpp_source.html">chessclock.cpp</a>.</p>
248 <a class="anchor" id="a781fff762250f63de87d12f5d88ae5ed"></a><!-- doxytag: member="ChessClock::currentTurnPlayed" ref="a781fff762250f63de87d12f5d88ae5ed" args="()" -->
249 <div class="memitem">
250 <div class="memproto">
251 <table class="memname">
253 <td class="memname">int ChessClock::currentTurnPlayed </td>
255 <td class="paramname"></td>
256 <td> ) </td>
263 <p>Get time played current turn. </p>
264 <dl class="return"><dt><b>Returns:</b></dt><dd>Time in msecs </dd></dl>
266 <p>Definition at line <a class="el" href="chessclock_8cpp_source.html#l00140">140</a> of file <a class="el" href="chessclock_8cpp_source.html">chessclock.cpp</a>.</p>
270 <a class="anchor" id="a2383619532d2e9e6557961616c722531"></a><!-- doxytag: member="ChessClock::endTurn" ref="a2383619532d2e9e6557961616c722531" args="()" -->
271 <div class="memitem">
272 <div class="memproto">
273 <table class="memname">
275 <td class="memname"><a class="el" href="class_turn_information.html">TurnInformation</a> * ChessClock::endTurn </td>
277 <td class="paramname"></td>
278 <td> ) </td>
279 <td><code> [virtual]</code></td>
285 <p>End this turn. </p>
286 <p>Player has done his move. </p>
287 <dl class="return"><dt><b>Returns:</b></dt><dd>Locked turn information </dd></dl>
289 <p>Reimplemented in <a class="el" href="class_delay_after_clock.html#a67513894f0749d488e275f26e43008e8">DelayAfterClock</a>, <a class="el" href="class_fischer_after_clock.html#a01047f1c8eea1ca406eaebdaab930daf">FischerAfterClock</a>, and <a class="el" href="class_hour_glass_clock.html#af2c3629621f5ac7c41b41b236c2f1594">HourGlassClock</a>.</p>
291 <p>Definition at line <a class="el" href="chessclock_8cpp_source.html#l00081">81</a> of file <a class="el" href="chessclock_8cpp_source.html">chessclock.cpp</a>.</p>
295 <a class="anchor" id="a8988e92a321e25d52dc00552b4d44a4d"></a><!-- doxytag: member="ChessClock::getStatus" ref="a8988e92a321e25d52dc00552b4d44a4d" args="() const " -->
296 <div class="memitem">
297 <div class="memproto">
298 <table class="memname">
300 <td class="memname"><a class="el" href="class_chess_clock.html#a4a819ca828d25e17dd5975a2ea935d28">RunningStatus</a> ChessClock::getStatus </td>
302 <td class="paramname"></td>
303 <td> ) </td>
304 <td> const<code> [inline]</code></td>
310 <p>Definition at line <a class="el" href="chessclock_8h_source.html#l00059">59</a> of file <a class="el" href="chessclock_8h_source.html">chessclock.h</a>.</p>
314 <a class="anchor" id="a8e7d214dcc13dcd1087d2281fe96ce16"></a><!-- doxytag: member="ChessClock::getTimeAvailable" ref="a8e7d214dcc13dcd1087d2281fe96ce16" args="()" -->
315 <div class="memitem">
316 <div class="memproto">
317 <table class="memname">
319 <td class="memname">int ChessClock::getTimeAvailable </td>
321 <td class="paramname"></td>
322 <td> ) </td>
323 <td><code> [virtual]</code></td>
329 <p>Get total time available. </p>
330 <p>Time does't contain delays.</p>
331 <dl class="return"><dt><b>Returns:</b></dt><dd>Time available in msecs </dd></dl>
333 <p>Reimplemented in <a class="el" href="class_delay_clock.html#ad926d5f15903c47092d431cc26b296d4">DelayClock</a>, and <a class="el" href="class_hour_glass_clock.html#a50daaa71c289575f47e1310ce215f45f">HourGlassClock</a>.</p>
335 <p>Definition at line <a class="el" href="chessclock_8cpp_source.html#l00109">109</a> of file <a class="el" href="chessclock_8cpp_source.html">chessclock.cpp</a>.</p>
339 <a class="anchor" id="a4bc0dedc29db4e121424b83605a3ec1b"></a><!-- doxytag: member="ChessClock::getTimePlayed" ref="a4bc0dedc29db4e121424b83605a3ec1b" args="()" -->
340 <div class="memitem">
341 <div class="memproto">
342 <table class="memname">
344 <td class="memname">int ChessClock::getTimePlayed </td>
346 <td class="paramname"></td>
347 <td> ) </td>
348 <td><code> [virtual]</code></td>
354 <p>Get total time played. </p>
355 <dl class="return"><dt><b>Returns:</b></dt><dd>Time played in msecs </dd></dl>
357 <p>Definition at line <a class="el" href="chessclock_8cpp_source.html#l00123">123</a> of file <a class="el" href="chessclock_8cpp_source.html">chessclock.cpp</a>.</p>
361 <a class="anchor" id="ad250dc2ff1f62f2c984e1925d30c1956"></a><!-- doxytag: member="ChessClock::getTurn" ref="ad250dc2ff1f62f2c984e1925d30c1956" args="() const " -->
362 <div class="memitem">
363 <div class="memproto">
364 <table class="memname">
366 <td class="memname">int ChessClock::getTurn </td>
368 <td class="paramname"></td>
369 <td> ) </td>
370 <td> const<code> [inline]</code></td>
376 <p>Definition at line <a class="el" href="chessclock_8h_source.html#l00057">57</a> of file <a class="el" href="chessclock_8h_source.html">chessclock.h</a>.</p>
380 <a class="anchor" id="a8ee162da0545410332d3fc1c4696b64a"></a><!-- doxytag: member="ChessClock::isLoser" ref="a8ee162da0545410332d3fc1c4696b64a" args="() const " -->
381 <div class="memitem">
382 <div class="memproto">
383 <table class="memname">
385 <td class="memname">bool ChessClock::isLoser </td>
387 <td class="paramname"></td>
388 <td> ) </td>
389 <td> const<code> [inline]</code></td>
395 <p>Definition at line <a class="el" href="chessclock_8h_source.html#l00056">56</a> of file <a class="el" href="chessclock_8h_source.html">chessclock.h</a>.</p>
399 <a class="anchor" id="a87c8761d7b25ef31764a3e173b9645c1"></a><!-- doxytag: member="ChessClock::isWhite" ref="a87c8761d7b25ef31764a3e173b9645c1" args="() const " -->
400 <div class="memitem">
401 <div class="memproto">
402 <table class="memname">
404 <td class="memname">bool ChessClock::isWhite </td>
406 <td class="paramname"></td>
407 <td> ) </td>
408 <td> const<code> [inline]</code></td>
414 <p>Definition at line <a class="el" href="chessclock_8h_source.html#l00058">58</a> of file <a class="el" href="chessclock_8h_source.html">chessclock.h</a>.</p>
418 <a class="anchor" id="a461145515ab3854c079937143026a047"></a><!-- doxytag: member="ChessClock::pauseTurn" ref="a461145515ab3854c079937143026a047" args="()" -->
419 <div class="memitem">
420 <div class="memproto">
421 <table class="memname">
423 <td class="memname">void ChessClock::pauseTurn </td>
425 <td class="paramname"></td>
426 <td> ) </td>
427 <td><code> [virtual]</code></td>
435 <p>Definition at line <a class="el" href="chessclock_8cpp_source.html#l00061">61</a> of file <a class="el" href="chessclock_8cpp_source.html">chessclock.cpp</a>.</p>
439 <a class="anchor" id="a349c7c108551649a9885651c5470e2dd"></a><!-- doxytag: member="ChessClock::repaintClock" ref="a349c7c108551649a9885651c5470e2dd" args="()=0" -->
440 <div class="memitem">
441 <div class="memproto">
442 <table class="memname">
444 <td class="memname">virtual void ChessClock::repaintClock </td>
446 <td class="paramname"></td>
447 <td> ) </td>
448 <td><code> [pure virtual, slot]</code></td>
454 <p>Refresh clock information. </p>
456 <p>Implemented in <a class="el" href="class_chess_clock_widget.html#ac61998d19019342ea4ab93651e32a2ad">ChessClockWidget</a>.</p>
460 <a class="anchor" id="aa19330404a35872591d45d24fb52572e"></a><!-- doxytag: member="ChessClock::setAnother" ref="aa19330404a35872591d45d24fb52572e" args="(ChessClock *another)" -->
461 <div class="memitem">
462 <div class="memproto">
463 <table class="memname">
465 <td class="memname">void ChessClock::setAnother </td>
467 <td class="paramtype"><a class="el" href="class_chess_clock.html">ChessClock</a> * </td>
468 <td class="paramname"> <em>another</em></td>
469 <td> ) </td>
476 <p>Set another chess clock for connecting. </p>
477 <dl><dt><b>Parameters:</b></dt><dd>
478 <table border="0" cellspacing="2" cellpadding="0">
479 <tr><td valign="top"></td><td valign="top"><em>another</em> </td><td>Clock of opposite player </td></tr>
484 <p>Definition at line <a class="el" href="chessclock_8cpp_source.html#l00104">104</a> of file <a class="el" href="chessclock_8cpp_source.html">chessclock.cpp</a>.</p>
488 <a class="anchor" id="af0415d0184abb73d9ee3348635c3e0d8"></a><!-- doxytag: member="ChessClock::setTimeAvailable" ref="af0415d0184abb73d9ee3348635c3e0d8" args="(int msecs)" -->
489 <div class="memitem">
490 <div class="memproto">
491 <table class="memname">
493 <td class="memname">void ChessClock::setTimeAvailable </td>
495 <td class="paramtype">int </td>
496 <td class="paramname"> <em>msecs</em></td>
497 <td> ) </td>
504 <p>Set time available. </p>
505 <dl><dt><b>Parameters:</b></dt><dd>
506 <table border="0" cellspacing="2" cellpadding="0">
507 <tr><td valign="top"></td><td valign="top"><em>msecs</em> </td><td>Time available in msecs </td></tr>
512 <p>Definition at line <a class="el" href="chessclock_8cpp_source.html#l00129">129</a> of file <a class="el" href="chessclock_8cpp_source.html">chessclock.cpp</a>.</p>
516 <a class="anchor" id="a49504d86896ef3f724b2aa481c85435a"></a><!-- doxytag: member="ChessClock::startTurn" ref="a49504d86896ef3f724b2aa481c85435a" args="()" -->
517 <div class="memitem">
518 <div class="memproto">
519 <table class="memname">
521 <td class="memname">void ChessClock::startTurn </td>
523 <td class="paramname"></td>
524 <td> ) </td>
525 <td><code> [virtual]</code></td>
531 <p>Start new turn. </p>
533 <p>Reimplemented in <a class="el" href="class_fischer_clock.html#a57f7d1108e88c04e3c8d9326cc8bb0b6">FischerClock</a>.</p>
535 <p>Definition at line <a class="el" href="chessclock_8cpp_source.html#l00047">47</a> of file <a class="el" href="chessclock_8cpp_source.html">chessclock.cpp</a>.</p>
539 <a class="anchor" id="a9406ad0b60047e6605cf3e41c8a47b13"></a><!-- doxytag: member="ChessClock::timeOutLoser" ref="a9406ad0b60047e6605cf3e41c8a47b13" args="()" -->
540 <div class="memitem">
541 <div class="memproto">
542 <table class="memname">
544 <td class="memname">void ChessClock::timeOutLoser </td>
546 <td class="paramname"></td>
547 <td> ) </td>
548 <td><code> [signal]</code></td>
556 <a class="anchor" id="a832bb1a623c56078c91be7d67b12dea9"></a><!-- doxytag: member="ChessClock::turnEnded" ref="a832bb1a623c56078c91be7d67b12dea9" args="()" -->
557 <div class="memitem">
558 <div class="memproto">
559 <table class="memname">
561 <td class="memname">void ChessClock::turnEnded </td>
563 <td class="paramname"></td>
564 <td> ) </td>
565 <td><code> [signal]</code></td>
573 <a class="anchor" id="a2262f5bb09794ef7a40c62c0c28a6979"></a><!-- doxytag: member="ChessClock::updateClock" ref="a2262f5bb09794ef7a40c62c0c28a6979" args="()" -->
574 <div class="memitem">
575 <div class="memproto">
576 <table class="memname">
578 <td class="memname">void ChessClock::updateClock </td>
580 <td class="paramname"></td>
581 <td> ) </td>
582 <td><code> [virtual, slot]</code></td>
588 <p>Update clock information, check looser state and refresh. </p>
590 <p>Reimplemented in <a class="el" href="class_hour_glass_clock.html#af4a8ee4fa210f6d9bc08510f614402e6">HourGlassClock</a>.</p>
592 <p>Definition at line <a class="el" href="chessclock_8cpp_source.html#l00156">156</a> of file <a class="el" href="chessclock_8cpp_source.html">chessclock.cpp</a>.</p>
596 <hr/><h2>Member Data Documentation</h2>
597 <a class="anchor" id="a2ec3c0ed0a5e9bee6bd0864c5c9e4452"></a><!-- doxytag: member="ChessClock::another_" ref="a2ec3c0ed0a5e9bee6bd0864c5c9e4452" args="" -->
598 <div class="memitem">
599 <div class="memproto">
600 <table class="memname">
602 <td class="memname"><a class="el" href="class_chess_clock.html">ChessClock</a>* <a class="el" href="class_chess_clock.html#a2ec3c0ed0a5e9bee6bd0864c5c9e4452">ChessClock::another_</a><code> [protected]</code></td>
608 <p>Definition at line <a class="el" href="chessclock_8h_source.html#l00123">123</a> of file <a class="el" href="chessclock_8h_source.html">chessclock.h</a>.</p>
612 <a class="anchor" id="ae25ff9bfd3ccb8651b3e7890e712d1be"></a><!-- doxytag: member="ChessClock::clockTime_" ref="ae25ff9bfd3ccb8651b3e7890e712d1be" args="" -->
613 <div class="memitem">
614 <div class="memproto">
615 <table class="memname">
617 <td class="memname">QTime <a class="el" href="class_chess_clock.html#ae25ff9bfd3ccb8651b3e7890e712d1be">ChessClock::clockTime_</a><code> [protected]</code></td>
623 <p>True if white player. </p>
625 <p>Definition at line <a class="el" href="chessclock_8h_source.html#l00135">135</a> of file <a class="el" href="chessclock_8h_source.html">chessclock.h</a>.</p>
629 <a class="anchor" id="a0eb205f7484c7cf2a0be1f8bec78bf68"></a><!-- doxytag: member="ChessClock::currentTurn_" ref="a0eb205f7484c7cf2a0be1f8bec78bf68" args="" -->
630 <div class="memitem">
631 <div class="memproto">
632 <table class="memname">
634 <td class="memname"><a class="el" href="class_turn_information.html">TurnInformation</a>* <a class="el" href="class_chess_clock.html#a0eb205f7484c7cf2a0be1f8bec78bf68">ChessClock::currentTurn_</a><code> [protected]</code></td>
640 <p>Definition at line <a class="el" href="chessclock_8h_source.html#l00128">128</a> of file <a class="el" href="chessclock_8h_source.html">chessclock.h</a>.</p>
644 <a class="anchor" id="a844453fc4683c62d24b53b70fb68c1a9"></a><!-- doxytag: member="ChessClock::isWhite_" ref="a844453fc4683c62d24b53b70fb68c1a9" args="" -->
645 <div class="memitem">
646 <div class="memproto">
647 <table class="memname">
649 <td class="memname">bool <a class="el" href="class_chess_clock.html#a844453fc4683c62d24b53b70fb68c1a9">ChessClock::isWhite_</a><code> [protected]</code></td>
655 <p>Time available for play BEFORE this turn msecs ! </p>
657 <p>Definition at line <a class="el" href="chessclock_8h_source.html#l00133">133</a> of file <a class="el" href="chessclock_8h_source.html">chessclock.h</a>.</p>
661 <a class="anchor" id="a4ed94dc49d57927eb518c3e7d93718b1"></a><!-- doxytag: member="ChessClock::loser_" ref="a4ed94dc49d57927eb518c3e7d93718b1" args="" -->
662 <div class="memitem">
663 <div class="memproto">
664 <table class="memname">
666 <td class="memname">bool <a class="el" href="class_chess_clock.html#a4ed94dc49d57927eb518c3e7d93718b1">ChessClock::loser_</a><code> [protected]</code></td>
672 <p>Another player's clock. </p>
674 <p>Definition at line <a class="el" href="chessclock_8h_source.html#l00125">125</a> of file <a class="el" href="chessclock_8h_source.html">chessclock.h</a>.</p>
678 <a class="anchor" id="ad2d4601fbc0dae0599a95ce7924c9902"></a><!-- doxytag: member="ChessClock::status_" ref="ad2d4601fbc0dae0599a95ce7924c9902" args="" -->
679 <div class="memitem">
680 <div class="memproto">
681 <table class="memname">
683 <td class="memname"><a class="el" href="class_chess_clock.html#a4a819ca828d25e17dd5975a2ea935d28">RunningStatus</a> <a class="el" href="class_chess_clock.html#ad2d4601fbc0dae0599a95ce7924c9902">ChessClock::status_</a><code> [protected]</code></td>
689 <p>Current turn. </p>
691 <p>Definition at line <a class="el" href="chessclock_8h_source.html#l00127">127</a> of file <a class="el" href="chessclock_8h_source.html">chessclock.h</a>.</p>
695 <a class="anchor" id="abbce62e8c796244cadb1a5413469ca1b"></a><!-- doxytag: member="ChessClock::timeAvailableBeforeTurn_" ref="abbce62e8c796244cadb1a5413469ca1b" args="" -->
696 <div class="memitem">
697 <div class="memproto">
698 <table class="memname">
700 <td class="memname">int <a class="el" href="class_chess_clock.html#abbce62e8c796244cadb1a5413469ca1b">ChessClock::timeAvailableBeforeTurn_</a><code> [protected]</code></td>
706 <p>Time played in this game BEFORE this turn msecs. </p>
708 <p>Definition at line <a class="el" href="chessclock_8h_source.html#l00131">131</a> of file <a class="el" href="chessclock_8h_source.html">chessclock.h</a>.</p>
712 <a class="anchor" id="a373e5774a0af5387c76006a1a24d770e"></a><!-- doxytag: member="ChessClock::timePlayedBeforeTurn_" ref="a373e5774a0af5387c76006a1a24d770e" args="" -->
713 <div class="memitem">
714 <div class="memproto">
715 <table class="memname">
717 <td class="memname">int <a class="el" href="class_chess_clock.html#a373e5774a0af5387c76006a1a24d770e">ChessClock::timePlayedBeforeTurn_</a><code> [protected]</code></td>
723 <p>Definition at line <a class="el" href="chessclock_8h_source.html#l00130">130</a> of file <a class="el" href="chessclock_8h_source.html">chessclock.h</a>.</p>
727 <a class="anchor" id="aba90e7b968a5d27fc8653f7690344f8d"></a><!-- doxytag: member="ChessClock::turn_" ref="aba90e7b968a5d27fc8653f7690344f8d" args="" -->
728 <div class="memitem">
729 <div class="memproto">
730 <table class="memname">
732 <td class="memname">int <a class="el" href="class_chess_clock.html#aba90e7b968a5d27fc8653f7690344f8d">ChessClock::turn_</a><code> [protected]</code></td>
738 <p>Is player losed because of timeout. </p>
740 <p>Definition at line <a class="el" href="chessclock_8h_source.html#l00126">126</a> of file <a class="el" href="chessclock_8h_source.html">chessclock.h</a>.</p>
744 <a class="anchor" id="a848e42d72b3470578f0f958106894b4f"></a><!-- doxytag: member="ChessClock::UPDATEINTERVAL" ref="a848e42d72b3470578f0f958106894b4f" args="" -->
745 <div class="memitem">
746 <div class="memproto">
747 <table class="memname">
749 <td class="memname">const int <a class="el" href="class_chess_clock.html#a848e42d72b3470578f0f958106894b4f">ChessClock::UPDATEINTERVAL</a> = 1000<code> [static, protected]</code></td>
755 <p>Definition at line <a class="el" href="chessclock_8h_source.html#l00138">138</a> of file <a class="el" href="chessclock_8h_source.html">chessclock.h</a>.</p>
759 <a class="anchor" id="a3493e745462457ebf5660754fe333fd2"></a><!-- doxytag: member="ChessClock::updateTimer_" ref="a3493e745462457ebf5660754fe333fd2" args="" -->
760 <div class="memitem">
761 <div class="memproto">
762 <table class="memname">
764 <td class="memname">QTimer <a class="el" href="class_chess_clock.html#a3493e745462457ebf5660754fe333fd2">ChessClock::updateTimer_</a><code> [protected]</code></td>
770 <p>Definition at line <a class="el" href="chessclock_8h_source.html#l00136">136</a> of file <a class="el" href="chessclock_8h_source.html">chessclock.h</a>.</p>
774 <hr/>The documentation for this class was generated from the following files:<ul>
775 <li>/holvi/arto/ohjelmointi/ChessClock/chessclock/classes/<a class="el" href="chessclock_8h_source.html">chessclock.h</a></li>
776 <li>/holvi/arto/ohjelmointi/ChessClock/chessclock/classes/<a class="el" href="chessclock_8cpp_source.html">chessclock.cpp</a></li>
779 <!--- window showing the filter options -->
780 <div id="MSearchSelectWindow"
781 onmouseover="return searchBox.OnSearchSelectShow()"
782 onmouseout="return searchBox.OnSearchSelectHide()"
783 onkeydown="return searchBox.OnSearchSelectKey(event)">
784 <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerator</a></div>
786 <!-- iframe showing the search results (closed by default) -->
787 <div id="MSearchResultsWindow">
788 <iframe src="" frameborder="0"
789 name="MSearchResults" id="MSearchResults">
793 <hr class="footer"/><address style="text-align: right;"><small>Generated on Thu Aug 19 21:04:20 2010 for Chess Clock by
794 <a href="http://www.doxygen.org/index.html">
795 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>