Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/processserver_8h-source.html
author Dominic Pinkman <Dominic.Pinkman@Nokia.com>
Tue, 30 Mar 2010 11:42:04 +0100
changeset 4 4816d766a08a
parent 1 25a17d01db0c
permissions -rw-r--r--
Week 12 contribution of SDK documentation_content. See release notes for details. Fixes Bug 1892, Bug 1522, Bug 1520, Bug 394, Bug 1319, Bug 344, Bug 1897

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>TB10.1 Example Applications: examples/Base/IPC/AdvancedClientServerExample/ProcessServer/inc/processserver.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.3 -->
<h1>examples/Base/IPC/AdvancedClientServerExample/ProcessServer/inc/processserver.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).</span>
<a name="l00002"></a>00002 <span class="comment">// All rights reserved.</span>
<a name="l00003"></a>00003 <span class="comment">// This component and the accompanying materials are made available</span>
<a name="l00004"></a>00004 <span class="comment">// under the terms of "Eclipse Public License v1.0"</span>
<a name="l00005"></a>00005 <span class="comment">// which accompanies this distribution, and is available</span>
<a name="l00006"></a>00006 <span class="comment">// at the URL "http://www.eclipse.org/legal/epl-v10.html".</span>
<a name="l00007"></a>00007 <span class="comment">//</span>
<a name="l00008"></a>00008 <span class="comment">// Initial Contributors:</span>
<a name="l00009"></a>00009 <span class="comment">// Nokia Corporation - initial contribution.</span>
<a name="l00010"></a>00010 <span class="comment">//</span>
<a name="l00011"></a>00011 <span class="comment">// Contributors:</span>
<a name="l00012"></a>00012 <span class="comment">//</span>
<a name="l00013"></a>00013 <span class="comment">// Description:</span>
<a name="l00014"></a>00014 <span class="comment">//</span>
<a name="l00015"></a>00015 
<a name="l00016"></a>00016 <span class="preprocessor">#ifndef __PROCESSSERVER_H__</span>
<a name="l00017"></a>00017 <span class="preprocessor"></span><span class="preprocessor">#define __PROCESSSERVER_H__</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span>
<a name="l00019"></a>00019 <span class="preprocessor">#include &lt;e32base.h&gt;</span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &lt;e32std.h&gt;</span>
<a name="l00021"></a>00021 <span class="preprocessor">#include "shutdownserver.h"</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include "processclientserver.h"</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include "<a class="code" href="driver1_8h.html">driver1.h</a>"</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="keyword">class </span>CAsyncHandler; 
<a name="l00029"></a><a class="code" href="class_c_process_server.html">00029</a> <span class="keyword">class </span><a class="code" href="class_c_process_server.html">CProcessServer</a> : <span class="keyword">public</span> CServer2
<a name="l00030"></a>00030         {
<a name="l00031"></a>00031 <span class="keyword">public</span>:
<a name="l00035"></a><a class="code" href="class_c_process_server.html#82cab30ea5d500e0abc51d39a0889b38">00035</a>         <span class="keyword">enum</span> <a class="code" href="class_c_process_server.html#82cab30ea5d500e0abc51d39a0889b38">TDriverState</a>
<a name="l00036"></a>00036                 {
<a name="l00037"></a><a class="code" href="class_c_process_server.html#82cab30ea5d500e0abc51d39a0889b38febfde84b09cb7b3b4bfc1fe81587451">00037</a>                 <a class="code" href="class_c_process_server.html#82cab30ea5d500e0abc51d39a0889b38febfde84b09cb7b3b4bfc1fe81587451">EStateUnknown</a>,
<a name="l00038"></a><a class="code" href="class_c_process_server.html#82cab30ea5d500e0abc51d39a0889b38e0571fa5b49a37bdac4e3d6e5f6f30a1">00038</a>                 <a class="code" href="class_c_process_server.html#82cab30ea5d500e0abc51d39a0889b38e0571fa5b49a37bdac4e3d6e5f6f30a1">EDriverLoaded</a>,
<a name="l00039"></a><a class="code" href="class_c_process_server.html#82cab30ea5d500e0abc51d39a0889b38d1f2b7048e915bb24c249a40e10c500c">00039</a>                 <a class="code" href="class_c_process_server.html#82cab30ea5d500e0abc51d39a0889b38d1f2b7048e915bb24c249a40e10c500c">ELogicalChannelOpened</a>,
<a name="l00040"></a><a class="code" href="class_c_process_server.html#82cab30ea5d500e0abc51d39a0889b38946b4628ef31d91ded88495747be5902">00040</a>                 <a class="code" href="class_c_process_server.html#82cab30ea5d500e0abc51d39a0889b38946b4628ef31d91ded88495747be5902">ESendingData</a>,
<a name="l00041"></a><a class="code" href="class_c_process_server.html#82cab30ea5d500e0abc51d39a0889b385357bdbb689c819cd07b927e09b11e3f">00041</a>                 <a class="code" href="class_c_process_server.html#82cab30ea5d500e0abc51d39a0889b385357bdbb689c819cd07b927e09b11e3f">ELogicalChannelClosed</a>,
<a name="l00042"></a><a class="code" href="class_c_process_server.html#82cab30ea5d500e0abc51d39a0889b386156c4dd182e5386ec555f3da184fdfd">00042</a>                 <a class="code" href="class_c_process_server.html#82cab30ea5d500e0abc51d39a0889b386156c4dd182e5386ec555f3da184fdfd">EDriverUnloaded</a>
<a name="l00043"></a>00043                 };
<a name="l00047"></a>00047         <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_c_process_server.html#239278f30e2253b2d0827752355dbef2">NewLC</a>();
<a name="l00052"></a>00052         <a class="code" href="class_c_process_server.html#f9cff6818110c62a7ad6a1c19984297b">~CProcessServer</a>();
<a name="l00057"></a>00057         CSession2* <a class="code" href="class_c_process_server.html#0025005d37f3cc34dc8e181373980ce9">NewSessionL</a>(<span class="keyword">const</span> TVersion&amp; aVersion,<span class="keyword">const</span> RMessage2&amp; aMessage) <span class="keyword">const</span>;
<a name="l00062"></a>00062         <span class="keywordtype">void</span> <a class="code" href="class_c_process_server.html#d113263093aaa3489308e2ecc6f20c87">IncrementRefCount</a>();
<a name="l00067"></a>00067         <span class="keywordtype">void</span> <a class="code" href="class_c_process_server.html#cc9e2e8092c07e6fbf8aa4f866a1ba89">DecrementRefCount</a>();
<a name="l00071"></a>00071         TInt <a class="code" href="class_c_process_server.html#9333ba960d07b42c72d98466b01788ce">LoadDevice</a>();
<a name="l00075"></a>00075         TInt <a class="code" href="class_c_process_server.html#3e78b0766ff78223d4ccf77fa717b269">UnloadDevice</a>();
<a name="l00079"></a>00079         TInt <a class="code" href="class_c_process_server.html#1861af3b7073acf002b55520397c4678">OpenLogicalChannel</a>();
<a name="l00083"></a>00083         <span class="keywordtype">void</span> <a class="code" href="class_c_process_server.html#c381e3ac102f3c720ca1cffec2ab570d">CloseLogicalChannel</a>();
<a name="l00087"></a>00087         TInt <a class="code" href="class_c_process_server.html#a1e3677c879b6a531f67267ff63ec214">SendDataToDevice</a>(TRequestStatus&amp; aStatus, <span class="keyword">const</span> TDesC8&amp; aData);
<a name="l00091"></a>00091         <span class="keywordtype">void</span> <a class="code" href="class_c_process_server.html#853cb371c075e2f74ac3e28a9a66f38e">CancelSendData</a>();
<a name="l00095"></a>00095         <span class="keywordtype">void</span> <a class="code" href="class_c_process_server.html#6af5450445ef1f12826f88a24ec83043">UpdateDriverState</a>(<a class="code" href="class_c_process_server.html#82cab30ea5d500e0abc51d39a0889b38">TDriverState</a> aState);
<a name="l00096"></a>00096         
<a name="l00097"></a>00097 <span class="keyword">private</span>:
<a name="l00098"></a>00098         <a class="code" href="class_c_process_server.html">CProcessServer</a>();
<a name="l00099"></a>00099         <span class="keywordtype">void</span> ConstructL();
<a name="l00100"></a>00100 
<a name="l00101"></a>00101 <span class="keyword">private</span>:
<a name="l00102"></a>00102         TInt                                    iRefCount;
<a name="l00103"></a>00103         <a class="code" href="class_c_delay_server_shut_down.html">CDelayServerShutDown</a>*   iDelayProcessServerShutDown;
<a name="l00104"></a>00104         <a class="code" href="class_r_driver1.html">RDriver1</a>                                iDriver;
<a name="l00105"></a>00105         <a class="code" href="class_c_process_server.html#82cab30ea5d500e0abc51d39a0889b38">TDriverState</a>                    iDriverState;
<a name="l00106"></a>00106         };
<a name="l00107"></a>00107         
<a name="l00108"></a>00108 
<a name="l00109"></a>00109 
<a name="l00110"></a>00110 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Thu Jan 21 10:32:56 2010 for TB10.1 Example Applications by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
</body>
</html>