Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/sharedintermediator_8h_source.html
author Dominic Pinkman <dominic.pinkman@nokia.com>
Fri, 13 Aug 2010 16:47:46 +0100
changeset 14 578be2adaf3e
parent 6 43e37759235e
permissions -rw-r--r--
Week 32 contribution of PDK documentation content. See release notes for details. Fixes bug Bug 3582

<!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/sharedintermediator.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/sharedintermediator.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 __SHARED_INTERMEDIATOR_H__</span>
<a name="l00007"></a>00007 <span class="preprocessor"></span><span class="preprocessor">#define __SHARED_INTERMEDIATOR_H__</span>
<a name="l00008"></a>00008 <span class="preprocessor"></span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &lt;e32std.h&gt;</span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &lt;e32base.h&gt;</span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;badesca.h&gt;</span> <span class="comment">// CArrayFixFlat</span>
<a name="l00012"></a>00012 
<a name="l00013"></a>00013 <span class="comment">// FORWARD DECLARATIONS</span>
<a name="l00014"></a>00014 <span class="keyword">class </span><a class="code" href="class_t_bluetooth_info.html">TBluetoothInfo</a>;
<a name="l00015"></a>00015 <span class="keyword">class </span><a class="code" href="class_c_device_list_container.html">CDeviceListContainer</a>;
<a name="l00016"></a>00016 <span class="keyword">class </span><a class="code" href="class_c_bluetooth_refresh_timer.html">CBluetoothRefreshTimer</a>;
<a name="l00017"></a>00017 <span class="keyword">class </span><a class="code" href="class_c_thread_a_o_app_ui.html">CThreadAOAppUi</a>;
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="comment">// CLASS DECLARATION</span>
<a name="l00020"></a>00020 
<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
<a name="l00026"></a>00026         {
<a name="l00027"></a>00027 <span class="keyword">public</span>:
<a name="l00028"></a>00028         
<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);
<a name="l00037"></a>00037 
<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);
<a name="l00043"></a>00043 
<a name="l00050"></a>00050         <a class="code" href="class_c_shared_intermediator.html#a11fb8f1e5489e3762e75f257b937e014">~CSharedIntermediator</a>();
<a name="l00051"></a>00051 
<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>&amp; aBtInfoElement);
<a name="l00061"></a>00061 
<a name="l00067"></a>00067         <span class="keywordtype">void</span> <a class="code" href="class_c_shared_intermediator.html#a22888d5681085c1321e3e3890bc0c780">ResetArray</a>();
<a name="l00068"></a>00068 
<a name="l00076"></a>00076         <span class="keywordtype">void</span> <a class="code" href="class_c_shared_intermediator.html#accce976d88b563b511fee0754aac51d7">GetAddress</a>(TDes&amp; aAddress, TInt aIndex);
<a name="l00077"></a>00077 
<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);
<a name="l00087"></a>00087 
<a name="l00095"></a>00095         TBool <a class="code" href="class_c_shared_intermediator.html#a8d00c726b3de0ad952e32d0ed9a89364">StopSearching</a>();
<a name="l00096"></a>00096 
<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>();
<a name="l00105"></a>00105 
<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);
<a name="l00115"></a>00115 
<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>();
<a name="l00124"></a>00124 
<a name="l00131"></a>00131         <span class="keywordtype">void</span> <a class="code" href="class_c_shared_intermediator.html#a9760bf8202ebb31c85f1a81fe48d2575">SetRefreshTimerInitlVal</a>(TInt aRefreshTime);
<a name="l00132"></a>00132 
<a name="l00139"></a>00139         TInt <a class="code" href="class_c_shared_intermediator.html#a028d5958e4503d319b594412bf118a3d">RefreshTimerInitlVal</a>();
<a name="l00140"></a>00140 
<a name="l00141"></a>00141 <span class="keyword">private</span>: <span class="comment">// // Basic two-phase Symbian OS constructors</span>
<a name="l00142"></a>00142 
<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);
<a name="l00150"></a>00150         
<a name="l00154"></a>00154         <span class="keywordtype">void</span> ConstructL();
<a name="l00155"></a>00155 
<a name="l00156"></a>00156 <span class="keyword">private</span>: <span class="comment">// data members</span>
<a name="l00157"></a>00157 
<a name="l00158"></a>00158         <span class="comment">// UI&#39;s container, that shows listbox</span>
<a name="l00159"></a>00159         <a class="code" href="class_c_device_list_container.html">CDeviceListContainer</a>* iDeviceListContainer;
<a name="l00160"></a>00160     <span class="comment">// True when program should be closed, false otherwise</span>
<a name="l00161"></a>00161         TBool iStopSearching;
<a name="l00162"></a>00162     <span class="comment">// Pointer to thread&#39;s blueetooth discoveryrefresh timer</span>
<a name="l00163"></a>00163         <a class="code" href="class_c_bluetooth_refresh_timer.html">CBluetoothRefreshTimer</a>* iBTRefreshTimer;
<a name="l00164"></a>00164     <span class="comment">// iBluetoothInfoArray is synchronized i.e. thread safe</span>
<a name="l00165"></a>00165         RMutex iMutex;
<a name="l00166"></a>00166         <span class="comment">// Contains all found bluetooth devices</span>
<a name="l00167"></a>00167         CArrayFixFlat &lt;TBluetoothInfo&gt;* iBluetoothInfoArray;
<a name="l00168"></a>00168         <span class="comment">// CBTRefreshTimer initial refresh time</span>
<a name="l00169"></a>00169         TInt iInititialRefreshTime;
<a name="l00170"></a>00170         };
<a name="l00171"></a>00171 
<a name="l00172"></a>00172 <span class="preprocessor">#endif  //__SHARED_INTERMEDIATOR_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>