Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/bluetoothrefreshtimer_8h_source.html
author Graeme Price <GRAEME.PRICE@NOKIA.COM>
Fri, 15 Oct 2010 14:32:18 +0100
changeset 15 307f4279f433
parent 6 43e37759235e
permissions -rw-r--r--
Initial contribution of the Adaptation Documentation.

<!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"/>
<title>TB9.2 Example Applications: examples/ForumNokia/ThreadAndActiveObjectsEx/inc/bluetoothrefreshtimer.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.2 -->
<h1>examples/ForumNokia/ThreadAndActiveObjectsEx/inc/bluetoothrefreshtimer.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"> * Copyright © 2008 Nokia Corporation.</span>
<a name="l00003"></a>00003 <span class="comment"> */</span>
<a name="l00004"></a>00004 
<a name="l00005"></a>00005 
<a name="l00006"></a>00006 <span class="preprocessor">#ifndef __BT_REFRESH_TIMER_H__</span>
<a name="l00007"></a>00007 <span class="preprocessor"></span><span class="preprocessor">#define __BT_REFRESH_TIMER_H__</span>
<a name="l00008"></a>00008 <span class="preprocessor"></span>
<a name="l00009"></a>00009 <span class="comment">// INCLUDES</span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &quot;e32base.h&quot;</span> <span class="comment">//CTimer</span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;badesca.h&gt;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &quot;SharedIntermediator.h&quot;</span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &quot;BluetoothRefreshTimer.h&quot;</span>
<a name="l00014"></a>00014 
<a name="l00015"></a>00015 <span class="comment">//FORWARD DECLARATIONS</span>
<a name="l00016"></a>00016 <span class="keyword">class </span><a class="code" href="class_c_b_t_discoverer.html">CBTDiscoverer</a>;
<a name="l00017"></a>00017 
<a name="l00018"></a>00018 <span class="keyword">const</span> TInt KRefreshTimeMin = 5;
<a name="l00019"></a>00019 <span class="keyword">const</span> TInt KRefreshTimeDefault = 20; 
<a name="l00020"></a>00020 
<a name="l00021"></a>00021 <span class="comment">// CLASS DECLARATION</span>
<a name="l00022"></a>00022 
<a name="l00026"></a><a class="code" href="class_c_bluetooth_refresh_timer.html">00026</a> <span class="keyword">class </span><a class="code" href="class_c_bluetooth_refresh_timer.html">CBluetoothRefreshTimer</a> :
<a name="l00027"></a>00027         <span class="keyword">public</span> CTimer
<a name="l00028"></a>00028         {
<a name="l00029"></a>00029 <span class="keyword">public</span>: 
<a name="l00030"></a>00030 
<a name="l00039"></a>00039         <span class="keyword">static</span> <a class="code" href="class_c_bluetooth_refresh_timer.html">CBluetoothRefreshTimer</a>* <a class="code" href="class_c_bluetooth_refresh_timer.html#a122b128888ef9a86b0a4710c1459b3e2">NewL</a>( <a class="code" href="class_c_shared_intermediator.html">CSharedIntermediator</a>* aSMediator,
<a name="l00040"></a>00040                                                     CActiveSchedulerWait* aWait );
<a name="l00041"></a>00041 
<a name="l00045"></a>00045         <span class="keyword">static</span> <a class="code" href="class_c_bluetooth_refresh_timer.html">CBluetoothRefreshTimer</a>* <a class="code" href="class_c_bluetooth_refresh_timer.html#a10697495f27262ca4119892932cf5be3">NewLC</a>( <a class="code" href="class_c_shared_intermediator.html">CSharedIntermediator</a>* aSMediator,
<a name="l00046"></a>00046                                                      CActiveSchedulerWait* aWait );
<a name="l00047"></a>00047 
<a name="l00051"></a>00051         <a class="code" href="class_c_bluetooth_refresh_timer.html#afb7e5ebedb0475a393d24030ce4b91e4">~CBluetoothRefreshTimer</a>();
<a name="l00052"></a>00052 
<a name="l00058"></a>00058         <span class="keywordtype">void</span> <a class="code" href="class_c_bluetooth_refresh_timer.html#a0198ef7e6c6f86cc29f32cbd0105e5d9">DoCancel</a>();
<a name="l00059"></a>00059 
<a name="l00066"></a>00066         <span class="keywordtype">void</span> <a class="code" href="class_c_bluetooth_refresh_timer.html#a35ac4274326e25348a4c1536c6b13943">RunL</a>();
<a name="l00067"></a>00067 
<a name="l00075"></a>00075         TInt <a class="code" href="class_c_bluetooth_refresh_timer.html#a5dee58121e84aedaf3d21698add7216f">RunError</a>(TInt aError);
<a name="l00076"></a>00076 
<a name="l00082"></a>00082         <span class="keywordtype">void</span> <a class="code" href="class_c_bluetooth_refresh_timer.html#a8f2c8cdde49f04754b4ed693228da3e0">StartL</a>();
<a name="l00083"></a>00083 
<a name="l00089"></a>00089         <span class="keywordtype">void</span> <a class="code" href="class_c_bluetooth_refresh_timer.html#a270c66a754cbb2acc85c2b87709192b0">StopWaitLoop</a>();    
<a name="l00090"></a>00090 
<a name="l00097"></a>00097         <span class="keywordtype">void</span> <a class="code" href="class_c_bluetooth_refresh_timer.html#a8442cf6f32eb9cd6d10a0ca56fd8cada">SetRefreshTime</a>(TInt aRefreshTime);
<a name="l00098"></a>00098 
<a name="l00099"></a>00099 <span class="keyword">private</span>: <span class="comment">// Basic two-phase Symbian OS constructors</span>
<a name="l00100"></a>00100 
<a name="l00104"></a>00104         <span class="keywordtype">void</span> ConstructL();
<a name="l00105"></a>00105 
<a name="l00113"></a>00113         <a class="code" href="class_c_bluetooth_refresh_timer.html">CBluetoothRefreshTimer</a>( <a class="code" href="class_c_shared_intermediator.html">CSharedIntermediator</a>* aSMediator,  
<a name="l00114"></a>00114                               CActiveSchedulerWait* aWait );
<a name="l00115"></a>00115         
<a name="l00116"></a>00116 <span class="keyword">private</span>: <span class="comment">// data members    </span>
<a name="l00117"></a>00117 
<a name="l00118"></a>00118         <span class="comment">// Scheduler loop owner</span>
<a name="l00119"></a>00119         CActiveSchedulerWait* iWait;
<a name="l00120"></a>00120 
<a name="l00121"></a>00121         <span class="comment">// Data intermediator</span>
<a name="l00122"></a>00122         <a class="code" href="class_c_shared_intermediator.html">CSharedIntermediator</a>* iSMediator;
<a name="l00123"></a>00123 
<a name="l00124"></a>00124         <span class="comment">// Bluetooth device discoverer</span>
<a name="l00125"></a>00125         <a class="code" href="class_c_b_t_discoverer.html">CBTDiscoverer</a>* iBTDiscoverer;
<a name="l00126"></a>00126 
<a name="l00127"></a>00127         <span class="comment">// Time between refresh</span>
<a name="l00128"></a>00128         TInt iRefreshTime;
<a name="l00129"></a>00129 
<a name="l00130"></a>00130         <span class="comment">// Time that has passed from the previous refresh</span>
<a name="l00131"></a>00131         TInt iTime;
<a name="l00132"></a>00132         };
<a name="l00133"></a>00133 
<a name="l00134"></a>00134 <span class="preprocessor">#endif // __BT_REFRESH_TIMER_H__</span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
</body>
</html>