harbour-boxing-timer/documentation/html/boxingsettings_8h_source.html

97 lines
25 KiB
HTML
Raw Permalink Normal View History

2017-08-21 21:04:30 +02:00
<!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">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Boxing Timer: src/boxingsettings.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="harbour-boxing-timer.png"/></td>
2017-08-21 21:04:30 +02:00
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Boxing Timer
&#160;<span id="projectnumber">0.1a</span>
2017-08-21 21:04:30 +02:00
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">boxingsettings.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="boxingsettings_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="preprocessor">#ifndef BOXINGSETTINGS_H</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor">#define BOXINGSETTINGS_H</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="preprocessor">#include &lt;QString&gt;</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="preprocessor">#include &lt;QStringList&gt;</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="preprocessor">#include &lt;QSettings&gt;</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="preprocessor">#include &lt;QList&gt;</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#ifdef QT_DEBUG</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="preprocessor"> #include &lt;QDebug&gt;</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="class_boxing_settings.html"> 20</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_boxing_settings.html">BoxingSettings</a> : <span class="keyword">public</span> QSettings {</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; Q_OBJECT</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160; Q_PROPERTY(QString preset READ <a class="code" href="class_boxing_settings.html#a2d03c793ed7ad6e97894e21b1f85105b">getPreset</a> WRITE <a class="code" href="class_boxing_settings.html#a71e6d017856266fa95b07ed0030ed05b">setPreset</a> NOTIFY <a class="code" href="class_boxing_settings.html#a811dbd6c80f86ad219bbb9166571a2e9">presetChanged</a>)</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; Q_PROPERTY(QString presetName READ <a class="code" href="class_boxing_settings.html#ac0641004a9f244dcce8056c722685065">getPresetName</a> NOTIFY presetChanged)</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; Q_PROPERTY(<span class="keywordtype">int</span> rounds READ <a class="code" href="class_boxing_settings.html#ae57079ed791d793bfb310712063b1dab">getRounds</a> WRITE <a class="code" href="class_boxing_settings.html#a5fee80840f4bfe8cb0fa95dea161e586">setRounds</a> NOTIFY presetChanged)</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; Q_PROPERTY(<span class="keywordtype">int</span> roundsMs READ <a class="code" href="class_boxing_settings.html#a2b9ff4ab1dbd14f5e8f37b88677e73f4">getRoundMilliseconds</a> WRITE <a class="code" href="class_boxing_settings.html#aaa691ab3a2fa5d1812975207b7e9f9ed">setRoundMilliseconds</a> NOTIFY presetChanged)</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; Q_PROPERTY(<span class="keywordtype">int</span> restMs READ <a class="code" href="class_boxing_settings.html#a84fd6052ef19488b015638c68fa2be72">getRestMilliseconds</a> WRITE <a class="code" href="class_boxing_settings.html#ad7c283d2b4ebe1333c1680a0fd19cb0c">setRestMilliseconds</a> NOTIFY presetChanged)</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; Q_PROPERTY(QList&lt;int&gt; innerTimers READ <a class="code" href="class_bo
<div class="ttc" id="class_boxing_settings_html_a71e6d017856266fa95b07ed0030ed05b"><div class="ttname"><a href="class_boxing_settings.html#a71e6d017856266fa95b07ed0030ed05b">BoxingSettings::setPreset</a></div><div class="ttdeci">void setPreset(const QString &amp;preset)</div><div class="ttdoc">Setter for preset. </div><div class="ttdef"><b>Definition:</b> boxingsettings.cpp:26</div></div>
<div class="ttc" id="class_boxing_settings_html_a2d03c793ed7ad6e97894e21b1f85105b"><div class="ttname"><a href="class_boxing_settings.html#a2d03c793ed7ad6e97894e21b1f85105b">BoxingSettings::getPreset</a></div><div class="ttdeci">QString getPreset()</div><div class="ttdef"><b>Definition:</b> boxingsettings.h:139</div></div>
<div class="ttc" id="class_boxing_settings_html_a507b3038f2851cff0d17fffc027019de"><div class="ttname"><a href="class_boxing_settings.html#a507b3038f2851cff0d17fffc027019de">BoxingSettings::presetsList</a></div><div class="ttdeci">Q_INVOKABLE const QStringList presetsList()</div><div class="ttdef"><b>Definition:</b> boxingsettings.cpp:90</div></div>
<div class="ttc" id="class_boxing_settings_html_abdabae9cd200706c2d207ada15b1c04c"><div class="ttname"><a href="class_boxing_settings.html#abdabae9cd200706c2d207ada15b1c04c">BoxingSettings::getInnerTimers</a></div><div class="ttdeci">QList&lt; int &gt; getInnerTimers()</div><div class="ttdoc">gerInnerTimers() </div><div class="ttdef"><b>Definition:</b> boxingsettings.h:132</div></div>
<div class="ttc" id="class_boxing_settings_html_a5fee80840f4bfe8cb0fa95dea161e586"><div class="ttname"><a href="class_boxing_settings.html#a5fee80840f4bfe8cb0fa95dea161e586">BoxingSettings::setRounds</a></div><div class="ttdeci">void setRounds(const int &amp;rounds)</div><div class="ttdoc">Setter for number of rounds. </div><div class="ttdef"><b>Definition:</b> boxingsettings.h:154</div></div>
2017-08-21 21:04:30 +02:00
<div class="ttc" id="class_boxing_settings_html_a811dbd6c80f86ad219bbb9166571a2e9"><div class="ttname"><a href="class_boxing_settings.html#a811dbd6c80f86ad219bbb9166571a2e9">BoxingSettings::presetChanged</a></div><div class="ttdeci">void presetChanged()</div></div>
<div class="ttc" id="class_boxing_settings_html_a84fd6052ef19488b015638c68fa2be72"><div class="ttname"><a href="class_boxing_settings.html#a84fd6052ef19488b015638c68fa2be72">BoxingSettings::getRestMilliseconds</a></div><div class="ttdeci">int getRestMilliseconds()</div><div class="ttdef"><b>Definition:</b> boxingsettings.h:125</div></div>
<div class="ttc" id="class_boxing_settings_html_a2b9ff4ab1dbd14f5e8f37b88677e73f4"><div class="ttname"><a href="class_boxing_settings.html#a2b9ff4ab1dbd14f5e8f37b88677e73f4">BoxingSettings::getRoundMilliseconds</a></div><div class="ttdeci">int getRoundMilliseconds()</div><div class="ttdef"><b>Definition:</b> boxingsettings.h:118</div></div>
<div class="ttc" id="class_boxing_settings_html_a6475be7b9b7eacc3b4a9ca853311b5a9"><div class="ttname"><a href="class_boxing_settings.html#a6475be7b9b7eacc3b4a9ca853311b5a9">BoxingSettings::deletePreset</a></div><div class="ttdeci">Q_INVOKABLE void deletePreset(const QString &amp;name)</div><div class="ttdoc">Delete a specified preset. </div><div class="ttdef"><b>Definition:</b> boxingsettings.cpp:78</div></div>
<div class="ttc" id="class_boxing_settings_html_ac0641004a9f244dcce8056c722685065"><div class="ttname"><a href="class_boxing_settings.html#ac0641004a9f244dcce8056c722685065">BoxingSettings::getPresetName</a></div><div class="ttdeci">QString getPresetName()</div><div class="ttdef"><b>Definition:</b> boxingsettings.h:146</div></div>
<div class="ttc" id="class_boxing_settings_html_a7ddc31fa4c9bea682674cb938d2d9e24"><div class="ttname"><a href="class_boxing_settings.html#a7ddc31fa4c9bea682674cb938d2d9e24">BoxingSettings::getInnerTimer</a></div><div class="ttdeci">Q_INVOKABLE int getInnerTimer(const int &amp;index)</div><div class="ttdoc">getInnerTimer(const int &amp;index) </div><div class="ttdef"><b>Definition:</b> boxingsettings.cpp:100</div></div>
<div class="ttc" id="class_boxing_settings_html_a8402eca09f44d4b3773ac1fd12e8dcda"><div class="ttname"><a href="class_boxing_settings.html#a8402eca09f44d4b3773ac1fd12e8dcda">BoxingSettings::savePreset</a></div><div class="ttdeci">Q_INVOKABLE void savePreset(const QString &amp;name, const int &amp;rounds, const int &amp;roundMilliseconds, const int &amp;restMilliseconds, const QList&lt; int &gt; &amp;innerTimers)</div><div class="ttdoc">Save or override settings about specific preset. </div><div class="ttdef"><b>Definition:</b> boxingsettings.cpp:64</div></div>
<div class="ttc" id="class_boxing_settings_html_a62af206ef42670b751e0cec59c206896"><div class="ttname"><a href="class_boxing_settings.html#a62af206ef42670b751e0cec59c206896">BoxingSettings::BoxingSettings</a></div><div class="ttdeci">BoxingSettings()</div><div class="ttdef"><b>Definition:</b> boxingsettings.cpp:6</div></div>
<div class="ttc" id="class_boxing_settings_html_ae57079ed791d793bfb310712063b1dab"><div class="ttname"><a href="class_boxing_settings.html#ae57079ed791d793bfb310712063b1dab">BoxingSettings::getRounds</a></div><div class="ttdeci">int getRounds()</div><div class="ttdef"><b>Definition:</b> boxingsettings.h:111</div></div>
<div class="ttc" id="class_boxing_settings_html"><div class="ttname"><a href="class_boxing_settings.html">BoxingSettings</a></div><div class="ttdoc">Handle settings about timer. Can save, load and delete a specific preset. </div><div class="ttdef"><b>Definition:</b> boxingsettings.h:20</div></div>
<div class="ttc" id="class_boxing_settings_html_aaa691ab3a2fa5d1812975207b7e9f9ed"><div class="ttname"><a href="class_boxing_settings.html#aaa691ab3a2fa5d1812975207b7e9f9ed">BoxingSettings::setRoundMilliseconds</a></div><div class="ttdeci">void setRoundMilliseconds(const int &amp;roundMilliseconds)</div><div class="ttdoc">Setter for duration of round (in milliseconds) </div><div class="ttdef"><b>Definition:</b> boxingsettings.h:162</div></div>
2017-08-21 21:04:30 +02:00
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>