Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/_client_server_async_2client_2inc_2timeserversession_8h_source.html
Initial contribution of the Adaptation Documentation.
<!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/S60CppExamples/ClientServerAsync/client/inc/timeserversession.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/S60CppExamples/ClientServerAsync/client/inc/timeserversession.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">* ==============================================================================</span>
<a name="l00003"></a>00003 <span class="comment">* Name : timeserversession.h</span>
<a name="l00004"></a>00004 <span class="comment">* Part of : CSAsync</span>
<a name="l00005"></a>00005 <span class="comment">* Interface :</span>
<a name="l00006"></a>00006 <span class="comment">* Description :</span>
<a name="l00007"></a>00007 <span class="comment">* Version :</span>
<a name="l00008"></a>00008 <span class="comment">*</span>
<a name="l00009"></a>00009 <span class="comment">* Copyright (c) 2004-2006 Nokia Corporation.</span>
<a name="l00010"></a>00010 <span class="comment">* This material, including documentation and any related</span>
<a name="l00011"></a>00011 <span class="comment">* computer programs, is protected by copyright controlled by</span>
<a name="l00012"></a>00012 <span class="comment">* Nokia Corporation.</span>
<a name="l00013"></a>00013 <span class="comment">* ==============================================================================</span>
<a name="l00014"></a>00014 <span class="comment">*/</span>
<a name="l00015"></a>00015
<a name="l00016"></a>00016
<a name="l00017"></a>00017 <span class="preprocessor">#ifndef __TIMESERVERSESSION_H__</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __TIMESERVERSESSION_H__</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a>00020 <span class="comment">// INCLUDE FILES</span>
<a name="l00021"></a>00021 <span class="preprocessor">#include <e32base.h></span>
<a name="l00022"></a>00022
<a name="l00023"></a>00023 <span class="comment">// CONSTANTS</span>
<a name="l00024"></a>00024 <span class="comment">// Number of message slots to reserve for this client server session.</span>
<a name="l00025"></a>00025 <span class="comment">// In this example we can have one asynchronous request outstanding</span>
<a name="l00026"></a>00026 <span class="comment">// and one synchronous request in progress.</span>
<a name="l00027"></a>00027 <span class="keyword">const</span> TUint KDefaultMessageSlots = 2;
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <span class="keyword">const</span> TUid KServerUid3 = { 0xA0000227 }; <span class="comment">// Server UID</span>
<a name="l00030"></a>00030
<a name="l00031"></a>00031 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>( KTimeServerFilename, <span class="stringliteral">"CSAsyncServer"</span> );
<a name="l00032"></a>00032
<a name="l00033"></a>00033 <span class="preprocessor">#ifdef __WINS__</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span><span class="keyword">static</span> <span class="keyword">const</span> TUint KServerMinHeapSize = 0x1000; <span class="comment">// 4K</span>
<a name="l00035"></a>00035 <span class="keyword">static</span> <span class="keyword">const</span> TUint KServerMaxHeapSize = 0x10000; <span class="comment">// 64K</span>
<a name="l00036"></a>00036 <span class="preprocessor">#endif</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span>
<a name="l00038"></a>00038 <span class="comment">// CLASS DECLARATION</span>
<a name="l00043"></a><a class="code" href="class_r_time_server_session.html">00043</a> <span class="comment"></span><span class="keyword">class </span><a class="code" href="class_r_time_server_session.html">RTimeServerSession</a> : <span class="keyword">public</span> RSessionBase
<a name="l00044"></a>00044 {
<a name="l00045"></a>00045 <span class="keyword">public</span>: <span class="comment">// Constructors and destructors</span>
<a name="l00046"></a>00046
<a name="l00051"></a>00051 <a class="code" href="class_r_time_server_session.html#a1b1d498de395c8c97e6e74e5b17a463f">RTimeServerSession</a>();
<a name="l00052"></a>00052
<a name="l00053"></a>00053 <span class="keyword">public</span>: <span class="comment">// New functions</span>
<a name="l00054"></a>00054
<a name="l00060"></a>00060 TInt <a class="code" href="class_r_time_server_session.html#a21ea524d4ff3c0622035d60c8a4c5f62">Connect</a>();
<a name="l00061"></a>00061
<a name="l00067"></a>00067 TVersion <a class="code" href="class_r_time_server_session.html#a2c3e9d93ee99036775f915b5c9a0ae77">Version</a>() <span class="keyword">const</span>;
<a name="l00068"></a>00068
<a name="l00075"></a>00075 <span class="keywordtype">void</span> <a class="code" href="class_r_time_server_session.html#a456203c7ad8889a4753222e98173ff00">RequestTime</a>( TTime& aTime,TRequestStatus& aStatus );
<a name="l00076"></a>00076
<a name="l00081"></a>00081 <span class="keywordtype">void</span> <a class="code" href="class_r_time_server_session.html#af8ab12245c507789cdc592212463be5e">CancelRequestTime</a>() <span class="keyword">const</span>;
<a name="l00082"></a>00082
<a name="l00083"></a>00083 <span class="keyword">private</span>: <span class="comment">// Data</span>
<a name="l00084"></a>00084
<a name="l00088"></a>00088 TPtr8 iTimeBuffer;
<a name="l00089"></a>00089 };
<a name="l00090"></a>00090
<a name="l00091"></a>00091
<a name="l00092"></a>00092 <span class="preprocessor">#endif // __TIMESERVERSESSION_H__</span>
<a name="l00093"></a>00093 <span class="preprocessor"></span>
<a name="l00094"></a>00094
<a name="l00095"></a>00095 <span class="comment">// End of File</span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
</body>
</html>