examples/S60CppExamples/ClientServerAsync/doc/clientservercommon_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>clientservercommon.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>clientservercommon.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        : clientservercommon.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 __CLIENTSERVERCOMMON_H__</span>
00037 <a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __CLIENTSERVERCOMMON_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 _LIT( KTimeServerName,<span class="stringliteral">"AsyncTimeServer"</span> ); <span class="comment">// Server name</span>
00044 <a name="l00025"></a>00025 _LIT( KTimeServerSemaphoreName, <span class="stringliteral">"AsyncTimeServerSemaphore"</span> );
00045 <a name="l00026"></a>00026 
00046 <a name="l00027"></a>00027 <span class="comment">// The server version. A version must be specified when</span>
00047 <a name="l00028"></a>00028 <span class="comment">// creating a session with the server.</span>
00048 <a name="l00029"></a>00029 <span class="keyword">const</span> TUint KTimeServMajorVersionNumber=0;
00049 <a name="l00030"></a>00030 <span class="keyword">const</span> TUint KTimeServMinorVersionNumber=1;
00050 <a name="l00031"></a>00031 <span class="keyword">const</span> TUint KTimeServBuildVersionNumber=1;
00051 <a name="l00032"></a>00032 
00052 <a name="l00033"></a>00033 <span class="comment">// DATA TYPES</span>
00053 <a name="l00034"></a>00034 <span class="comment">// Opcodes used in message passing between client and server</span>
00054 <a name="l00035"></a>00035 <span class="keyword">enum</span> TTimeServRqst
00055 <a name="l00036"></a>00036     {
00056 <a name="l00037"></a>00037     ETimeServRequestTime,
00057 <a name="l00038"></a>00038     ETimeServCancelRequestTime
00058 <a name="l00039"></a>00039     };
00059 <a name="l00040"></a>00040 
00060 <a name="l00041"></a>00041 <span class="comment">// Opcodes used by server to indicate which asynchronous service</span>
00061 <a name="l00042"></a>00042 <span class="comment">// has completed</span>
00062 <a name="l00043"></a>00043 <span class="keyword">enum</span> TTimeServRqstComplete
00063 <a name="l00044"></a>00044     {
00064 <a name="l00045"></a>00045     ETimeServRequestTimeComplete = 1
00065 <a name="l00046"></a>00046     };
00066 <a name="l00047"></a>00047 
00067 <a name="l00048"></a>00048 <span class="preprocessor">#endif // __CLIENTSERVERCOMMON_H__</span>
00068 <a name="l00049"></a>00049 <span class="preprocessor"></span>
00069 <a name="l00050"></a>00050 <span class="comment">// End of file</span>
00070 </pre></div><hr>
00071 
00072 <table x-use-null-cells
00073                 style="x-cell-content-align: top;
00074                                 width: 100%;
00075                                 border-spacing: 0px;
00076                                 border-spacing: 0px;"
00077                 cellspacing=0
00078                 width=100%>
00079   <col style="width: 50%;">
00080   <col style="width: 50%;">
00081 
00082   <tr style="x-cell-content-align: top;"
00083         valign=top>
00084   <td style="width: 50%;
00085                         padding-right: 10px;
00086                         padding-left: 10px;
00087                         border-right-style: None;
00088                         border-left-style: None;
00089                         border-top-style: None;
00090                         border-bottom-style: None;"
00091         width=50%>
00092   <p style="font-family: Arial;"><small style="font-size: smaller;">© Nokia 2009</small></td>
00093   <td style="width: 50%;
00094                         padding-right: 10px;
00095                         padding-left: 10px;
00096                         border-top-style: None;
00097                         border-bottom-style: None;
00098                         border-right-style: None;"
00099         width=50%>
00100   <p style="text-align: right; margin-right: -4px;"
00101         align=right><span style="font-weight: bold;"><a href="#Top"
00102                                                                                                         title="Back to top"><img
00103  src="top.gif"
00104         x-maintain-ratio=TRUE
00105         alt="Back to top"
00106         style="border: none;
00107                         width: 18px;
00108                         height: 15px;
00109                         float: none;
00110                         border-style: none;
00111                         border-style: none;"
00112         width=18
00113         height=15
00114         border=0></a></span></td></tr>
00115  </table>
00116 </body>
00117 </html>
00118 

Generated by  doxygen 1.6.2