Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/_client_server_async_2server_2inc_2timesession_8h_source.html
author Dominic Pinkman <dominic.pinkman@nokia.com>
Fri, 13 Aug 2010 16:47:46 +0100
changeset 14 578be2adaf3e
parent 6 43e37759235e
permissions -rw-r--r--
Week 32 contribution of PDK documentation content. See release notes for details. Fixes bug Bug 3582

<!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/server/inc/timesession.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/server/inc/timesession.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        : timesession.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 __CTIMESESSION_H__</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __CTIMESESSION_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 &lt;e32base.h&gt;</span>
<a name="l00022"></a>00022 
<a name="l00023"></a>00023 <span class="comment">// FORWARD DECLARATIONS</span>
<a name="l00024"></a>00024 <span class="keyword">class </span><a class="code" href="class_c_time_server.html">CTimeServer</a>;
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <span class="comment">// CLASS DECLARATION</span>
<a name="l00031"></a><a class="code" href="class_c_time_server_session.html">00031</a> <span class="comment"></span><span class="keyword">class </span><a class="code" href="class_c_time_server_session.html">CTimeServerSession</a> : <span class="keyword">public</span> CSession2
<a name="l00032"></a>00032     {
<a name="l00033"></a>00033     <span class="keyword">public</span>: <span class="comment">// Constructors and destructors</span>
<a name="l00034"></a>00034 
<a name="l00041"></a>00041         <span class="keyword">static</span> <a class="code" href="class_c_time_server_session.html">CTimeServerSession</a>* <a class="code" href="class_c_time_server_session.html#a79d62e9984113a28d147f151788ea80e">NewL</a>( <a class="code" href="class_c_time_server.html">CTimeServer</a>&amp; aServer );
<a name="l00042"></a>00042 
<a name="l00049"></a>00049         <span class="keyword">static</span> <a class="code" href="class_c_time_server_session.html">CTimeServerSession</a>* <a class="code" href="class_c_time_server_session.html#af7b2cd8196f1b5b4e84e20f38b9ce59b">NewLC</a>( <a class="code" href="class_c_time_server.html">CTimeServer</a>&amp; aServer );
<a name="l00050"></a>00050 
<a name="l00055"></a>00055         <span class="keyword">virtual</span> <a class="code" href="class_c_time_server_session.html#aa53019c11a98c408e6840e8411a57e82">~CTimeServerSession</a>();
<a name="l00056"></a>00056 
<a name="l00057"></a>00057     <span class="keyword">public</span>: <span class="comment">// New functions</span>
<a name="l00058"></a>00058 
<a name="l00064"></a>00064         <span class="keywordtype">void</span> <a class="code" href="class_c_time_server_session.html#a5db282a872864d62b94a2a6a25159d5f">SendTimeToClient</a>();
<a name="l00065"></a>00065 
<a name="l00066"></a>00066     <span class="keyword">public</span>: <span class="comment">// Functions from base classes</span>
<a name="l00067"></a>00067 
<a name="l00074"></a>00074         <span class="keywordtype">void</span> <a class="code" href="class_c_time_server_session.html#a0fd8da10042e0e7c97a74eef7f1fe413">ServiceL</a>( <span class="keyword">const</span> RMessage2&amp; aMessage );
<a name="l00075"></a>00075 
<a name="l00076"></a>00076     <span class="keyword">private</span>: <span class="comment">// Constructors and destructors</span>
<a name="l00077"></a>00077 
<a name="l00083"></a>00083         <a class="code" href="class_c_time_server_session.html">CTimeServerSession</a>( <a class="code" href="class_c_time_server.html">CTimeServer</a>&amp; aServer );
<a name="l00084"></a>00084 
<a name="l00089"></a>00089         <span class="keywordtype">void</span> ConstructL();
<a name="l00090"></a>00090 
<a name="l00091"></a>00091     <span class="keyword">private</span>: <span class="comment">// New methods</span>
<a name="l00092"></a>00092 
<a name="l00099"></a>00099         <span class="keywordtype">void</span> PanicClient( <span class="keyword">const</span> RMessagePtr2&amp; aMessage, 
<a name="l00100"></a>00100                           TInt aPanic ) <span class="keyword">const</span>;
<a name="l00101"></a>00101 
<a name="l00108"></a>00108         <span class="keywordtype">void</span> RequestTimeL( <span class="keyword">const</span> RMessage2&amp; aMessage );
<a name="l00109"></a>00109 
<a name="l00110"></a>00110     <span class="keyword">private</span>: <span class="comment">// Data</span>
<a name="l00111"></a>00111 
<a name="l00115"></a>00115         TBool iWaitingForTick;
<a name="l00116"></a>00116 
<a name="l00120"></a>00120         RMessage2 iMessage;
<a name="l00121"></a>00121 
<a name="l00125"></a>00125         <a class="code" href="class_c_time_server.html">CTimeServer</a>&amp; iServer;
<a name="l00126"></a>00126     };
<a name="l00127"></a>00127 
<a name="l00128"></a>00128 <span class="preprocessor">#endif // __CTIMESESSION_H__</span>
<a name="l00129"></a>00129 <span class="preprocessor"></span>
<a name="l00130"></a>00130 
<a name="l00131"></a>00131 <span class="comment">// End of File</span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
</body>
</html>