examples/S60CppExamples/ClientServerAsync/doc/timeserversession_8h-source.html

00001 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
00002 <html>
00003 
00004 <head>
00005 <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
00006 <title>timeserversession.h Source File</title>
00007 <link href="style.css" rel="stylesheet" type="text/css">
00008 </head>
00009 
00010 <table border="0" width="100%" height="8" bgcolor="#eeeeee">
00011 <tr> <td width="100%" height="1"><b><font size="2" color="#000000" face="Arial, Helvetica, sans-serif"><strong><a name=Top></a>
00012 S60 5th Edition SDK </strong></font></b><br><i>Example Applications Guide</i></td></tr> </table>
00013 <!-- Generated by Doxygen 1.4.5 -->
00014 <div class="tabs">
00015   <ul>
00016     <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
00017     <li><a href="annotated.html"><span>Classes</span></a></li>
00018     <li id="current"><a href="files.html"><span>Files</span></a></li>
00019   </ul></div>
00020 <h1>timeserversession.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
00021 <a name="l00002"></a>00002 <span class="comment">* ==============================================================================</span>
00022 <a name="l00003"></a>00003 <span class="comment">*  Name        : timeserversession.h</span>
00023 <a name="l00004"></a>00004 <span class="comment">*  Part of     : CSAsync</span>
00024 <a name="l00005"></a>00005 <span class="comment">*  Interface   :</span>
00025 <a name="l00006"></a>00006 <span class="comment">*  Description :</span>
00026 <a name="l00007"></a>00007 <span class="comment">*  Version     :</span>
00027 <a name="l00008"></a>00008 <span class="comment">*</span>
00028 <a name="l00009"></a>00009 <span class="comment">*  Copyright (c) 2004-2006 Nokia Corporation.</span>
00029 <a name="l00010"></a>00010 <span class="comment">*  This material, including documentation and any related</span>
00030 <a name="l00011"></a>00011 <span class="comment">*  computer programs, is protected by copyright controlled by</span>
00031 <a name="l00012"></a>00012 <span class="comment">*  Nokia Corporation.</span>
00032 <a name="l00013"></a>00013 <span class="comment">* ==============================================================================</span>
00033 <a name="l00014"></a>00014 <span class="comment">*/</span>
00034 <a name="l00015"></a>00015 
00035 <a name="l00016"></a>00016 
00036 <a name="l00017"></a>00017 <span class="preprocessor">#ifndef __TIMESERVERSESSION_H__</span>
00037 <a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __TIMESERVERSESSION_H__</span>
00038 <a name="l00019"></a>00019 <span class="preprocessor"></span>
00039 <a name="l00020"></a>00020 <span class="comment">// INCLUDE FILES</span>
00040 <a name="l00021"></a>00021 <span class="preprocessor">#include &lt;e32base.h&gt;</span>
00041 <a name="l00022"></a>00022 
00042 <a name="l00023"></a>00023 <span class="comment">// CONSTANTS</span>
00043 <a name="l00024"></a>00024 <span class="comment">// Number of message slots to reserve for this client server session.</span>
00044 <a name="l00025"></a>00025 <span class="comment">// In this example we can have one asynchronous request outstanding</span>
00045 <a name="l00026"></a>00026 <span class="comment">// and one synchronous request in progress.</span>
00046 <a name="l00027"></a>00027 <span class="keyword">const</span> TUint KDefaultMessageSlots = 2;
00047 <a name="l00028"></a>00028 
00048 <a name="l00029"></a>00029 <span class="keyword">const</span> TUid KServerUid3 = { 0xA0000227 }; <span class="comment">// Server UID</span>
00049 <a name="l00030"></a>00030 
00050 <a name="l00031"></a>00031 _LIT( KTimeServerFilename, <span class="stringliteral">"CSAsyncServer"</span> );
00051 <a name="l00032"></a>00032 
00052 <a name="l00033"></a>00033 <span class="preprocessor">#ifdef __WINS__</span>
00053 <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>
00054 <a name="l00035"></a>00035 <span class="keyword">static</span> <span class="keyword">const</span> TUint KServerMaxHeapSize = 0x10000;  <span class="comment">// 64K</span>
00055 <a name="l00036"></a>00036 <span class="preprocessor">#endif</span>
00056 <a name="l00037"></a>00037 <span class="preprocessor"></span>
00057 <a name="l00038"></a>00038 <span class="comment">// CLASS DECLARATION</span><span class="comment"></span>
00058 <a name="l00039"></a>00039 <span class="comment"></span>
00062 <a name="l00043"></a><a class="code" href="class_r_time_server_session.html">00043</a> <span class="keyword">class </span><a class="code" href="class_r_time_server_session.html">RTimeServerSession</a> : <span class="keyword">public</span> RSessionBase
00063 <a name="l00044"></a>00044     {
00064 <a name="l00045"></a>00045     <span class="keyword">public</span>: <span class="comment">// Constructors and destructors</span>
00065 <a name="l00046"></a>00046 <span class="comment"></span>
00066 <a name="l00047"></a>00047 <span class="comment">        </span>
00070 <a name="l00051"></a>00051         <a class="code" href="class_r_time_server_session.html#d8a4b16d15242f1f1a1e7e2585bf81a6">RTimeServerSession</a>();
00071 <a name="l00052"></a>00052 
00072 <a name="l00053"></a>00053     <span class="keyword">public</span>: <span class="comment">// New functions</span>
00073 <a name="l00054"></a>00054 <span class="comment"></span>
00074 <a name="l00055"></a>00055 <span class="comment">        </span>
00079 <a name="l00060"></a>00060         TInt <a class="code" href="class_r_time_server_session.html#0a20867f2777f1db7349df290a5e6112">Connect</a>();
00080 <a name="l00061"></a>00061 <span class="comment"></span>
00081 <a name="l00062"></a>00062 <span class="comment">        </span>
00086 <a name="l00067"></a>00067         TVersion <a class="code" href="class_r_time_server_session.html#30dc24843f42888ea13e6093f6318f37">Version</a>() <span class="keyword">const</span>;
00087 <a name="l00068"></a>00068 <span class="comment"></span>
00088 <a name="l00069"></a>00069 <span class="comment">        </span>
00094 <a name="l00075"></a>00075         <span class="keywordtype">void</span> <a class="code" href="class_r_time_server_session.html#0e65b7c45b7af042183f1c5525cfcc1b">RequestTime</a>( TTime&amp; aTime,TRequestStatus&amp; aStatus );
00095 <a name="l00076"></a>00076 <span class="comment"></span>
00096 <a name="l00077"></a>00077 <span class="comment">        </span>
00100 <a name="l00081"></a>00081         <span class="keywordtype">void</span> <a class="code" href="class_r_time_server_session.html#52a5f2cddd36f215fea9c11e32ab88b8">CancelRequestTime</a>() <span class="keyword">const</span>;
00101 <a name="l00082"></a>00082 
00102 <a name="l00083"></a>00083     <span class="keyword">private</span>: <span class="comment">// Data</span>
00103 <a name="l00084"></a>00084 <span class="comment"></span>
00104 <a name="l00085"></a>00085 <span class="comment">        </span>
00107 <a name="l00088"></a><a class="code" href="class_r_time_server_session.html#828f90acd9ecd7a6283a9226001e3921">00088</a>         TPtr8 <a class="code" href="class_r_time_server_session.html#828f90acd9ecd7a6283a9226001e3921">iTimeBuffer</a>;
00108 <a name="l00089"></a>00089     };
00109 <a name="l00090"></a>00090 
00110 <a name="l00091"></a>00091 
00111 <a name="l00092"></a>00092 <span class="preprocessor">#endif // __TIMESERVERSESSION_H__</span>
00112 <a name="l00093"></a>00093 <span class="preprocessor"></span>
00113 <a name="l00094"></a>00094 
00114 <a name="l00095"></a>00095 <span class="comment">// End of File</span>
00115 </pre></div><hr>
00116 
00117 <table x-use-null-cells
00118                 style="x-cell-content-align: top;
00119                                 width: 100%;
00120                                 border-spacing: 0px;
00121                                 border-spacing: 0px;"
00122                 cellspacing=0
00123                 width=100%>
00124   <col style="width: 50%;">
00125   <col style="width: 50%;">
00126 
00127   <tr style="x-cell-content-align: top;"
00128         valign=top>
00129   <td style="width: 50%;
00130                         padding-right: 10px;
00131                         padding-left: 10px;
00132                         border-right-style: None;
00133                         border-left-style: None;
00134                         border-top-style: None;
00135                         border-bottom-style: None;"
00136         width=50%>
00137   <p style="font-family: Arial;"><small style="font-size: smaller;">� Nokia 2009</small></td>
00138   <td style="width: 50%;
00139                         padding-right: 10px;
00140                         padding-left: 10px;
00141                         border-top-style: None;
00142                         border-bottom-style: None;
00143                         border-right-style: None;"
00144         width=50%>
00145   <p style="text-align: right; margin-right: -4px;"
00146         align=right><span style="font-weight: bold;"><a href="#Top"
00147                                                                                                         title="Back to top"><img
00148  src="top.gif"
00149         x-maintain-ratio=TRUE
00150         alt="Back to top"
00151         style="border: none;
00152                         width: 18px;
00153                         height: 15px;
00154                         float: none;
00155                         border-style: none;
00156                         border-style: none;"
00157         width=18
00158         height=15
00159         border=0></a></span></td></tr>
00160  </table>
00161 </body>
00162 </html>
00163 

Generated by  doxygen 1.6.2