|
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/sharedintermediator.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/sharedintermediator.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 __SHARED_INTERMEDIATOR_H__</span> |
|
17 <a name="l00007"></a>00007 <span class="preprocessor"></span><span class="preprocessor">#define __SHARED_INTERMEDIATOR_H__</span> |
|
18 <a name="l00008"></a>00008 <span class="preprocessor"></span> |
|
19 <a name="l00009"></a>00009 <span class="preprocessor">#include <e32std.h></span> |
|
20 <a name="l00010"></a>00010 <span class="preprocessor">#include <e32base.h></span> |
|
21 <a name="l00011"></a>00011 <span class="preprocessor">#include <badesca.h></span> <span class="comment">// CArrayFixFlat</span> |
|
22 <a name="l00012"></a>00012 |
|
23 <a name="l00013"></a>00013 <span class="comment">// FORWARD DECLARATIONS</span> |
|
24 <a name="l00014"></a>00014 <span class="keyword">class </span><a class="code" href="class_t_bluetooth_info.html">TBluetoothInfo</a>; |
|
25 <a name="l00015"></a>00015 <span class="keyword">class </span><a class="code" href="class_c_device_list_container.html">CDeviceListContainer</a>; |
|
26 <a name="l00016"></a>00016 <span class="keyword">class </span><a class="code" href="class_c_bluetooth_refresh_timer.html">CBluetoothRefreshTimer</a>; |
|
27 <a name="l00017"></a>00017 <span class="keyword">class </span><a class="code" href="class_c_thread_a_o_app_ui.html">CThreadAOAppUi</a>; |
|
28 <a name="l00018"></a>00018 |
|
29 <a name="l00019"></a>00019 <span class="comment">// CLASS DECLARATION</span> |
|
30 <a name="l00020"></a>00020 |
|
31 <a name="l00025"></a><a class="code" href="class_c_shared_intermediator.html">00025</a> <span class="keyword">class </span><a class="code" href="class_c_shared_intermediator.html">CSharedIntermediator</a> : <span class="keyword">public</span> CBase |
|
32 <a name="l00026"></a>00026 { |
|
33 <a name="l00027"></a>00027 <span class="keyword">public</span>: |
|
34 <a name="l00028"></a>00028 |
|
35 <a name="l00036"></a>00036 <span class="keyword">static</span> <a class="code" href="class_c_shared_intermediator.html">CSharedIntermediator</a>* <a class="code" href="class_c_shared_intermediator.html#a57ac0686f87c29e49149a38809b990f4">NewL</a>(<a class="code" href="class_c_device_list_container.html">CDeviceListContainer</a>* aView); |
|
36 <a name="l00037"></a>00037 |
|
37 <a name="l00042"></a>00042 <span class="keyword">static</span> <a class="code" href="class_c_shared_intermediator.html">CSharedIntermediator</a>* <a class="code" href="class_c_shared_intermediator.html#adf971a6fd4ffe1bc850a028a975f0cbc">NewLC</a>(<a class="code" href="class_c_device_list_container.html">CDeviceListContainer</a>* aView); |
|
38 <a name="l00043"></a>00043 |
|
39 <a name="l00050"></a>00050 <a class="code" href="class_c_shared_intermediator.html#a11fb8f1e5489e3762e75f257b937e014">~CSharedIntermediator</a>(); |
|
40 <a name="l00051"></a>00051 |
|
41 <a name="l00060"></a>00060 <span class="keywordtype">void</span> <a class="code" href="class_c_shared_intermediator.html#a8c4ec9ad89fd0b9168c50472fa3e1ec7">AddBluetoothInfoL</a>(<a class="code" href="class_t_bluetooth_info.html">TBluetoothInfo</a>& aBtInfoElement); |
|
42 <a name="l00061"></a>00061 |
|
43 <a name="l00067"></a>00067 <span class="keywordtype">void</span> <a class="code" href="class_c_shared_intermediator.html#a22888d5681085c1321e3e3890bc0c780">ResetArray</a>(); |
|
44 <a name="l00068"></a>00068 |
|
45 <a name="l00076"></a>00076 <span class="keywordtype">void</span> <a class="code" href="class_c_shared_intermediator.html#accce976d88b563b511fee0754aac51d7">GetAddress</a>(TDes& aAddress, TInt aIndex); |
|
46 <a name="l00077"></a>00077 |
|
47 <a name="l00086"></a>00086 <span class="keywordtype">void</span> <a class="code" href="class_c_shared_intermediator.html#a90e24ea996df35031bcee2bd575abbcb">SetStopSearching</a>(<span class="keywordtype">bool</span> aStopSearching); |
|
48 <a name="l00087"></a>00087 |
|
49 <a name="l00095"></a>00095 TBool <a class="code" href="class_c_shared_intermediator.html#a8d00c726b3de0ad952e32d0ed9a89364">StopSearching</a>(); |
|
50 <a name="l00096"></a>00096 |
|
51 <a name="l00104"></a>00104 <a class="code" href="class_c_bluetooth_refresh_timer.html">CBluetoothRefreshTimer</a>* <a class="code" href="class_c_shared_intermediator.html#a2914f06c89de0dc1c1477b5f3f0a73fb">BTRefreshTimerPtr</a>(); |
|
52 <a name="l00105"></a>00105 |
|
53 <a name="l00114"></a>00114 <span class="keywordtype">void</span> <a class="code" href="class_c_shared_intermediator.html#ac22c0341f159855b73e858050d6114b1">SetBTRefreshTimerPtr</a>(<a class="code" href="class_c_bluetooth_refresh_timer.html">CBluetoothRefreshTimer</a>* aTimer); |
|
54 <a name="l00115"></a>00115 |
|
55 <a name="l00123"></a>00123 <a class="code" href="class_c_device_list_container.html">CDeviceListContainer</a>* <a class="code" href="class_c_shared_intermediator.html#a1691ecc4482d77cd453f621163947d3c">DeviceListContainer</a>(); |
|
56 <a name="l00124"></a>00124 |
|
57 <a name="l00131"></a>00131 <span class="keywordtype">void</span> <a class="code" href="class_c_shared_intermediator.html#a9760bf8202ebb31c85f1a81fe48d2575">SetRefreshTimerInitlVal</a>(TInt aRefreshTime); |
|
58 <a name="l00132"></a>00132 |
|
59 <a name="l00139"></a>00139 TInt <a class="code" href="class_c_shared_intermediator.html#a028d5958e4503d319b594412bf118a3d">RefreshTimerInitlVal</a>(); |
|
60 <a name="l00140"></a>00140 |
|
61 <a name="l00141"></a>00141 <span class="keyword">private</span>: <span class="comment">// // Basic two-phase Symbian OS constructors</span> |
|
62 <a name="l00142"></a>00142 |
|
63 <a name="l00149"></a>00149 <a class="code" href="class_c_shared_intermediator.html">CSharedIntermediator</a>(<a class="code" href="class_c_device_list_container.html">CDeviceListContainer</a>* aView); |
|
64 <a name="l00150"></a>00150 |
|
65 <a name="l00154"></a>00154 <span class="keywordtype">void</span> ConstructL(); |
|
66 <a name="l00155"></a>00155 |
|
67 <a name="l00156"></a>00156 <span class="keyword">private</span>: <span class="comment">// data members</span> |
|
68 <a name="l00157"></a>00157 |
|
69 <a name="l00158"></a>00158 <span class="comment">// UI's container, that shows listbox</span> |
|
70 <a name="l00159"></a>00159 <a class="code" href="class_c_device_list_container.html">CDeviceListContainer</a>* iDeviceListContainer; |
|
71 <a name="l00160"></a>00160 <span class="comment">// True when program should be closed, false otherwise</span> |
|
72 <a name="l00161"></a>00161 TBool iStopSearching; |
|
73 <a name="l00162"></a>00162 <span class="comment">// Pointer to thread's blueetooth discoveryrefresh timer</span> |
|
74 <a name="l00163"></a>00163 <a class="code" href="class_c_bluetooth_refresh_timer.html">CBluetoothRefreshTimer</a>* iBTRefreshTimer; |
|
75 <a name="l00164"></a>00164 <span class="comment">// iBluetoothInfoArray is synchronized i.e. thread safe</span> |
|
76 <a name="l00165"></a>00165 RMutex iMutex; |
|
77 <a name="l00166"></a>00166 <span class="comment">// Contains all found bluetooth devices</span> |
|
78 <a name="l00167"></a>00167 CArrayFixFlat <TBluetoothInfo>* iBluetoothInfoArray; |
|
79 <a name="l00168"></a>00168 <span class="comment">// CBTRefreshTimer initial refresh time</span> |
|
80 <a name="l00169"></a>00169 TInt iInititialRefreshTime; |
|
81 <a name="l00170"></a>00170 }; |
|
82 <a name="l00171"></a>00171 |
|
83 <a name="l00172"></a>00172 <span class="preprocessor">#endif //__SHARED_INTERMEDIATOR_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> |