Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/_bluetooth_p_m_p_example_engine_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/BluetoothPMPExample/inc/BluetoothPMPExampleEngine.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/BluetoothPMPExample/inc/BluetoothPMPExampleEngine.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 © 2009 Nokia Corporation.</span>
<a name="l00003"></a>00003 <span class="comment"> */</span>
<a name="l00004"></a>00004 
<a name="l00005"></a>00005 <span class="preprocessor">#ifndef BLUETOOTHPMPEXAMPLEENGINE_H</span>
<a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor">#define BLUETOOTHPMPEXAMPLEENGINE_H</span>
<a name="l00007"></a>00007 <span class="preprocessor"></span>
<a name="l00008"></a>00008 <span class="comment">// INCLUDES</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &lt;e32base.h&gt;</span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &lt;aknviewappui.h&gt;</span>
<a name="l00011"></a>00011 
<a name="l00012"></a>00012 <span class="preprocessor">#include &lt;coecntrl.h&gt;</span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &lt;es_sock.h&gt;</span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &lt;btdevice.h&gt;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#include &lt;bt_sock.h&gt;</span>
<a name="l00016"></a>00016 <span class="preprocessor">#include &lt;btsdp.h&gt;</span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &lt;btmanclient.h&gt;</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="preprocessor">#ifdef ENABLE_LIAC</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#include &lt;e32property.h&gt;</span>
<a name="l00021"></a>00021 <span class="preprocessor">#endif</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &quot;BluetoothPMPExample.hrh&quot;</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &quot;BluetoothPMPExampleRTEContainer.h&quot;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &quot;BluetoothPMPExampleAppUi.h&quot;</span>
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 <span class="preprocessor">#include &quot;Common.h&quot;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &quot;DeviceDiscoverer.h&quot;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &quot;ServiceDiscoverer.h&quot;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &quot;Listener.h&quot;</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &quot;Connector.h&quot;</span>
<a name="l00032"></a>00032 
<a name="l00033"></a>00033 <span class="comment">// maximum number of bluetooth device connections</span>
<a name="l00034"></a>00034 <span class="keyword">const</span> TInt KMaxConnectedDevices=7;
<a name="l00035"></a>00035 
<a name="l00036"></a>00036 <span class="comment">// length of label message buffer</span>
<a name="l00037"></a>00037 <span class="keyword">const</span> TInt KMsgLength = 384;
<a name="l00038"></a>00038 
<a name="l00039"></a>00039 <span class="comment">//avoiding magic numbers ;)</span>
<a name="l00040"></a>00040 <span class="keyword">const</span> TInt KThirty = 30;
<a name="l00041"></a>00041 <span class="keyword">const</span> TInt KTwenty = 20;
<a name="l00042"></a>00042 <span class="keyword">const</span> TInt KEighty = 80;
<a name="l00043"></a>00043 <span class="keyword">const</span> TInt KTwelve = 12;
<a name="l00044"></a>00044 <span class="keyword">const</span> TInt KForty = 40;
<a name="l00045"></a>00045 
<a name="l00046"></a>00046 <span class="comment">//the text displayed for devices with no name</span>
<a name="l00047"></a>00047 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KDeviceWithNoName,<span class="stringliteral">&quot;*Jane Doe*&quot;</span>);
<a name="l00048"></a>00048 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KNoServiceFound,<span class="stringliteral">&quot;No services found!\n&quot;</span>);
<a name="l00049"></a>00049 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KNewLine,<span class="stringliteral">&quot;\n&quot;</span>);
<a name="l00050"></a>00050 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KServiceFound,<span class="stringliteral">&quot;Found service on:\n&quot;</span>);
<a name="l00051"></a>00051 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KNoDevFound,<span class="stringliteral">&quot;\nNo devices found!&quot;</span>);
<a name="l00052"></a>00052 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KDevices,<span class="stringliteral">&quot; devices.&quot;</span>);
<a name="l00053"></a>00053 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KFoundTxt,<span class="stringliteral">&quot;Found &quot;</span>);
<a name="l00054"></a>00054 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KSecTxt,<span class="stringliteral">&quot; s.&quot;</span>);
<a name="l00055"></a>00055 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KTimeTxt,<span class="stringliteral">&quot;time &quot;</span>);
<a name="l00056"></a>00056 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KFormatStr,<span class="stringliteral">&quot;&lt; %S: %S\n&quot;</span>);
<a name="l00057"></a>00057 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KDisconMsg,<span class="stringliteral">&quot;Disconnected!\nSlave stopped.\n&quot;</span>);
<a name="l00058"></a>00058 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KDeviceDisconMsg,<span class="stringliteral">&quot;%S disconnected!\n&quot;</span>);
<a name="l00059"></a>00059 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KConnMsg,<span class="stringliteral">&quot;Connected!\n&quot;</span>);
<a name="l00060"></a>00060 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KFormatStr1,<span class="stringliteral">&quot;&lt; %S\n&quot;</span>);
<a name="l00061"></a>00061 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KFormatStr2,<span class="stringliteral">&quot;&gt; %S: %S\n&quot;</span>);
<a name="l00062"></a>00062 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KFormatStr3,<span class="stringliteral">&quot;&gt; %S\n&quot;</span>);
<a name="l00063"></a>00063 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KMessage,<span class="stringliteral">&quot;message&quot;</span>);
<a name="l00064"></a>00064 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KNoConns,<span class="stringliteral">&quot;No connections!&quot;</span>);
<a name="l00065"></a>00065 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KConnDevicesTxt,<span class="stringliteral">&quot;Connected devices:\n&quot;</span>);
<a name="l00066"></a>00066 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KConnectingTxt, <span class="stringliteral">&quot;Connecting...\n&quot;</span>);
<a name="l00067"></a>00067 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KDisconnDevicesTxt, <span class="stringliteral">&quot;Devices disconnected\n&quot;</span>);
<a name="l00068"></a>00068 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KSlaveInitCompTxt,<span class="stringliteral">&quot;\nSlave init complete!\nWaiting for connection.&quot;</span>);
<a name="l00069"></a>00069 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KListeningTxt,<span class="stringliteral">&quot;\nListening channel %d&quot;</span>);
<a name="l00070"></a>00070 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KSlaveInitTxt,<span class="stringliteral">&quot;Slave init..&quot;</span>);
<a name="l00071"></a>00071 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KDiscServicesTxt,<span class="stringliteral">&quot;Discovering services,\nplease wait...\n&quot;</span>);
<a name="l00072"></a>00072 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KDiscDevicesTxt,<span class="stringliteral">&quot;Discovering devices,\nplease wait...\n&quot;</span>);
<a name="l00073"></a>00073 
<a name="l00074"></a>00074 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KServiceDiscoveryError, <span class="stringliteral">&quot;Serv disco error:&quot;</span>);
<a name="l00075"></a>00075 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KTurningOn, <span class="stringliteral">&quot;Turning bt on&quot;</span>);
<a name="l00076"></a>00076 
<a name="l00077"></a>00077 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KLIACError, <span class="stringliteral">&quot;There was an erron on setting LIAC status: %d&quot;</span> );
<a name="l00078"></a>00078 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KLIACOn, <span class="stringliteral">&quot;LIAC has been enabled&quot;</span> );
<a name="l00079"></a>00079 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KLIACOff, <span class="stringliteral">&quot;LIAC has been disabled&quot;</span> );
<a name="l00080"></a>00080 
<a name="l00081"></a>00081 
<a name="l00082"></a>00082 <span class="comment">// FORWARD DECLARATIONS</span>
<a name="l00083"></a>00083 <span class="keyword">class </span>CBluetoothPMPExampleContainer;
<a name="l00084"></a>00084 <span class="keyword">class </span><a class="code" href="class_c_device_discoverer.html">CDeviceDiscoverer</a>;
<a name="l00085"></a>00085 <span class="keyword">class </span><a class="code" href="class_c_service_advertiser.html">CServiceAdvertiser</a>;
<a name="l00086"></a>00086 <span class="keyword">class </span><a class="code" href="class_c_service_discoverer.html">CServiceDiscoverer</a>;
<a name="l00087"></a>00087 <span class="keyword">class </span><a class="code" href="class_c_listener.html">CListener</a>;
<a name="l00088"></a>00088 <span class="keyword">class </span><a class="code" href="class_c_connector.html">CConnector</a>;
<a name="l00089"></a>00089 
<a name="l00090"></a>00090 
<a name="l00091"></a>00091 <span class="comment">// CLASS DECLARATION</span>
<a name="l00092"></a>00092 
<a name="l00097"></a><a class="code" href="class_c_bluetooth_p_m_p_example_engine.html">00097</a> <span class="keyword">class </span><a class="code" href="class_c_bluetooth_p_m_p_example_engine.html">CBluetoothPMPExampleEngine</a> : <span class="keyword">public</span> CBase,
<a name="l00098"></a>00098                                    <span class="keyword">public</span> <a class="code" href="class_m_listener_observer.html">MListenerObserver</a>,
<a name="l00099"></a>00099                                    <span class="keyword">public</span> <a class="code" href="class_m_connector_observer.html">MConnectorObserver</a>,
<a name="l00100"></a>00100                                    <span class="keyword">public</span> <a class="code" href="class_m_device_disco_observer.html">MDeviceDiscoObserver</a>,
<a name="l00101"></a>00101                                    <span class="keyword">public</span> <a class="code" href="class_m_service_disco_observer.html">MServiceDiscoObserver</a>
<a name="l00102"></a>00102 {
<a name="l00103"></a>00103 <span class="keyword">public</span>:
<a name="l00104"></a>00104 
<a name="l00111"></a>00111     <span class="keyword">static</span> <a class="code" href="class_c_bluetooth_p_m_p_example_engine.html">CBluetoothPMPExampleEngine</a>* <a class="code" href="class_c_bluetooth_p_m_p_example_engine.html#ad076e5044ee73884bef526125a0bdc94">NewL</a>(
<a name="l00112"></a>00112         <a class="code" href="class_c_bluetooth_p_m_p_example_app_ui.html">CBluetoothPMPExampleAppUi</a>&amp; <span class="comment">/* aAppUi */</span>);
<a name="l00113"></a>00113 
<a name="l00118"></a>00118     <span class="keyword">static</span> <a class="code" href="class_c_bluetooth_p_m_p_example_engine.html">CBluetoothPMPExampleEngine</a>* <a class="code" href="class_c_bluetooth_p_m_p_example_engine.html#a02c6ef91ce83a8c79b2096086fed7ec3">NewLC</a>(
<a name="l00119"></a>00119         <a class="code" href="class_c_bluetooth_p_m_p_example_app_ui.html">CBluetoothPMPExampleAppUi</a>&amp; <span class="comment">/* aAppUi */</span>);
<a name="l00120"></a>00120 
<a name="l00126"></a>00126     <a class="code" href="class_c_bluetooth_p_m_p_example_engine.html#affdae8cb6bfb0255fc9b1ac6554a1377">~CBluetoothPMPExampleEngine</a>();
<a name="l00127"></a>00127 
<a name="l00128"></a>00128 <span class="keyword">public</span>: <span class="comment">// New functions</span>
<a name="l00129"></a>00129 
<a name="l00136"></a>00136     <span class="keywordtype">void</span> <a class="code" href="class_c_bluetooth_p_m_p_example_engine.html#a263f56c4840a8dde0c200faf26ca892c">DiscoverDevicesL</a>();
<a name="l00137"></a>00137 
<a name="l00143"></a>00143     <span class="keywordtype">void</span> <a class="code" href="class_c_bluetooth_p_m_p_example_engine.html#aca469b2ff2b65a8d6e6bba8e8ef5c278">DiscoverServicesL</a>();
<a name="l00144"></a>00144 
<a name="l00152"></a>00152     <span class="keywordtype">void</span> <a class="code" href="class_c_bluetooth_p_m_p_example_engine.html#a5979059dabc0f80ae9476ce7bc1940f5">StartSlaveL</a>();
<a name="l00153"></a>00153 
<a name="l00154"></a>00154     <span class="keywordtype">void</span> StopSlaveL();
<a name="l00155"></a>00155     
<a name="l00162"></a>00162     <span class="keywordtype">void</span> <a class="code" href="class_c_bluetooth_p_m_p_example_engine.html#ae14feab4e96888e04cc167f26db0af94">SendMessageL</a>();
<a name="l00163"></a>00163 
<a name="l00170"></a>00170     <span class="keywordtype">void</span> <a class="code" href="class_c_bluetooth_p_m_p_example_engine.html#a5c23d69ce729c5eedaea3f6023a261f1">ConnectDevicesL</a>();
<a name="l00171"></a>00171 
<a name="l00177"></a>00177     <span class="keywordtype">void</span> <a class="code" href="class_c_bluetooth_p_m_p_example_engine.html#ab782ecd1a4f9ac6e0ec028a0e52aa3f9">DisconnectDevices</a>();
<a name="l00178"></a>00178 
<a name="l00184"></a>00184     <span class="keywordtype">void</span> <a class="code" href="class_c_bluetooth_p_m_p_example_engine.html#a9bc30d72f6cdc966d28b15cca6fefa60">ShowConnectedDevicesL</a>();
<a name="l00185"></a>00185 
<a name="l00193"></a>00193     <span class="keywordtype">void</span> <a class="code" href="class_c_bluetooth_p_m_p_example_engine.html#af9f31c0f0d6e3cb6274ce77858f36a52">HandleListenerDataReceivedL</a>(<span class="keyword">const</span> TDesC&amp; aData);
<a name="l00194"></a>00194 
<a name="l00203"></a>00203     <span class="keywordtype">void</span> <a class="code" href="class_c_bluetooth_p_m_p_example_engine.html#a0e2424a0b667fa35ea1e7b71fdfb0d3a">HandleConnectorDataReceivedL</a>(THostName aName, <span class="keyword">const</span> TDesC&amp; aData);
<a name="l00204"></a>00204     <span class="keywordtype">void</span> HandleConnectorErrorL(THostName aName, TInt aError);
<a name="l00211"></a>00211     <span class="keywordtype">void</span> <a class="code" href="class_c_bluetooth_p_m_p_example_engine.html#a5b07909876345153ab932050401c7d06">HandleListenerConnectedL</a>();
<a name="l00212"></a>00212 
<a name="l00219"></a>00219     <span class="keywordtype">void</span> <a class="code" href="class_c_bluetooth_p_m_p_example_engine.html#adb114bcd6cc5904f6b909e442f105119">HandleListenerDisconnectedL</a>();
<a name="l00220"></a>00220 
<a name="l00227"></a>00227     <span class="keywordtype">void</span> <a class="code" href="class_c_bluetooth_p_m_p_example_engine.html#a7ecfca73d42f467526141670e419a279">HandleDeviceDiscoveryComplete</a>(TInt aError);
<a name="l00228"></a>00228 
<a name="l00229"></a>00229     <span class="comment">/*</span>
<a name="l00230"></a>00230 <span class="comment">    * From MDeviceDiscoObserver</span>
<a name="l00231"></a>00231 <span class="comment">    */</span>
<a name="l00232"></a>00232     <span class="keywordtype">void</span> <a class="code" href="class_c_bluetooth_p_m_p_example_engine.html#afd72201cdfd08c33ad9778744bedaf84">DeviceDiscovered</a>(<span class="keyword">const</span> <a class="code" href="struct_t_device_data.html">TDeviceData</a> &amp;aDevice);
<a name="l00233"></a>00233 
<a name="l00240"></a>00240     <span class="keywordtype">void</span> <a class="code" href="class_c_bluetooth_p_m_p_example_engine.html#ae0ab462760a236a1b478d67b98d2d331">HandleServiceDiscoveryCompleteL</a>();
<a name="l00241"></a>00241 
<a name="l00247"></a>00247     <span class="keywordtype">void</span> <a class="code" href="class_c_bluetooth_p_m_p_example_engine.html#ae59d201d7207b0ea47c9998c657ed396">ReportServiceDiscoveryErrorL</a>(TInt aError);
<a name="l00248"></a>00248 
<a name="l00254"></a>00254     TBool <a class="code" href="class_c_bluetooth_p_m_p_example_engine.html#aa874a3fe38a3b45bde19ac3d736df005">HasConnections</a>();
<a name="l00255"></a>00255 
<a name="l00256"></a>00256 <span class="comment">/*</span>
<a name="l00257"></a>00257 <span class="comment"> * TurnBtOnL()</span>
<a name="l00258"></a>00258 <span class="comment"> * </span>
<a name="l00259"></a>00259 <span class="comment"> * discussion</span>
<a name="l00260"></a>00260 <span class="comment"> * Uses the Notifier API to ask the user to turn on Bluetooth</span>
<a name="l00261"></a>00261 <span class="comment"> * if it&#39;s not on already.</span>
<a name="l00262"></a>00262 <span class="comment"> * HasConnection()</span>
<a name="l00263"></a>00263 <span class="comment"> *</span>
<a name="l00264"></a>00264 <span class="comment"> * </span>
<a name="l00265"></a>00265 <span class="comment"> */</span>
<a name="l00266"></a>00266     <span class="keywordtype">void</span> TurnBtOnL();
<a name="l00267"></a>00267 
<a name="l00268"></a>00268 <span class="preprocessor">#ifdef ENABLE_LIAC</span>
<a name="l00269"></a>00269 <span class="preprocessor"></span>
<a name="l00276"></a>00276     <span class="keywordtype">void</span> SetLIAC( TBool aState );
<a name="l00277"></a>00277 
<a name="l00285"></a>00285     TBool LIAC();
<a name="l00286"></a>00286 <span class="preprocessor">#endif</span>
<a name="l00287"></a>00287 <span class="preprocessor"></span>
<a name="l00295"></a>00295     TBool <a class="code" href="class_c_bluetooth_p_m_p_example_engine.html#ab8730306be948567629204fc0d8cf0e2">IsDiscoveryActive</a>();
<a name="l00296"></a>00296 
<a name="l00304"></a>00304     <span class="keywordtype">void</span> <a class="code" href="class_c_bluetooth_p_m_p_example_engine.html#a0da1fc3e65e15ff7f175d5b880525aaf">StopDiscovery</a>();
<a name="l00305"></a>00305 
<a name="l00306"></a>00306 <span class="keyword">private</span>: <span class="comment">// in-class methods</span>
<a name="l00307"></a>00307 
<a name="l00317"></a>00317     <span class="keywordtype">void</span> ShowMessageL(<span class="keyword">const</span> TDesC&amp; <span class="comment">/* aMsg */</span>, TBool <span class="comment">/* aDrawLine=EFalse */</span>);
<a name="l00318"></a>00318 
<a name="l00319"></a>00319 
<a name="l00320"></a>00320 <span class="keyword">private</span>: <span class="comment">// Basic two-phase EPOC constructors</span>
<a name="l00321"></a>00321 
<a name="l00326"></a>00326     <span class="keywordtype">void</span> ConstructL();
<a name="l00327"></a>00327 
<a name="l00333"></a>00333     <a class="code" href="class_c_bluetooth_p_m_p_example_engine.html">CBluetoothPMPExampleEngine</a>(<a class="code" href="class_c_bluetooth_p_m_p_example_app_ui.html">CBluetoothPMPExampleAppUi</a>&amp; <span class="comment">/* aAppUi */</span>);
<a name="l00334"></a>00334 
<a name="l00335"></a>00335 
<a name="l00336"></a>00336 <span class="keyword">public</span>:     <span class="comment">// data members</span>
<a name="l00337"></a>00337 
<a name="l00338"></a>00338     <span class="comment">// listener</span>
<a name="l00339"></a>00339     <a class="code" href="class_c_listener.html">CListener</a>* iListener;
<a name="l00340"></a>00340     <span class="comment">// device discoverer</span>
<a name="l00341"></a>00341     <a class="code" href="class_c_device_discoverer.html">CDeviceDiscoverer</a>* iDeviceDiscoverer;
<a name="l00342"></a>00342     <span class="comment">// service advertiser</span>
<a name="l00343"></a>00343     <a class="code" href="class_c_service_advertiser.html">CServiceAdvertiser</a>* iServiceAdvertiser;
<a name="l00344"></a>00344     <span class="comment">// service discoverer</span>
<a name="l00345"></a>00345     <a class="code" href="class_c_service_discoverer.html">CServiceDiscoverer</a>* iServiceDiscoverer;
<a name="l00346"></a>00346     <span class="comment">// true if the application is acting as a slave</span>
<a name="l00347"></a>00347     TBool iIsSlave;
<a name="l00348"></a>00348     <span class="comment">// true if the application is acting as a master</span>
<a name="l00349"></a>00349     TBool iIsMaster;
<a name="l00350"></a>00350 
<a name="l00351"></a>00351 <span class="keyword">private</span>:    <span class="comment">// data members</span>
<a name="l00352"></a>00352 
<a name="l00353"></a>00353     <span class="comment">// application UI object reference</span>
<a name="l00354"></a>00354     <a class="code" href="class_c_bluetooth_p_m_p_example_app_ui.html">CBluetoothPMPExampleAppUi</a>&amp; iAppUi;
<a name="l00355"></a>00355     <span class="comment">// socket server</span>
<a name="l00356"></a>00356     RSocketServ iSocketServ;
<a name="l00357"></a>00357     <span class="comment">// array holding the connectors</span>
<a name="l00358"></a>00358     TFixedArray&lt;CConnector* ,KMaxConnectedDevices&gt; iConnectedDevices;
<a name="l00359"></a>00359     
<a name="l00360"></a>00360     <span class="comment">// device data list reference</span>
<a name="l00361"></a>00361     TDeviceDataList iDevDataList;
<a name="l00362"></a>00362     <span class="comment">// number of slave connections master has</span>
<a name="l00363"></a>00363     TInt iConnectedDeviceCount;
<a name="l00364"></a>00364     <span class="comment">//for timing device disco:</span>
<a name="l00365"></a>00365     TTime iStartTime;
<a name="l00366"></a>00366     TTime iEndTime;
<a name="l00367"></a>00367     
<a name="l00368"></a>00368     TBuf&lt;KTwenty&gt; iMsgtext;
<a name="l00369"></a>00369     TBuf8&lt;KTwenty&gt; iMsgtext8;
<a name="l00370"></a>00370 
<a name="l00371"></a>00371 
<a name="l00372"></a>00372 <span class="preprocessor">#ifdef ENABLE_LIAC</span>
<a name="l00373"></a>00373 <span class="preprocessor"></span>    <span class="comment">//property for LimitedDiscoverableStatus</span>
<a name="l00374"></a>00374     RProperty   iProperty;
<a name="l00375"></a>00375 
<a name="l00376"></a>00376     <span class="comment">//flag if LimitedDiscoverableStatus is enabled</span>
<a name="l00377"></a>00377     TBool iLIAC;
<a name="l00378"></a>00378 <span class="preprocessor">#endif</span>
<a name="l00379"></a>00379 <span class="preprocessor"></span>
<a name="l00380"></a>00380 };
<a name="l00381"></a>00381 
<a name="l00382"></a>00382 <span class="preprocessor">#endif</span>
<a name="l00383"></a>00383 <span class="preprocessor"></span>
<a name="l00384"></a>00384 <span class="comment">// End of File</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>