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>CCSAsyncRequestHandler Class Reference</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 Page</span></a></li>
00017 <li id="current"><a href="annotated.html"><span>Classes</span></a></li>
00018 <li><a href="files.html"><span>Files</span></a></li>
00019 </ul></div>
00020 <div class="tabs">
00021 <ul>
00022 <li><a href="annotated.html"><span>Class List</span></a></li>
00023 <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
00024 <li><a href="functions.html"><span>Class Members</span></a></li>
00025 </ul></div>
00026 <h1>CCSAsyncRequestHandler Class Reference</h1><!-- doxytag: class="CCSAsyncRequestHandler" --><!-- doxytag: inherits="CActive" --><code>#include <<a class="el" href="csasyncrequesthandler_8h-source.html">csasyncrequesthandler.h</a>></code>
00027 <p>
00028 <p>Inheritance diagram for CCSAsyncRequestHandler:
00029 <p><center><img src="class_c_c_s_async_request_handler.png" usemap="#CCSAsyncRequestHandler_map" border="0" alt=""></center>
00030 <map name="CCSAsyncRequestHandler_map">
00031 </map>
00032 <a href="class_c_c_s_async_request_handler-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
00033 CCSAsyncRequestHandler An instance of the request handler object for the ClientServerAsync example application
00034 <p>
00035
00036 <p>
00037 Definition at line <a class="el" href="csasyncrequesthandler_8h-source.html#l00033">33</a> of file <a class="el" href="csasyncrequesthandler_8h-source.html">csasyncrequesthandler.h</a>.<table border="0" cellpadding="0" cellspacing="0">
00038 <tr><td></td></tr>
00039 <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
00040 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_c_s_async_request_handler.html#91aee909b7becabe937b696acc0c1590">~CCSAsyncRequestHandler</a> ()</td></tr>
00041
00042 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_c_s_async_request_handler.html#481d63e2f4e33b9cb8ed4680a965da25">RequestTime</a> ()</td></tr>
00043
00044 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_c_s_async_request_handler.html#63d7f6ab1c508b38c31d416e01f71a29">CancelRequest</a> ()</td></tr>
00045
00046 <tr><td class="memItemLeft" nowrap align="right" valign="top">TTime </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_c_s_async_request_handler.html#abd5ca40d94b3e8941d79e5362c038b2">Time</a> () const </td></tr>
00047
00048 <tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
00049 <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="class_c_c_s_async_request_handler.html">CCSAsyncRequestHandler</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_c_s_async_request_handler.html#e27bf7140859a754f6f06c51dbbd1b12">NewL</a> (<a class="el" href="class_m_async_time_observer.html">MAsyncTimeObserver</a> &aObserver)</td></tr>
00050
00051 <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="class_c_c_s_async_request_handler.html">CCSAsyncRequestHandler</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_c_s_async_request_handler.html#aea906e05bc2fa2a15b3152501b0f12e">NewLC</a> (<a class="el" href="class_m_async_time_observer.html">MAsyncTimeObserver</a> &aObserver)</td></tr>
00052
00053 <tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
00054 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_c_s_async_request_handler.html#98dcd20e4dd117488a6a90dadd4dfac5">RunL</a> ()</td></tr>
00055
00056 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_c_s_async_request_handler.html#79737b00f2b6a07492c7caf4220c6691">DoCancel</a> ()</td></tr>
00057
00058 <tr><td colspan="2"><br><h2>Private Member Functions</h2></td></tr>
00059 <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_c_s_async_request_handler.html#7f4ba53fa1861a0a692566cdfa024cd4">CCSAsyncRequestHandler</a> (<a class="el" href="class_m_async_time_observer.html">MAsyncTimeObserver</a> &aObserver)</td></tr>
00060
00061 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_c_s_async_request_handler.html#9ce34ba0b947863222da3c63d0481044">ConstructL</a> ()</td></tr>
00062
00063 <tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr>
00064 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_r_time_server_session.html">RTimeServerSession</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_c_s_async_request_handler.html#d8033daa9b951c54149345b6871648bb">iSession</a></td></tr>
00065
00066 <tr><td class="memItemLeft" nowrap align="right" valign="top">TTime </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_c_s_async_request_handler.html#ab88bd4e7e44b5e05aab3f182f76db1f">iTime</a></td></tr>
00067
00068 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_m_async_time_observer.html">MAsyncTimeObserver</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_c_s_async_request_handler.html#5598d19cc10719afd28055422087a200">iObserver</a></td></tr>
00069
00070 </table>
00071 <hr><h2>Constructor & Destructor Documentation</h2>
00072 <a class="anchor" name="91aee909b7becabe937b696acc0c1590"></a><!-- doxytag: member="CCSAsyncRequestHandler::~CCSAsyncRequestHandler" ref="91aee909b7becabe937b696acc0c1590" args="()" --><p>
00073 <table class="mdTable" cellpadding="2" cellspacing="0">
00074 <tr>
00075 <td class="mdRow">
00076 <table cellpadding="0" cellspacing="0" border="0">
00077 <tr>
00078 <td class="md" nowrap valign="top">CCSAsyncRequestHandler::~CCSAsyncRequestHandler </td>
00079 <td class="md" valign="top">( </td>
00080 <td class="mdname1" valign="top" nowrap> </td>
00081 <td class="md" valign="top"> ) </td>
00082 <td class="md" nowrap><code> [virtual]</code></td>
00083 </tr>
00084 </table>
00085 </td>
00086 </tr>
00087 </table>
00088 <table cellspacing="5" cellpadding="0" border="0">
00089 <tr>
00090 <td>
00091
00092 </td>
00093 <td>
00094
00095 <p>
00096 ~CCSAsyncRequestHandler. Destructor. Destroys the object and release all memory objects.
00097 <p>
00098 Definition at line <a class="el" href="csasyncrequesthandler_8cpp-source.html#l00077">77</a> of file <a class="el" href="csasyncrequesthandler_8cpp-source.html">csasyncrequesthandler.cpp</a>.
00099 <p>
00100 References <a class="el" href="csasyncrequesthandler_8h-source.html#l00123">iSession</a>.<div class="fragment"><pre class="fragment"><a name="l00078"></a>00078 {
00101 <a name="l00079"></a>00079 Cancel(); <span class="comment">
00102 <a name="l00080"></a>00080 <a class="code" href="class_c_c_s_async_request_handler.html#d8033daa9b951c54149345b6871648bb">iSession</a>.Close();
00103 <a name="l00081"></a>00081 }
00104 </pre></div>
00105 <p>
00106 </td>
00107 </tr>
00108 </table>
00109 <a class="anchor" name="7f4ba53fa1861a0a692566cdfa024cd4"></a><!-- doxytag: member="CCSAsyncRequestHandler::CCSAsyncRequestHandler" ref="7f4ba53fa1861a0a692566cdfa024cd4" args="(MAsyncTimeObserver &aObserver)" --><p>
00110 <table class="mdTable" cellpadding="2" cellspacing="0">
00111 <tr>
00112 <td class="mdRow">
00113 <table cellpadding="0" cellspacing="0" border="0">
00114 <tr>
00115 <td class="md" nowrap valign="top">CCSAsyncRequestHandler::CCSAsyncRequestHandler </td>
00116 <td class="md" valign="top">( </td>
00117 <td class="md" nowrap valign="top"><a class="el" href="class_m_async_time_observer.html">MAsyncTimeObserver</a> & </td>
00118 <td class="mdname1" valign="top" nowrap> <em>aObserver</em> </td>
00119 <td class="md" valign="top"> ) </td>
00120 <td class="md" nowrap><code> [private]</code></td>
00121 </tr>
00122 </table>
00123 </td>
00124 </tr>
00125 </table>
00126 <table cellspacing="5" cellpadding="0" border="0">
00127 <tr>
00128 <td>
00129
00130 </td>
00131 <td>
00132
00133 <p>
00134 CCSAsyncRequestHandler. Performs the first phase of two phase construction. <dl compact><dt><b>Parameters:</b></dt><dd>
00135 <table border="0" cellspacing="2" cellpadding="0">
00136 <tr><td valign="top"></td><td valign="top"><em>aObserver</em> </td><td>The object to be used to handle updates from the server. </td></tr>
00137 </table>
00138 </dl>
00139
00140 <p>
00141 Definition at line <a class="el" href="csasyncrequesthandler_8cpp-source.html#l00066">66</a> of file <a class="el" href="csasyncrequesthandler_8cpp-source.html">csasyncrequesthandler.cpp</a>.
00142 <p>
00143 Referenced by <a class="el" href="csasyncrequesthandler_8cpp-source.html#l00042">NewLC()</a>.<div class="fragment"><pre class="fragment"><a name="l00067"></a>00067 : CActive( EPriorityStandard ), <a class="code" href="class_c_c_s_async_request_handler.html#5598d19cc10719afd28055422087a200">iObserver</a>( aObserver )
00144 <a name="l00068"></a>00068 {
00145 <a name="l00069"></a>00069 CActiveScheduler::Add( <span class="keyword">this</span> );
00146 <a name="l00070"></a>00070 }
00147 </pre></div>
00148 <p>
00149 </td>
00150 </tr>
00151 </table>
00152 <hr><h2>Member Function Documentation</h2>
00153 <a class="anchor" name="e27bf7140859a754f6f06c51dbbd1b12"></a><!-- doxytag: member="CCSAsyncRequestHandler::NewL" ref="e27bf7140859a754f6f06c51dbbd1b12" args="(MAsyncTimeObserver &aObserver)" --><p>
00154 <table class="mdTable" cellpadding="2" cellspacing="0">
00155 <tr>
00156 <td class="mdRow">
00157 <table cellpadding="0" cellspacing="0" border="0">
00158 <tr>
00159 <td class="md" nowrap valign="top"><a class="el" href="class_c_c_s_async_request_handler.html">CCSAsyncRequestHandler</a> * CCSAsyncRequestHandler::NewL </td>
00160 <td class="md" valign="top">( </td>
00161 <td class="md" nowrap valign="top"><a class="el" href="class_m_async_time_observer.html">MAsyncTimeObserver</a> & </td>
00162 <td class="mdname1" valign="top" nowrap> <em>aObserver</em> </td>
00163 <td class="md" valign="top"> ) </td>
00164 <td class="md" nowrap><code> [static]</code></td>
00165 </tr>
00166 </table>
00167 </td>
00168 </tr>
00169 </table>
00170 <table cellspacing="5" cellpadding="0" border="0">
00171 <tr>
00172 <td>
00173
00174 </td>
00175 <td>
00176
00177 <p>
00178 NewL. Two-phased constructor. Creates a CCSAsyncRequestHandler object using two phase construction, and return a pointer to the created object. <dl compact><dt><b>Parameters:</b></dt><dd>
00179 <table border="0" cellspacing="2" cellpadding="0">
00180 <tr><td valign="top"></td><td valign="top"><em>aObserver</em> </td><td>The object to be used to handle updates from the server. </td></tr>
00181 </table>
00182 </dl>
00183 <dl compact><dt><b>Returns:</b></dt><dd>A pointer to the created instance of CCSAsyncRequestHandler. </dd></dl>
00184
00185 <p>
00186 Definition at line <a class="el" href="csasyncrequesthandler_8cpp-source.html#l00030">30</a> of file <a class="el" href="csasyncrequesthandler_8cpp-source.html">csasyncrequesthandler.cpp</a>.
00187 <p>
00188 References <a class="el" href="csasyncrequesthandler_8cpp-source.html#l00042">NewLC()</a>.
00189 <p>
00190 Referenced by <a class="el" href="csasyncdocument_8cpp-source.html#l00083">CCSAsyncDocument::CreateAppUiL()</a>.<div class="fragment"><pre class="fragment"><a name="l00032"></a>00032 {
00191 <a name="l00033"></a>00033 <a class="code" href="class_c_c_s_async_request_handler.html">CCSAsyncRequestHandler</a>* <span class="keyword">self</span> = <a class="code" href="class_c_c_s_async_request_handler.html#aea906e05bc2fa2a15b3152501b0f12e">NewLC</a>( aObserver );
00192 <a name="l00034"></a>00034 CleanupStack::Pop( <span class="keyword">self</span> );
00193 <a name="l00035"></a>00035 <span class="keywordflow">return</span>( self ) ;
00194 <a name="l00036"></a>00036 }
00195 </pre></div>
00196 <p>
00197 </td>
00198 </tr>
00199 </table>
00200 <a class="anchor" name="aea906e05bc2fa2a15b3152501b0f12e"></a><!-- doxytag: member="CCSAsyncRequestHandler::NewLC" ref="aea906e05bc2fa2a15b3152501b0f12e" args="(MAsyncTimeObserver &aObserver)" --><p>
00201 <table class="mdTable" cellpadding="2" cellspacing="0">
00202 <tr>
00203 <td class="mdRow">
00204 <table cellpadding="0" cellspacing="0" border="0">
00205 <tr>
00206 <td class="md" nowrap valign="top"><a class="el" href="class_c_c_s_async_request_handler.html">CCSAsyncRequestHandler</a> * CCSAsyncRequestHandler::NewLC </td>
00207 <td class="md" valign="top">( </td>
00208 <td class="md" nowrap valign="top"><a class="el" href="class_m_async_time_observer.html">MAsyncTimeObserver</a> & </td>
00209 <td class="mdname1" valign="top" nowrap> <em>aObserver</em> </td>
00210 <td class="md" valign="top"> ) </td>
00211 <td class="md" nowrap><code> [static]</code></td>
00212 </tr>
00213 </table>
00214 </td>
00215 </tr>
00216 </table>
00217 <table cellspacing="5" cellpadding="0" border="0">
00218 <tr>
00219 <td>
00220
00221 </td>
00222 <td>
00223
00224 <p>
00225 NewLC. Two-phased constructor. Creates a CCSAsyncRequestHandler object using two phase construction, and return a pointer to the created object. <dl compact><dt><b>Parameters:</b></dt><dd>
00226 <table border="0" cellspacing="2" cellpadding="0">
00227 <tr><td valign="top"></td><td valign="top"><em>aObserver</em> </td><td>The object to be used to handle updates from the server. </td></tr>
00228 </table>
00229 </dl>
00230 <dl compact><dt><b>Returns:</b></dt><dd>A pointer to the created instance of CCSAsyncRequestHandler. </dd></dl>
00231
00232 <p>
00233 Definition at line <a class="el" href="csasyncrequesthandler_8cpp-source.html#l00042">42</a> of file <a class="el" href="csasyncrequesthandler_8cpp-source.html">csasyncrequesthandler.cpp</a>.
00234 <p>
00235 References <a class="el" href="csasyncrequesthandler_8cpp-source.html#l00066">CCSAsyncRequestHandler()</a>.
00236 <p>
00237 Referenced by <a class="el" href="csasyncrequesthandler_8cpp-source.html#l00030">NewL()</a>.<div class="fragment"><pre class="fragment"><a name="l00044"></a>00044 {
00238 <a name="l00045"></a>00045 <a class="code" href="class_c_c_s_async_request_handler.html">CCSAsyncRequestHandler</a>* <span class="keyword">self</span> =
00239 <a name="l00046"></a>00046 <span class="keyword">new</span> ( ELeave ) <a class="code" href="class_c_c_s_async_request_handler.html#7f4ba53fa1861a0a692566cdfa024cd4">CCSAsyncRequestHandler</a>( aObserver );
00240 <a name="l00047"></a>00047 CleanupStack::PushL( <span class="keyword">self</span> );
00241 <a name="l00048"></a>00048 <span class="keyword">self</span>->ConstructL();
00242 <a name="l00049"></a>00049 <span class="keywordflow">return</span> <span class="keyword">self</span>;
00243 <a name="l00050"></a>00050 }
00244 </pre></div>
00245 <p>
00246 </td>
00247 </tr>
00248 </table>
00249 <a class="anchor" name="481d63e2f4e33b9cb8ed4680a965da25"></a><!-- doxytag: member="CCSAsyncRequestHandler::RequestTime" ref="481d63e2f4e33b9cb8ed4680a965da25" args="()" --><p>
00250 <table class="mdTable" cellpadding="2" cellspacing="0">
00251 <tr>
00252 <td class="mdRow">
00253 <table cellpadding="0" cellspacing="0" border="0">
00254 <tr>
00255 <td class="md" nowrap valign="top">void CCSAsyncRequestHandler::RequestTime </td>
00256 <td class="md" valign="top">( </td>
00257 <td class="mdname1" valign="top" nowrap> </td>
00258 <td class="md" valign="top"> ) </td>
00259 <td class="md" nowrap></td>
00260 </tr>
00261 </table>
00262 </td>
00263 </tr>
00264 </table>
00265 <table cellspacing="5" cellpadding="0" border="0">
00266 <tr>
00267 <td>
00268
00269 </td>
00270 <td>
00271
00272 <p>
00273 RequestTime. Sends a request to the server for an update to the time.
00274 <p>
00275 Definition at line <a class="el" href="csasyncrequesthandler_8cpp-source.html#l00088">88</a> of file <a class="el" href="csasyncrequesthandler_8cpp-source.html">csasyncrequesthandler.cpp</a>.
00276 <p>
00277 References <a class="el" href="csasyncrequesthandler_8h-source.html#l00123">iSession</a>, <a class="el" href="csasyncrequesthandler_8h-source.html#l00128">iTime</a>, and <a class="el" href="timeserversession_8cpp-source.html#l00075">RTimeServerSession::RequestTime()</a>.
00278 <p>
00279 Referenced by <a class="el" href="csasyncrequesthandler_8cpp-source.html#l00112">RunL()</a>, and <a class="el" href="csasyncdocument_8cpp-source.html#l00098">CCSAsyncDocument::UpdateTime()</a>.<div class="fragment"><pre class="fragment"><a name="l00089"></a>00089 {
00280 <a name="l00090"></a>00090 <span class="keywordflow">if</span> ( !IsActive() )
00281 <a name="l00091"></a>00091 {
00282 <a name="l00092"></a>00092 <a class="code" href="class_c_c_s_async_request_handler.html#d8033daa9b951c54149345b6871648bb">iSession</a>.<a class="code" href="class_r_time_server_session.html#0e65b7c45b7af042183f1c5525cfcc1b">RequestTime</a>( <a class="code" href="class_c_c_s_async_request_handler.html#ab88bd4e7e44b5e05aab3f182f76db1f">iTime</a>, iStatus );
00283 <a name="l00093"></a>00093 SetActive();
00284 <a name="l00094"></a>00094 }
00285 <a name="l00095"></a>00095 }
00286 </pre></div>
00287 <p>
00288 </td>
00289 </tr>
00290 </table>
00291 <a class="anchor" name="63d7f6ab1c508b38c31d416e01f71a29"></a><!-- doxytag: member="CCSAsyncRequestHandler::CancelRequest" ref="63d7f6ab1c508b38c31d416e01f71a29" args="()" --><p>
00292 <table class="mdTable" cellpadding="2" cellspacing="0">
00293 <tr>
00294 <td class="mdRow">
00295 <table cellpadding="0" cellspacing="0" border="0">
00296 <tr>
00297 <td class="md" nowrap valign="top">void CCSAsyncRequestHandler::CancelRequest </td>
00298 <td class="md" valign="top">( </td>
00299 <td class="mdname1" valign="top" nowrap> </td>
00300 <td class="md" valign="top"> ) </td>
00301 <td class="md" nowrap></td>
00302 </tr>
00303 </table>
00304 </td>
00305 </tr>
00306 </table>
00307 <table cellspacing="5" cellpadding="0" border="0">
00308 <tr>
00309 <td>
00310
00311 </td>
00312 <td>
00313
00314 <p>
00315 CancelRequest. Cancels an outstanding request.
00316 <p>
00317 Definition at line <a class="el" href="csasyncrequesthandler_8cpp-source.html#l00102">102</a> of file <a class="el" href="csasyncrequesthandler_8cpp-source.html">csasyncrequesthandler.cpp</a>.
00318 <p>
00319 Referenced by <a class="el" href="csasyncdocument_8cpp-source.html#l00108">CCSAsyncDocument::StopClock()</a>.<div class="fragment"><pre class="fragment"><a name="l00103"></a>00103 {
00320 <a name="l00104"></a>00104 Cancel() ; <span class="comment">
00321 <a name="l00105"></a>00105 }
00322 </pre></div>
00323 <p>
00324 </td>
00325 </tr>
00326 </table>
00327 <a class="anchor" name="abd5ca40d94b3e8941d79e5362c038b2"></a><!-- doxytag: member="CCSAsyncRequestHandler::Time" ref="abd5ca40d94b3e8941d79e5362c038b2" args="() const " --><p>
00328 <table class="mdTable" cellpadding="2" cellspacing="0">
00329 <tr>
00330 <td class="mdRow">
00331 <table cellpadding="0" cellspacing="0" border="0">
00332 <tr>
00333 <td class="md" nowrap valign="top">TTime CCSAsyncRequestHandler::Time </td>
00334 <td class="md" valign="top">( </td>
00335 <td class="mdname1" valign="top" nowrap> </td>
00336 <td class="md" valign="top"> ) </td>
00337 <td class="md" nowrap> const</td>
00338 </tr>
00339 </table>
00340 </td>
00341 </tr>
00342 </table>
00343 <table cellspacing="5" cellpadding="0" border="0">
00344 <tr>
00345 <td>
00346
00347 </td>
00348 <td>
00349
00350 <p>
00351 Time. Gets a copy of the last time received from the server. <dl compact><dt><b>Returns:</b></dt><dd>The time. </dd></dl>
00352
00353 <p>
00354 Definition at line <a class="el" href="csasyncrequesthandler_8cpp-source.html#l00151">151</a> of file <a class="el" href="csasyncrequesthandler_8cpp-source.html">csasyncrequesthandler.cpp</a>.
00355 <p>
00356 References <a class="el" href="csasyncrequesthandler_8h-source.html#l00128">iTime</a>.
00357 <p>
00358 Referenced by <a class="el" href="csasyncdocument_8cpp-source.html#l00121">CCSAsyncDocument::Time()</a>.<div class="fragment"><pre class="fragment"><a name="l00152"></a>00152 {
00359 <a name="l00153"></a>00153 <span class="keywordflow">return</span> <a class="code" href="class_c_c_s_async_request_handler.html#ab88bd4e7e44b5e05aab3f182f76db1f">iTime</a>;
00360 <a name="l00154"></a>00154 }
00361 </pre></div>
00362 <p>
00363 </td>
00364 </tr>
00365 </table>
00366 <a class="anchor" name="98dcd20e4dd117488a6a90dadd4dfac5"></a><!-- doxytag: member="CCSAsyncRequestHandler::RunL" ref="98dcd20e4dd117488a6a90dadd4dfac5" args="()" --><p>
00367 <table class="mdTable" cellpadding="2" cellspacing="0">
00368 <tr>
00369 <td class="mdRow">
00370 <table cellpadding="0" cellspacing="0" border="0">
00371 <tr>
00372 <td class="md" nowrap valign="top">void CCSAsyncRequestHandler::RunL </td>
00373 <td class="md" valign="top">( </td>
00374 <td class="mdname1" valign="top" nowrap> </td>
00375 <td class="md" valign="top"> ) </td>
00376 <td class="md" nowrap><code> [protected]</code></td>
00377 </tr>
00378 </table>
00379 </td>
00380 </tr>
00381 </table>
00382 <table cellspacing="5" cellpadding="0" border="0">
00383 <tr>
00384 <td>
00385
00386 </td>
00387 <td>
00388
00389 <p>
00390 From CActive, RunL. Callback function. Invoked to handle responses from the server.
00391 <p>
00392 Definition at line <a class="el" href="csasyncrequesthandler_8cpp-source.html#l00112">112</a> of file <a class="el" href="csasyncrequesthandler_8cpp-source.html">csasyncrequesthandler.cpp</a>.
00393 <p>
00394 References <a class="el" href="class_m_async_time_observer.html#0f7e397559bb14d521856cfb636830df">MAsyncTimeObserver::HandleTimeUpdate()</a>, <a class="el" href="csasyncrequesthandler_8h-source.html#l00133">iObserver</a>, and <a class="el" href="csasyncrequesthandler_8cpp-source.html#l00088">RequestTime()</a>.<div class="fragment"><pre class="fragment"><a name="l00113"></a>00113 {
00395 <a name="l00114"></a>00114 <span class="keywordflow">switch</span> ( iStatus.Int() )
00396 <a name="l00115"></a>00115 {
00397 <a name="l00116"></a>00116 <span class="keywordflow">case</span> ETimeServRequestTimeComplete:
00398 <a name="l00117"></a>00117 <span class="comment">
00399 <a name="l00118"></a>00118 <span class="comment">
00400 <a name="l00119"></a>00119 <span class="comment">
00401 <a name="l00120"></a>00120 <a class="code" href="class_c_c_s_async_request_handler.html#5598d19cc10719afd28055422087a200">iObserver</a>.<a class="code" href="class_m_async_time_observer.html#0f7e397559bb14d521856cfb636830df">HandleTimeUpdate</a>();
00402 <a name="l00121"></a>00121 <a class="code" href="class_c_c_s_async_request_handler.html#481d63e2f4e33b9cb8ed4680a965da25">RequestTime</a>(); <span class="comment">
00403 <a name="l00122"></a>00122 break ;
00404 <a name="l00123"></a>00123
00405 <a name="l00124"></a>00124 <span class="keywordflow">case</span> KErrCancel:
00406 <a name="l00125"></a>00125 <span class="comment">
00407 <a name="l00126"></a>00126 break ;
00408 <a name="l00127"></a>00127
00409 <a name="l00128"></a>00128 <span class="keywordflow">case</span> KErrNotReady:
00410 <a name="l00129"></a>00129 <span class="comment">
00411 <a name="l00130"></a>00130 <span class="keywordflow">default</span>:
00412 <a name="l00131"></a>00131 User::Panic( KCSAsyncClient, ECSAsyncBadState ); <span class="comment">
00413 <a name="l00132"></a>00132 <span class="keywordflow">break</span>;
00414 <a name="l00133"></a>00133 }
00415 <a name="l00134"></a>00134 }
00416 </pre></div>
00417 <p>
00418 </td>
00419 </tr>
00420 </table>
00421 <a class="anchor" name="79737b00f2b6a07492c7caf4220c6691"></a><!-- doxytag: member="CCSAsyncRequestHandler::DoCancel" ref="79737b00f2b6a07492c7caf4220c6691" args="()" --><p>
00422 <table class="mdTable" cellpadding="2" cellspacing="0">
00423 <tr>
00424 <td class="mdRow">
00425 <table cellpadding="0" cellspacing="0" border="0">
00426 <tr>
00427 <td class="md" nowrap valign="top">void CCSAsyncRequestHandler::DoCancel </td>
00428 <td class="md" valign="top">( </td>
00429 <td class="mdname1" valign="top" nowrap> </td>
00430 <td class="md" valign="top"> ) </td>
00431 <td class="md" nowrap><code> [protected]</code></td>
00432 </tr>
00433 </table>
00434 </td>
00435 </tr>
00436 </table>
00437 <table cellspacing="5" cellpadding="0" border="0">
00438 <tr>
00439 <td>
00440
00441 </td>
00442 <td>
00443
00444 <p>
00445 From CActive, DoCancel. Cancels any outstanding operation.
00446 <p>
00447 Definition at line <a class="el" href="csasyncrequesthandler_8cpp-source.html#l00141">141</a> of file <a class="el" href="csasyncrequesthandler_8cpp-source.html">csasyncrequesthandler.cpp</a>.
00448 <p>
00449 References <a class="el" href="timeserversession_8cpp-source.html#l00094">RTimeServerSession::CancelRequestTime()</a>, and <a class="el" href="csasyncrequesthandler_8h-source.html#l00123">iSession</a>.<div class="fragment"><pre class="fragment"><a name="l00142"></a>00142 {
00450 <a name="l00143"></a>00143 <a class="code" href="class_c_c_s_async_request_handler.html#d8033daa9b951c54149345b6871648bb">iSession</a>.<a class="code" href="class_r_time_server_session.html#52a5f2cddd36f215fea9c11e32ab88b8">CancelRequestTime</a>();
00451 <a name="l00144"></a>00144 }
00452 </pre></div>
00453 <p>
00454 </td>
00455 </tr>
00456 </table>
00457 <a class="anchor" name="9ce34ba0b947863222da3c63d0481044"></a><!-- doxytag: member="CCSAsyncRequestHandler::ConstructL" ref="9ce34ba0b947863222da3c63d0481044" args="()" --><p>
00458 <table class="mdTable" cellpadding="2" cellspacing="0">
00459 <tr>
00460 <td class="mdRow">
00461 <table cellpadding="0" cellspacing="0" border="0">
00462 <tr>
00463 <td class="md" nowrap valign="top">void CCSAsyncRequestHandler::ConstructL </td>
00464 <td class="md" valign="top">( </td>
00465 <td class="mdname1" valign="top" nowrap> </td>
00466 <td class="md" valign="top"> ) </td>
00467 <td class="md" nowrap><code> [private]</code></td>
00468 </tr>
00469 </table>
00470 </td>
00471 </tr>
00472 </table>
00473 <table cellspacing="5" cellpadding="0" border="0">
00474 <tr>
00475 <td>
00476
00477 </td>
00478 <td>
00479
00480 <p>
00481 ConstructL. Performs the second phase construction of a CCSAsyncRequestHandler object.
00482 <p>
00483 Definition at line <a class="el" href="csasyncrequesthandler_8cpp-source.html#l00057">57</a> of file <a class="el" href="csasyncrequesthandler_8cpp-source.html">csasyncrequesthandler.cpp</a>.
00484 <p>
00485 References <a class="el" href="timeserversession_8cpp-source.html#l00045">RTimeServerSession::Connect()</a>, and <a class="el" href="csasyncrequesthandler_8h-source.html#l00123">iSession</a>.<div class="fragment"><pre class="fragment"><a name="l00058"></a>00058 {
00486 <a name="l00059"></a>00059 User::LeaveIfError( <a class="code" href="class_c_c_s_async_request_handler.html#d8033daa9b951c54149345b6871648bb">iSession</a>.<a class="code" href="class_r_time_server_session.html#0a20867f2777f1db7349df290a5e6112">Connect</a>() );
00487 <a name="l00060"></a>00060 }
00488 </pre></div>
00489 <p>
00490 </td>
00491 </tr>
00492 </table>
00493 <hr><h2>Member Data Documentation</h2>
00494 <a class="anchor" name="d8033daa9b951c54149345b6871648bb"></a><!-- doxytag: member="CCSAsyncRequestHandler::iSession" ref="d8033daa9b951c54149345b6871648bb" args="" --><p>
00495 <table class="mdTable" cellpadding="2" cellspacing="0">
00496 <tr>
00497 <td class="mdRow">
00498 <table cellpadding="0" cellspacing="0" border="0">
00499 <tr>
00500 <td class="md" nowrap valign="top"><a class="el" href="class_r_time_server_session.html">RTimeServerSession</a> <a class="el" href="class_c_c_s_async_request_handler.html#d8033daa9b951c54149345b6871648bb">CCSAsyncRequestHandler::iSession</a><code> [private]</code> </td>
00501 </tr>
00502 </table>
00503 </td>
00504 </tr>
00505 </table>
00506 <table cellspacing="5" cellpadding="0" border="0">
00507 <tr>
00508 <td>
00509
00510 </td>
00511 <td>
00512
00513 <p>
00514 iSession, the time server session.
00515 <p>
00516 Definition at line <a class="el" href="csasyncrequesthandler_8h-source.html#l00123">123</a> of file <a class="el" href="csasyncrequesthandler_8h-source.html">csasyncrequesthandler.h</a>.
00517 <p>
00518 Referenced by <a class="el" href="csasyncrequesthandler_8cpp-source.html#l00057">ConstructL()</a>, <a class="el" href="csasyncrequesthandler_8cpp-source.html#l00141">DoCancel()</a>, <a class="el" href="csasyncrequesthandler_8cpp-source.html#l00088">RequestTime()</a>, and <a class="el" href="csasyncrequesthandler_8cpp-source.html#l00077">~CCSAsyncRequestHandler()</a>. </td>
00519 </tr>
00520 </table>
00521 <a class="anchor" name="ab88bd4e7e44b5e05aab3f182f76db1f"></a><!-- doxytag: member="CCSAsyncRequestHandler::iTime" ref="ab88bd4e7e44b5e05aab3f182f76db1f" args="" --><p>
00522 <table class="mdTable" cellpadding="2" cellspacing="0">
00523 <tr>
00524 <td class="mdRow">
00525 <table cellpadding="0" cellspacing="0" border="0">
00526 <tr>
00527 <td class="md" nowrap valign="top">TTime <a class="el" href="class_c_c_s_async_request_handler.html#ab88bd4e7e44b5e05aab3f182f76db1f">CCSAsyncRequestHandler::iTime</a><code> [private]</code> </td>
00528 </tr>
00529 </table>
00530 </td>
00531 </tr>
00532 </table>
00533 <table cellspacing="5" cellpadding="0" border="0">
00534 <tr>
00535 <td>
00536
00537 </td>
00538 <td>
00539
00540 <p>
00541 iTime, passed to the session to store the time.
00542 <p>
00543 Definition at line <a class="el" href="csasyncrequesthandler_8h-source.html#l00128">128</a> of file <a class="el" href="csasyncrequesthandler_8h-source.html">csasyncrequesthandler.h</a>.
00544 <p>
00545 Referenced by <a class="el" href="csasyncrequesthandler_8cpp-source.html#l00088">RequestTime()</a>, and <a class="el" href="csasyncrequesthandler_8cpp-source.html#l00151">Time()</a>. </td>
00546 </tr>
00547 </table>
00548 <a class="anchor" name="5598d19cc10719afd28055422087a200"></a><!-- doxytag: member="CCSAsyncRequestHandler::iObserver" ref="5598d19cc10719afd28055422087a200" args="" --><p>
00549 <table class="mdTable" cellpadding="2" cellspacing="0">
00550 <tr>
00551 <td class="mdRow">
00552 <table cellpadding="0" cellspacing="0" border="0">
00553 <tr>
00554 <td class="md" nowrap valign="top"><a class="el" href="class_m_async_time_observer.html">MAsyncTimeObserver</a>& <a class="el" href="class_c_c_s_async_request_handler.html#5598d19cc10719afd28055422087a200">CCSAsyncRequestHandler::iObserver</a><code> [private]</code> </td>
00555 </tr>
00556 </table>
00557 </td>
00558 </tr>
00559 </table>
00560 <table cellspacing="5" cellpadding="0" border="0">
00561 <tr>
00562 <td>
00563
00564 </td>
00565 <td>
00566
00567 <p>
00568 iObserver, observer which handles updates from the server.
00569 <p>
00570 Definition at line <a class="el" href="csasyncrequesthandler_8h-source.html#l00133">133</a> of file <a class="el" href="csasyncrequesthandler_8h-source.html">csasyncrequesthandler.h</a>.
00571 <p>
00572 Referenced by <a class="el" href="csasyncrequesthandler_8cpp-source.html#l00112">RunL()</a>. </td>
00573 </tr>
00574 </table>
00575 <hr>The documentation for this class was generated from the following files:<ul>
00576 <li><a class="el" href="csasyncrequesthandler_8h-source.html">csasyncrequesthandler.h</a><li><a class="el" href="csasyncrequesthandler_8cpp-source.html">csasyncrequesthandler.cpp</a></ul>
00577 <hr>
00578
00579 <table x-use-null-cells
00580 style="x-cell-content-align: top;
00581 width: 100%;
00582 border-spacing: 0px;
00583 border-spacing: 0px;"
00584 cellspacing=0
00585 width=100%>
00586 <col style="width: 50%;">
00587 <col style="width: 50%;">
00588
00589 <tr style="x-cell-content-align: top;"
00590 valign=top>
00591 <td style="width: 50%;
00592 padding-right: 10px;
00593 padding-left: 10px;
00594 border-right-style: None;
00595 border-left-style: None;
00596 border-top-style: None;
00597 border-bottom-style: None;"
00598 width=50%>
00599 <p style="font-family: Arial;"><small style="font-size: smaller;">� Nokia 2009</small></td>
00600 <td style="width: 50%;
00601 padding-right: 10px;
00602 padding-left: 10px;
00603 border-top-style: None;
00604 border-bottom-style: None;
00605 border-right-style: None;"
00606 width=50%>
00607 <p style="text-align: right; margin-right: -4px;"
00608 align=right><span style="font-weight: bold;"><a href="#Top"
00609 title="Back to top"><img
00610 src="top.gif"
00611 x-maintain-ratio=TRUE
00612 alt="Back to top"
00613 style="border: none;
00614 width: 18px;
00615 height: 15px;
00616 float: none;
00617 border-style: none;
00618 border-style: none;"
00619 width=18
00620 height=15
00621 border=0></a></span></td></tr>
00622 </table>
00623 </body>
00624 </html>
00625