|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
2 <html xmlns="http://www.w3.org/1999/xhtml"> |
|
3 <head> |
|
4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
|
5 <title>TB9.2 Example Applications: examples/ForumNokia/ThreadAndActiveObjectsEx/inc/bluetoothrefreshtimer.h Source File</title> |
|
6 <link href="tabs.css" rel="stylesheet" type="text/css"/> |
|
7 <link href="doxygen.css" rel="stylesheet" type="text/css"/> |
|
8 </head> |
|
9 <body> |
|
10 <!-- Generated by Doxygen 1.6.2 --> |
|
11 <h1>examples/ForumNokia/ThreadAndActiveObjectsEx/inc/bluetoothrefreshtimer.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span> |
|
12 <a name="l00002"></a>00002 <span class="comment"> * Copyright © 2008 Nokia Corporation.</span> |
|
13 <a name="l00003"></a>00003 <span class="comment"> */</span> |
|
14 <a name="l00004"></a>00004 |
|
15 <a name="l00005"></a>00005 |
|
16 <a name="l00006"></a>00006 <span class="preprocessor">#ifndef __BT_REFRESH_TIMER_H__</span> |
|
17 <a name="l00007"></a>00007 <span class="preprocessor"></span><span class="preprocessor">#define __BT_REFRESH_TIMER_H__</span> |
|
18 <a name="l00008"></a>00008 <span class="preprocessor"></span> |
|
19 <a name="l00009"></a>00009 <span class="comment">// INCLUDES</span> |
|
20 <a name="l00010"></a>00010 <span class="preprocessor">#include "e32base.h"</span> <span class="comment">//CTimer</span> |
|
21 <a name="l00011"></a>00011 <span class="preprocessor">#include <badesca.h></span> |
|
22 <a name="l00012"></a>00012 <span class="preprocessor">#include "SharedIntermediator.h"</span> |
|
23 <a name="l00013"></a>00013 <span class="preprocessor">#include "BluetoothRefreshTimer.h"</span> |
|
24 <a name="l00014"></a>00014 |
|
25 <a name="l00015"></a>00015 <span class="comment">//FORWARD DECLARATIONS</span> |
|
26 <a name="l00016"></a>00016 <span class="keyword">class </span><a class="code" href="class_c_b_t_discoverer.html">CBTDiscoverer</a>; |
|
27 <a name="l00017"></a>00017 |
|
28 <a name="l00018"></a>00018 <span class="keyword">const</span> TInt KRefreshTimeMin = 5; |
|
29 <a name="l00019"></a>00019 <span class="keyword">const</span> TInt KRefreshTimeDefault = 20; |
|
30 <a name="l00020"></a>00020 |
|
31 <a name="l00021"></a>00021 <span class="comment">// CLASS DECLARATION</span> |
|
32 <a name="l00022"></a>00022 |
|
33 <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> : |
|
34 <a name="l00027"></a>00027 <span class="keyword">public</span> CTimer |
|
35 <a name="l00028"></a>00028 { |
|
36 <a name="l00029"></a>00029 <span class="keyword">public</span>: |
|
37 <a name="l00030"></a>00030 |
|
38 <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, |
|
39 <a name="l00040"></a>00040 CActiveSchedulerWait* aWait ); |
|
40 <a name="l00041"></a>00041 |
|
41 <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, |
|
42 <a name="l00046"></a>00046 CActiveSchedulerWait* aWait ); |
|
43 <a name="l00047"></a>00047 |
|
44 <a name="l00051"></a>00051 <a class="code" href="class_c_bluetooth_refresh_timer.html#afb7e5ebedb0475a393d24030ce4b91e4">~CBluetoothRefreshTimer</a>(); |
|
45 <a name="l00052"></a>00052 |
|
46 <a name="l00058"></a>00058 <span class="keywordtype">void</span> <a class="code" href="class_c_bluetooth_refresh_timer.html#a0198ef7e6c6f86cc29f32cbd0105e5d9">DoCancel</a>(); |
|
47 <a name="l00059"></a>00059 |
|
48 <a name="l00066"></a>00066 <span class="keywordtype">void</span> <a class="code" href="class_c_bluetooth_refresh_timer.html#a35ac4274326e25348a4c1536c6b13943">RunL</a>(); |
|
49 <a name="l00067"></a>00067 |
|
50 <a name="l00075"></a>00075 TInt <a class="code" href="class_c_bluetooth_refresh_timer.html#a5dee58121e84aedaf3d21698add7216f">RunError</a>(TInt aError); |
|
51 <a name="l00076"></a>00076 |
|
52 <a name="l00082"></a>00082 <span class="keywordtype">void</span> <a class="code" href="class_c_bluetooth_refresh_timer.html#a8f2c8cdde49f04754b4ed693228da3e0">StartL</a>(); |
|
53 <a name="l00083"></a>00083 |
|
54 <a name="l00089"></a>00089 <span class="keywordtype">void</span> <a class="code" href="class_c_bluetooth_refresh_timer.html#a270c66a754cbb2acc85c2b87709192b0">StopWaitLoop</a>(); |
|
55 <a name="l00090"></a>00090 |
|
56 <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); |
|
57 <a name="l00098"></a>00098 |
|
58 <a name="l00099"></a>00099 <span class="keyword">private</span>: <span class="comment">// Basic two-phase Symbian OS constructors</span> |
|
59 <a name="l00100"></a>00100 |
|
60 <a name="l00104"></a>00104 <span class="keywordtype">void</span> ConstructL(); |
|
61 <a name="l00105"></a>00105 |
|
62 <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, |
|
63 <a name="l00114"></a>00114 CActiveSchedulerWait* aWait ); |
|
64 <a name="l00115"></a>00115 |
|
65 <a name="l00116"></a>00116 <span class="keyword">private</span>: <span class="comment">// data members </span> |
|
66 <a name="l00117"></a>00117 |
|
67 <a name="l00118"></a>00118 <span class="comment">// Scheduler loop owner</span> |
|
68 <a name="l00119"></a>00119 CActiveSchedulerWait* iWait; |
|
69 <a name="l00120"></a>00120 |
|
70 <a name="l00121"></a>00121 <span class="comment">// Data intermediator</span> |
|
71 <a name="l00122"></a>00122 <a class="code" href="class_c_shared_intermediator.html">CSharedIntermediator</a>* iSMediator; |
|
72 <a name="l00123"></a>00123 |
|
73 <a name="l00124"></a>00124 <span class="comment">// Bluetooth device discoverer</span> |
|
74 <a name="l00125"></a>00125 <a class="code" href="class_c_b_t_discoverer.html">CBTDiscoverer</a>* iBTDiscoverer; |
|
75 <a name="l00126"></a>00126 |
|
76 <a name="l00127"></a>00127 <span class="comment">// Time between refresh</span> |
|
77 <a name="l00128"></a>00128 TInt iRefreshTime; |
|
78 <a name="l00129"></a>00129 |
|
79 <a name="l00130"></a>00130 <span class="comment">// Time that has passed from the previous refresh</span> |
|
80 <a name="l00131"></a>00131 TInt iTime; |
|
81 <a name="l00132"></a>00132 }; |
|
82 <a name="l00133"></a>00133 |
|
83 <a name="l00134"></a>00134 <span class="preprocessor">#endif // __BT_REFRESH_TIMER_H__</span> |
|
84 </pre></div></div> |
|
85 <hr size="1"/><address style="text-align: right;"><small>Generated by |
|
86 <a href="http://www.doxygen.org/index.html"> |
|
87 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address> |
|
88 </body> |
|
89 </html> |