# examples/S60CppExamples/ClientServerSync/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     : CSSync</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) 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">"SyncTimeServer"</span> ); <span class="comment">// Server name</span>
    00044 <a name="l00025"></a>00025 _LIT( KTimeServerSemaphoreName, <span class="stringliteral">"TimeServerSemaphore"</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     };
    00058 <a name="l00039"></a>00039
    00059 <a name="l00040"></a>00040 <span class="preprocessor">#endif // __CLIENTSERVERCOMMON_H__</span>
    00060 <a name="l00041"></a>00041 <span class="preprocessor"></span>
    00061 <a name="l00042"></a>00042 <span class="comment">// End of File</span>
    00062 </pre></div><hr>
    00063
    00064 <table x-use-null-cells
    00065                 style="x-cell-content-align: top;
    00066                                 width: 100%;
    00067                                 border-spacing: 0px;
    00068                                 border-spacing: 0px;"
    00069                 cellspacing=0
    00070                 width=100%>
    00071   <col style="width: 50%;">
    00072   <col style="width: 50%;">
    00073
    00074   <tr style="x-cell-content-align: top;"
    00075         valign=top>
    00076   <td style="width: 50%;
    00077                         padding-right: 10px;
    00078                         padding-left: 10px;
    00079                         border-right-style: None;
    00080                         border-left-style: None;
    00081                         border-top-style: None;
    00082                         border-bottom-style: None;"
    00083         width=50%>
    00084   <p style="font-family: Arial;"><small style="font-size: smaller;">© Nokia 2009</small></td>
    00085   <td style="width: 50%;
    00086                         padding-right: 10px;
    00087                         padding-left: 10px;
    00088                         border-top-style: None;
    00089                         border-bottom-style: None;
    00090                         border-right-style: None;"
    00091         width=50%>
    00092   <p style="text-align: right; margin-right: -4px;"
    00093         align=right><span style="font-weight: bold;"><a href="#Top"
    00094                                                                                                         title="Back to top"><img
    00095  src="top.gif"
    00096         x-maintain-ratio=TRUE
    00097         alt="Back to top"
    00098         style="border: none;
    00099                         width: 18px;
    00100                         height: 15px;
    00101                         float: none;
    00102                         border-style: none;
    00103                         border-style: none;"
    00104         width=18
    00105         height=15
    00106         border=0></a></span></td></tr>
    00107  </table>
    00108 </body>
    00109 </html>
    00110