Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/csasyncappui__8cpp-source_8html_source.html
<!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/doc/csasyncappui_8cpp-source.html 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/doc/csasyncappui_8cpp-source.html</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <!DOCTYPE HTML PUBLIC <span class="stringliteral">"-//W3C//DTD HTML 4.0 Transitional//EN"</span>>
<a name="l00002"></a>00002 <html>
<a name="l00003"></a>00003
<a name="l00004"></a>00004 <head>
<a name="l00005"></a>00005 <meta http-equiv=<span class="stringliteral">"Content-Type"</span> content=<span class="stringliteral">"text/html;charset=iso-8859-1"</span>>
<a name="l00006"></a>00006 <title>csasyncappui.cpp Source File</title>
<a name="l00007"></a>00007 <link href=<span class="stringliteral">"style.css"</span> rel=<span class="stringliteral">"stylesheet"</span> type=<span class="stringliteral">"text/css"</span>>
<a name="l00008"></a>00008 </head>
<a name="l00009"></a>00009
<a name="l00010"></a>00010 <table border=<span class="stringliteral">"0"</span> width=<span class="stringliteral">"100%"</span> height=<span class="stringliteral">"8"</span> bgcolor=<span class="stringliteral">"#eeeeee"</span>>
<a name="l00011"></a>00011 <tr> <td width=<span class="stringliteral">"100%"</span> height=<span class="stringliteral">"1"</span>><b><font size=<span class="stringliteral">"2"</span> color=<span class="stringliteral">"#000000"</span> face=<span class="stringliteral">"Arial, Helvetica, sans-serif"</span>><strong><a name=Top></a>
<a name="l00012"></a>00012 S60 5th Edition SDK </strong></font></b><br><i>Example Applications Guide</i></td></tr> </table>
<a name="l00013"></a>00013 <!-- Generated by Doxygen 1.4.5 -->
<a name="l00014"></a>00014 <div <span class="keyword">class</span>=<span class="stringliteral">"tabs"</span>>
<a name="l00015"></a>00015 <ul>
<a name="l00016"></a>00016 <li><a href=<span class="stringliteral">"index.html"</span>><span>Main&nbsp;Page</span></a></li>
<a name="l00017"></a>00017 <li><a href=<span class="stringliteral">"annotated.html"</span>><span>Classes</span></a></li>
<a name="l00018"></a>00018 <li <span class="keywordtype">id</span>=<span class="stringliteral">"current"</span>><a href=<span class="stringliteral">"files.html"</span>><span>Files</span></a></li>
<a name="l00019"></a>00019 </ul></div>
<a name="l00020"></a>00020 <h1>csasyncappui.cpp</h1><div <span class="keyword">class</span>=<span class="stringliteral">"fragment"</span>><pre <span class="keyword">class</span>=<span class="stringliteral">"fragment"</span>><a name=<span class="stringliteral">"l00001"</span>></a>00001 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">/*</span></span>
<a name="l00021"></a>00021 <span class="comment"><a name="l00002"></a>00002 <span class="comment">* ==============================================================================</span></span>
<a name="l00022"></a>00022 <span class="comment"><a name="l00003"></a>00003 <span class="comment">* Name : csasyncappui.cpp</span></span>
<a name="l00023"></a>00023 <span class="comment"><a name="l00004"></a>00004 <span class="comment">* Part of : CSAsync</span></span>
<a name="l00024"></a>00024 <span class="comment"><a name="l00005"></a>00005 <span class="comment">* Interface :</span></span>
<a name="l00025"></a>00025 <span class="comment"><a name="l00006"></a>00006 <span class="comment">* Description :</span></span>
<a name="l00026"></a>00026 <span class="comment"><a name="l00007"></a>00007 <span class="comment">* Version :</span></span>
<a name="l00027"></a>00027 <span class="comment"><a name="l00008"></a>00008 <span class="comment">*</span></span>
<a name="l00028"></a>00028 <span class="comment"><a name="l00009"></a>00009 <span class="comment">* Copyright (c) 2004-2006 Nokia Corporation.</span></span>
<a name="l00029"></a>00029 <span class="comment"><a name="l00010"></a>00010 <span class="comment">* This material, including documentation and any related</span></span>
<a name="l00030"></a>00030 <span class="comment"><a name="l00011"></a>00011 <span class="comment">* computer programs, is protected by copyright controlled by</span></span>
<a name="l00031"></a>00031 <span class="comment"><a name="l00012"></a>00012 <span class="comment">* Nokia Corporation.</span></span>
<a name="l00032"></a>00032 <span class="comment"><a name="l00013"></a>00013 <span class="comment">* ==============================================================================</span></span>
<a name="l00033"></a>00033 <span class="comment"><a name="l00014"></a>00014 <span class="comment">*/</span></span>
<a name="l00034"></a>00034 <a name=<span class="stringliteral">"l00015"</span>></a>00015
<a name="l00035"></a>00035 <a name=<span class="stringliteral">"l00016"</span>></a>00016
<a name="l00036"></a>00036 <a name=<span class="stringliteral">"l00017"</span>></a>00017 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// INCLUDE FILES</span></span>
<a name="l00037"></a>00037 <a name=<span class="stringliteral">"l00018"</span>></a>00018 <span <span class="keyword">class</span>=<span class="stringliteral">"preprocessor"</span>>#include &lt;eikmenup.h&gt;</span>
<a name="l00038"></a>00038 <a name=<span class="stringliteral">"l00019"</span>></a>00019 <span <span class="keyword">class</span>=<span class="stringliteral">"preprocessor"</span>>#include &lt;avkon.hrh&gt;</span>
<a name="l00039"></a>00039 <a name=<span class="stringliteral">"l00020"</span>></a>00020 <span <span class="keyword">class</span>=<span class="stringliteral">"preprocessor"</span>>#include &lt;CSAsync.rsg&gt;</span>
<a name="l00040"></a>00040 <a name=<span class="stringliteral">"l00021"</span>></a>00021
<a name="l00041"></a>00041 <a name=<span class="stringliteral">"l00022"</span>></a>00022 <span <span class="keyword">class</span>=<span class="stringliteral">"preprocessor"</span>>#include <span class="stringliteral">"CSAsync.pan"</span></span>
<a name="l00042"></a>00042 <a name=<span class="stringliteral">"l00023"</span>></a>00023 <span <span class="keyword">class</span>=<span class="stringliteral">"preprocessor"</span>>#include <span class="stringliteral">"CSAsyncAppUi.h"</span></span>
<a name="l00043"></a>00043 <a name=<span class="stringliteral">"l00024"</span>></a>00024 <span <span class="keyword">class</span>=<span class="stringliteral">"preprocessor"</span>>#include <span class="stringliteral">"CSAsyncAppView.h"</span></span>
<a name="l00044"></a>00044 <a name=<span class="stringliteral">"l00025"</span>></a>00025 <span <span class="keyword">class</span>=<span class="stringliteral">"preprocessor"</span>>#include <span class="stringliteral">"CSAsyncDocument.h"</span></span>
<a name="l00045"></a>00045 <a name=<span class="stringliteral">"l00026"</span>></a>00026 <span <span class="keyword">class</span>=<span class="stringliteral">"preprocessor"</span>>#include <span class="stringliteral">"CSAsync.hrh"</span></span>
<a name="l00046"></a>00046 <a name=<span class="stringliteral">"l00027"</span>></a>00027
<a name="l00047"></a>00047 <a name=<span class="stringliteral">"l00028"</span>></a>00028 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// ========================= MEMBER FUNCTIONS ==================================</span></span>
<a name="l00048"></a>00048 <a name=<span class="stringliteral">"l00029"</span>></a>00029
<a name="l00049"></a>00049 <a name=<span class="stringliteral">"l00030"</span>></a>00030 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// -----------------------------------------------------------------------------</span></span>
<a name="l00050"></a>00050 <a name=<span class="stringliteral">"l00031"</span>></a>00031 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// CCSAsyncAppUi::CCSAsyncAppUi()</span></span>
<a name="l00051"></a>00051 <a name=<span class="stringliteral">"l00032"</span>></a>00032 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// C++ default constructor can NOT contain any code, that might leave.</span></span>
<a name="l00052"></a>00052 <a name=<span class="stringliteral">"l00033"</span>></a>00033 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// -----------------------------------------------------------------------------</span></span>
<a name="l00053"></a>00053 <a name=<span class="stringliteral">"l00034"</span>></a>00034 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">//</span></span>
<a name="l00054"></a>00054 <a name=<span class="stringliteral">"l00035"</span>></a><a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_ui.html#1145745dbcfc53f07104bf3b2041317c"</span>>00035</a> <a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_ui.html#1145745dbcfc53f07104bf3b2041317c"</span>><a class="code" href="class_c_c_s_async_app_ui.html#afda9cd5f962051badaa7f8173e7415d2">CCSAsyncAppUi::CCSAsyncAppUi</a></a>()
<a name="l00055"></a>00055 <a name=<span class="stringliteral">"l00036"</span>></a>00036 {
<a name="l00056"></a>00056 <a name=<span class="stringliteral">"l00037"</span>></a>00037 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// No implementation required</span></span>
<a name="l00057"></a>00057 <a name=<span class="stringliteral">"l00038"</span>></a>00038 }
<a name="l00058"></a>00058 <a name=<span class="stringliteral">"l00039"</span>></a>00039
<a name="l00059"></a>00059 <a name=<span class="stringliteral">"l00040"</span>></a>00040 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// -----------------------------------------------------------------------------</span></span>
<a name="l00060"></a>00060 <a name=<span class="stringliteral">"l00041"</span>></a>00041 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// CCSAsyncAppUi::ConstructL()</span></span>
<a name="l00061"></a>00061 <a name=<span class="stringliteral">"l00042"</span>></a>00042 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// Symbian 2nd phase constructor can leave.</span></span>
<a name="l00062"></a>00062 <a name=<span class="stringliteral">"l00043"</span>></a>00043 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// -----------------------------------------------------------------------------</span></span>
<a name="l00063"></a>00063 <a name=<span class="stringliteral">"l00044"</span>></a>00044 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">//</span></span>
<a name="l00064"></a>00064 <a name=<span class="stringliteral">"l00045"</span>></a><a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_ui.html#9ce34ba0b947863222da3c63d0481044"</span>>00045</a> <span <span class="keyword">class</span>=<span class="stringliteral">"keywordtype"</span>><span class="keywordtype">void</span></span> <a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_ui.html#9ce34ba0b947863222da3c63d0481044"</span>>CCSAsyncAppUi::ConstructL</a>()
<a name="l00065"></a>00065 <a name=<span class="stringliteral">"l00046"</span>></a>00046 {
<a name="l00066"></a>00066 <a name=<span class="stringliteral">"l00047"</span>></a>00047 BaseConstructL();
<a name="l00067"></a>00067 <a name=<span class="stringliteral">"l00048"</span>></a>00048
<a name="l00068"></a>00068 <a name=<span class="stringliteral">"l00049"</span>></a>00049 <a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_ui.html#45dd0a3e0e75e56b4727a01a8ef2c6b1"</span>>iAppView</a> = <a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_view.html#113d3c41dfbbbaf3bd2d6d1213cc9f32"</span>><a class="code" href="class_c_c_s_async_app_view.html#aee141ad7597984514324475328579664">CCSAsyncAppView::NewL</a></a>( ClientRect(), *<a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_ui.html#1e0f1d7283b2cd8210c9d7ab96e93267"</span>>AsyncDocument</a>() );
<a name="l00069"></a>00069 <a name=<span class="stringliteral">"l00050"</span>></a>00050
<a name="l00070"></a>00070 <a name=<span class="stringliteral">"l00051"</span>></a>00051 AddToStackL( <a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_ui.html#45dd0a3e0e75e56b4727a01a8ef2c6b1"</span>>iAppView</a> );
<a name="l00071"></a>00071 <a name=<span class="stringliteral">"l00052"</span>></a>00052 }
<a name="l00072"></a>00072 <a name=<span class="stringliteral">"l00053"</span>></a>00053
<a name="l00073"></a>00073 <a name=<span class="stringliteral">"l00054"</span>></a>00054 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// -----------------------------------------------------------------------------</span></span>
<a name="l00074"></a>00074 <a name=<span class="stringliteral">"l00055"</span>></a>00055 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// CCSAsyncAppUi::~CCSAsyncAppUi()</span></span>
<a name="l00075"></a>00075 <a name=<span class="stringliteral">"l00056"</span>></a>00056 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// Destructor.</span></span>
<a name="l00076"></a>00076 <a name=<span class="stringliteral">"l00057"</span>></a>00057 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// -----------------------------------------------------------------------------</span></span>
<a name="l00077"></a>00077 <a name=<span class="stringliteral">"l00058"</span>></a>00058 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">//</span></span>
<a name="l00078"></a>00078 <a name=<span class="stringliteral">"l00059"</span>></a><a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_ui.html#06a6b26206d4efb097029fdd4f06b116"</span>>00059</a> <a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_ui.html#06a6b26206d4efb097029fdd4f06b116"</span>><a class="code" href="class_c_c_s_async_app_ui.html#aae5e924f849d2b3b5a9bf8d796254a53">CCSAsyncAppUi::~CCSAsyncAppUi</a></a>()
<a name="l00079"></a>00079 <a name=<span class="stringliteral">"l00060"</span>></a>00060 {
<a name="l00080"></a>00080 <a name=<span class="stringliteral">"l00061"</span>></a>00061 <span <span class="keyword">class</span>=<span class="stringliteral">"keywordflow"</span>><span class="keywordflow">if</span></span> ( <a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_ui.html#45dd0a3e0e75e56b4727a01a8ef2c6b1"</span>>iAppView</a> )
<a name="l00081"></a>00081 <a name=<span class="stringliteral">"l00062"</span>></a>00062 {
<a name="l00082"></a>00082 <a name=<span class="stringliteral">"l00063"</span>></a>00063 iEikonEnv-&gt;RemoveFromStack( <a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_ui.html#45dd0a3e0e75e56b4727a01a8ef2c6b1"</span>>iAppView</a> );
<a name="l00083"></a>00083 <a name=<span class="stringliteral">"l00064"</span>></a>00064 <span <span class="keyword">class</span>=<span class="stringliteral">"keyword"</span>><span class="keyword">delete</span></span> iAppView;
<a name="l00084"></a>00084 <a name=<span class="stringliteral">"l00065"</span>></a>00065 iAppView = NULL;
<a name="l00085"></a>00085 <a name=<span class="stringliteral">"l00066"</span>></a>00066 }
<a name="l00086"></a>00086 <a name=<span class="stringliteral">"l00067"</span>></a>00067 }
<a name="l00087"></a>00087 <a name=<span class="stringliteral">"l00068"</span>></a>00068
<a name="l00088"></a>00088 <a name=<span class="stringliteral">"l00069"</span>></a>00069 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// -----------------------------------------------------------------------------</span></span>
<a name="l00089"></a>00089 <a name=<span class="stringliteral">"l00070"</span>></a>00070 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// CCSAsyncAppUi::AsyncDocument() const</span></span>
<a name="l00090"></a>00090 <a name=<span class="stringliteral">"l00071"</span>></a>00071 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// Casts iDocument member from CAknAppUi to CCSAsyncDocument.</span></span>
<a name="l00091"></a>00091 <a name=<span class="stringliteral">"l00072"</span>></a>00072 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// -----------------------------------------------------------------------------</span></span>
<a name="l00092"></a>00092 <a name=<span class="stringliteral">"l00073"</span>></a>00073 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">//</span></span>
<a name="l00093"></a>00093 <a name=<span class="stringliteral">"l00074"</span>></a><a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_ui.html#1e0f1d7283b2cd8210c9d7ab96e93267"</span>>00074</a> <a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_document.html"</span>><a class="code" href="class_c_c_s_async_document.html">CCSAsyncDocument</a></a>* <a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_ui.html#1e0f1d7283b2cd8210c9d7ab96e93267"</span>>CCSAsyncAppUi::AsyncDocument</a>()<span <span class="keyword">class</span>=<span class="stringliteral">"keyword"</span>> const</span>
<a name="l00094"></a>00094 <a name=<span class="stringliteral">"l00075"</span>></a>00075 <span <span class="keyword">class</span>=<span class="stringliteral">"keyword"</span>> </span>{
<a name="l00095"></a>00095 <a name=<span class="stringliteral">"l00076"</span>></a>00076 <span <span class="keyword">class</span>=<span class="stringliteral">"keywordflow"</span>><span class="keywordflow">return</span></span> ( static_cast&lt;<a class="code" href="class_c_c_s_async_document.html">CCSAsyncDocument</a>*&gt;( iDocument ) );
<a name="l00096"></a>00096 <a name=<span class="stringliteral">"l00077"</span>></a>00077 }
<a name="l00097"></a>00097 <a name=<span class="stringliteral">"l00078"</span>></a>00078
<a name="l00098"></a>00098 <a name=<span class="stringliteral">"l00079"</span>></a>00079 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// -----------------------------------------------------------------------------</span></span>
<a name="l00099"></a>00099 <a name=<span class="stringliteral">"l00080"</span>></a>00080 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// CCSAsyncAppUi::HandleCommandL( TInt aCommand )</span></span>
<a name="l00100"></a>00100 <a name=<span class="stringliteral">"l00081"</span>></a>00081 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// Handles user menu selections.</span></span>
<a name="l00101"></a>00101 <a name=<span class="stringliteral">"l00082"</span>></a>00082 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// -----------------------------------------------------------------------------</span></span>
<a name="l00102"></a>00102 <a name=<span class="stringliteral">"l00083"</span>></a>00083 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">//</span></span>
<a name="l00103"></a>00103 <a name=<span class="stringliteral">"l00084"</span>></a><a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_ui.html#a682d228622cea7790645ce10f591242"</span>>00084</a> <span <span class="keyword">class</span>=<span class="stringliteral">"keywordtype"</span>><span class="keywordtype">void</span></span> <a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_ui.html#a682d228622cea7790645ce10f591242"</span>><a class="code" href="class_c_c_s_async_app_ui.html#ae2fec6b63cee85fe723168a3e949d9c1">CCSAsyncAppUi::HandleCommandL</a></a>( TInt aCommand )
<a name="l00104"></a>00104 <a name=<span class="stringliteral">"l00085"</span>></a>00085 {
<a name="l00105"></a>00105 <a name=<span class="stringliteral">"l00086"</span>></a>00086 <span <span class="keyword">class</span>=<span class="stringliteral">"keywordflow"</span>><span class="keywordflow">switch</span></span>( aCommand )
<a name="l00106"></a>00106 <a name=<span class="stringliteral">"l00087"</span>></a>00087 {
<a name="l00107"></a>00107 <a name=<span class="stringliteral">"l00088"</span>></a>00088 <span <span class="keyword">class</span>=<span class="stringliteral">"keywordflow"</span>><span class="keywordflow">case</span></span> EEikCmdExit:
<a name="l00108"></a>00108 <a name=<span class="stringliteral">"l00089"</span>></a>00089 <span <span class="keyword">class</span>=<span class="stringliteral">"keywordflow"</span>><span class="keywordflow">case</span></span> EAknSoftkeyExit:
<a name="l00109"></a>00109 <a name=<span class="stringliteral">"l00090"</span>></a>00090 Exit();
<a name="l00110"></a>00110 <a name=<span class="stringliteral">"l00091"</span>></a>00091 <span <span class="keyword">class</span>=<span class="stringliteral">"keywordflow"</span>><span class="keywordflow">break</span></span>;
<a name="l00111"></a>00111 <a name=<span class="stringliteral">"l00092"</span>></a>00092
<a name="l00112"></a>00112 <a name=<span class="stringliteral">"l00093"</span>></a>00093 <span <span class="keyword">class</span>=<span class="stringliteral">"keywordflow"</span>><span class="keywordflow">case</span></span> EStartClock:
<a name="l00113"></a>00113 <a name=<span class="stringliteral">"l00094"</span>></a>00094 <a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_ui.html#1e0f1d7283b2cd8210c9d7ab96e93267"</span>>AsyncDocument</a>()-&gt;<a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_document.html#49951129866458617c40b0dc2b4f393f"</span>>UpdateTime</a>();
<a name="l00114"></a>00114 <a name=<span class="stringliteral">"l00095"</span>></a>00095 <span <span class="keyword">class</span>=<span class="stringliteral">"keywordflow"</span>><span class="keywordflow">break</span></span>;
<a name="l00115"></a>00115 <a name=<span class="stringliteral">"l00096"</span>></a>00096
<a name="l00116"></a>00116 <a name=<span class="stringliteral">"l00097"</span>></a>00097 <span <span class="keyword">class</span>=<span class="stringliteral">"keywordflow"</span>><span class="keywordflow">case</span></span> EStopClock:
<a name="l00117"></a>00117 <a name=<span class="stringliteral">"l00098"</span>></a>00098 <a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_ui.html#1e0f1d7283b2cd8210c9d7ab96e93267"</span>>AsyncDocument</a>()-&gt;<a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_document.html#0dcbea3e9ce301f1d5ac23a7679b8ee0"</span>>StopClock</a>();
<a name="l00118"></a>00118 <a name=<span class="stringliteral">"l00099"</span>></a>00099 <span <span class="keyword">class</span>=<span class="stringliteral">"keywordflow"</span>><span class="keywordflow">break</span></span>;
<a name="l00119"></a>00119 <a name=<span class="stringliteral">"l00100"</span>></a>00100
<a name="l00120"></a>00120 <a name=<span class="stringliteral">"l00101"</span>></a>00101 <span <span class="keyword">class</span>=<span class="stringliteral">"keywordflow"</span>><span class="keywordflow">default</span></span>:
<a name="l00121"></a>00121 <a name=<span class="stringliteral">"l00102"</span>></a>00102 <span <span class="keyword">class</span>=<span class="stringliteral">"keywordflow"</span>><span class="keywordflow">break</span></span>;
<a name="l00122"></a>00122 <a name=<span class="stringliteral">"l00103"</span>></a>00103 }
<a name="l00123"></a>00123 <a name=<span class="stringliteral">"l00104"</span>></a>00104 }
<a name="l00124"></a>00124 <a name=<span class="stringliteral">"l00105"</span>></a>00105
<a name="l00125"></a>00125 <a name=<span class="stringliteral">"l00106"</span>></a>00106 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// -----------------------------------------------------------------------------</span></span>
<a name="l00126"></a>00126 <a name=<span class="stringliteral">"l00107"</span>></a>00107 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// CCSAsyncAppUi::HandleTimeUpdate()</span></span>
<a name="l00127"></a>00127 <a name=<span class="stringliteral">"l00108"</span>></a>00108 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// Updates view</span></span>
<a name="l00128"></a>00128 <a name=<span class="stringliteral">"l00109"</span>></a>00109 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// -----------------------------------------------------------------------------</span></span>
<a name="l00129"></a>00129 <a name=<span class="stringliteral">"l00110"</span>></a>00110 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">//</span></span>
<a name="l00130"></a>00130 <a name=<span class="stringliteral">"l00111"</span>></a><a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_ui.html#081e2db0d35721e6ad6d5d1d99fbbd83"</span>>00111</a> <span <span class="keyword">class</span>=<span class="stringliteral">"keywordtype"</span>><span class="keywordtype">void</span></span> <a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_ui.html#081e2db0d35721e6ad6d5d1d99fbbd83"</span>><a class="code" href="class_c_c_s_async_app_ui.html#a9e958a99039004f12093c041b71e3ad6">CCSAsyncAppUi::HandleTimeUpdate</a></a>()
<a name="l00131"></a>00131 <a name=<span class="stringliteral">"l00112"</span>></a>00112 {
<a name="l00132"></a>00132 <a name=<span class="stringliteral">"l00113"</span>></a>00113 __ASSERT_ALWAYS( <a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_ui.html#45dd0a3e0e75e56b4727a01a8ef2c6b1"</span>>iAppView</a>, User::Panic ( KCSAsyncClient,
<a name="l00133"></a>00133 <a name=<span class="stringliteral">"l00114"</span>></a>00114 ECSAsyncProgram ) );
<a name="l00134"></a>00134 <a name=<span class="stringliteral">"l00115"</span>></a>00115 <a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_ui.html#45dd0a3e0e75e56b4727a01a8ef2c6b1"</span>>iAppView</a>-&gt;DrawNow();
<a name="l00135"></a>00135 <a name=<span class="stringliteral">"l00116"</span>></a>00116 }
<a name="l00136"></a>00136 <a name=<span class="stringliteral">"l00117"</span>></a>00117
<a name="l00137"></a>00137 <a name=<span class="stringliteral">"l00118"</span>></a>00118 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// -----------------------------------------------------------------------------</span></span>
<a name="l00138"></a>00138 <a name=<span class="stringliteral">"l00119"</span>></a>00119 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// CCSAsyncAppUi::DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane )</span></span>
<a name="l00139"></a>00139 <a name=<span class="stringliteral">"l00120"</span>></a>00120 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// Prepares the menu prior to display.</span></span>
<a name="l00140"></a>00140 <a name=<span class="stringliteral">"l00121"</span>></a>00121 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// -----------------------------------------------------------------------------</span></span>
<a name="l00141"></a>00141 <a name=<span class="stringliteral">"l00122"</span>></a>00122 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">//</span></span>
<a name="l00142"></a>00142 <a name=<span class="stringliteral">"l00123"</span>></a><a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_ui.html#3ae77c2aed5e1270a13c14bd5aa415fe"</span>>00123</a> <span <span class="keyword">class</span>=<span class="stringliteral">"keywordtype"</span>><span class="keywordtype">void</span></span> <a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_ui.html#3ae77c2aed5e1270a13c14bd5aa415fe"</span>><a class="code" href="class_c_c_s_async_app_ui.html#a1dac64c94109059bd1b5564c753fb798">CCSAsyncAppUi::DynInitMenuPaneL</a></a>( TInt aResourceId,
<a name="l00143"></a>00143 <a name=<span class="stringliteral">"l00124"</span>></a>00124 CEikMenuPane* aMenuPane )
<a name="l00144"></a>00144 <a name=<span class="stringliteral">"l00125"</span>></a>00125 {
<a name="l00145"></a>00145 <a name=<span class="stringliteral">"l00126"</span>></a>00126 <span <span class="keyword">class</span>=<span class="stringliteral">"keywordflow"</span>><span class="keywordflow">if</span></span> ( aResourceId == R_CSASYNC_MENU )
<a name="l00146"></a>00146 <a name=<span class="stringliteral">"l00127"</span>></a>00127 {
<a name="l00147"></a>00147 <a name=<span class="stringliteral">"l00128"</span>></a>00128 <span <span class="keyword">class</span>=<span class="stringliteral">"keywordflow"</span>><span class="keywordflow">if</span></span> ( <a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_ui.html#1e0f1d7283b2cd8210c9d7ab96e93267"</span>>AsyncDocument</a>()-&gt;ClockActive() )
<a name="l00148"></a>00148 <a name=<span class="stringliteral">"l00129"</span>></a>00129 {
<a name="l00149"></a>00149 <a name=<span class="stringliteral">"l00130"</span>></a>00130 aMenuPane-&gt;SetItemDimmed( EStartClock, ETrue );
<a name="l00150"></a>00150 <a name=<span class="stringliteral">"l00131"</span>></a>00131 aMenuPane-&gt;SetItemDimmed( EStopClock, EFalse );
<a name="l00151"></a>00151 <a name=<span class="stringliteral">"l00132"</span>></a>00132 }
<a name="l00152"></a>00152 <a name=<span class="stringliteral">"l00133"</span>></a>00133 <span <span class="keyword">class</span>=<span class="stringliteral">"keywordflow"</span>><span class="keywordflow">else</span></span>
<a name="l00153"></a>00153 <a name=<span class="stringliteral">"l00134"</span>></a>00134 {
<a name="l00154"></a>00154 <a name=<span class="stringliteral">"l00135"</span>></a>00135 aMenuPane-&gt;SetItemDimmed( EStartClock, EFalse );
<a name="l00155"></a>00155 <a name=<span class="stringliteral">"l00136"</span>></a>00136 aMenuPane-&gt;SetItemDimmed( EStopClock, ETrue );
<a name="l00156"></a>00156 <a name=<span class="stringliteral">"l00137"</span>></a>00137 }
<a name="l00157"></a>00157 <a name=<span class="stringliteral">"l00138"</span>></a>00138 }
<a name="l00158"></a>00158 <a name=<span class="stringliteral">"l00139"</span>></a>00139 }
<a name="l00159"></a>00159 <a name=<span class="stringliteral">"l00140"</span>></a>00140
<a name="l00160"></a>00160 <a name=<span class="stringliteral">"l00141"</span>></a>00141 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// -----------------------------------------------------------------------------</span></span>
<a name="l00161"></a>00161 <a name=<span class="stringliteral">"l00142"</span>></a>00142 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// CCSAsyncAppUi::HandleResourceChangeL( TInt aType )</span></span>
<a name="l00162"></a>00162 <a name=<span class="stringliteral">"l00143"</span>></a>00143 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// Called by framework when layout is changed.</span></span>
<a name="l00163"></a>00163 <a name=<span class="stringliteral">"l00144"</span>></a>00144 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// -----------------------------------------------------------------------------</span></span>
<a name="l00164"></a>00164 <a name=<span class="stringliteral">"l00145"</span>></a>00145 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">//</span></span>
<a name="l00165"></a>00165 <a name=<span class="stringliteral">"l00146"</span>></a><a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_ui.html#6acdbe8a9b57446075bf46d035e751eb"</span>>00146</a> <span <span class="keyword">class</span>=<span class="stringliteral">"keywordtype"</span>><span class="keywordtype">void</span></span> <a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_ui.html#6acdbe8a9b57446075bf46d035e751eb"</span>><a class="code" href="class_c_c_s_async_app_ui.html#a77f698bf61022417b2d584da65bee67d">CCSAsyncAppUi::HandleResourceChangeL</a></a>( TInt aType )
<a name="l00166"></a>00166 <a name=<span class="stringliteral">"l00147"</span>></a>00147 {
<a name="l00167"></a>00167 <a name=<span class="stringliteral">"l00148"</span>></a>00148 CAknAppUi::HandleResourceChangeL( aType );
<a name="l00168"></a>00168 <a name=<span class="stringliteral">"l00149"</span>></a>00149
<a name="l00169"></a>00169 <a name=<span class="stringliteral">"l00150"</span>></a>00150 <span <span class="keyword">class</span>=<span class="stringliteral">"keywordflow"</span>><span class="keywordflow">if</span></span> ( aType==KEikDynamicLayoutVariantSwitch )
<a name="l00170"></a>00170 <a name=<span class="stringliteral">"l00151"</span>></a>00151 {
<a name="l00171"></a>00171 <a name=<span class="stringliteral">"l00152"</span>></a>00152 <a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_ui.html#45dd0a3e0e75e56b4727a01a8ef2c6b1"</span>>iAppView</a>-&gt;SetRect( ClientRect() );
<a name="l00172"></a>00172 <a name=<span class="stringliteral">"l00153"</span>></a>00153 }
<a name="l00173"></a>00173 <a name=<span class="stringliteral">"l00154"</span>></a>00154 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">//Controls derived from CCoeControl, handled in container class</span></span>
<a name="l00174"></a>00174 <a name=<span class="stringliteral">"l00155"</span>></a>00155 <a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_ui.html#45dd0a3e0e75e56b4727a01a8ef2c6b1"</span>>iAppView</a>-&gt;HandleResourceChange( aType );
<a name="l00175"></a>00175 <a name=<span class="stringliteral">"l00156"</span>></a>00156 }
<a name="l00176"></a>00176 <a name=<span class="stringliteral">"l00157"</span>></a>00157
<a name="l00177"></a>00177 <a name=<span class="stringliteral">"l00158"</span>></a>00158 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// End of File</span></span>
<a name="l00178"></a>00178 </pre></div><hr>
<a name="l00179"></a>00179
<a name="l00180"></a>00180 <table x-use-null-cells
<a name="l00181"></a>00181 style=<span class="stringliteral">"x-cell-content-align: top;</span>
<a name="l00182"></a>00182 <span class="stringliteral"> width: 100%;</span>
<a name="l00183"></a>00183 <span class="stringliteral"> border-spacing: 0px;</span>
<a name="l00184"></a>00184 <span class="stringliteral"> border-spacing: 0px;"</span>
<a name="l00185"></a>00185 cellspacing=0
<a name="l00186"></a>00186 width=100%>
<a name="l00187"></a>00187 <col style=<span class="stringliteral">"width: 50%;"</span>>
<a name="l00188"></a>00188 <col style=<span class="stringliteral">"width: 50%;"</span>>
<a name="l00189"></a>00189
<a name="l00190"></a>00190 <tr style=<span class="stringliteral">"x-cell-content-align: top;"</span>
<a name="l00191"></a>00191 valign=top>
<a name="l00192"></a>00192 <td style=<span class="stringliteral">"width: 50%;</span>
<a name="l00193"></a>00193 <span class="stringliteral"> padding-right: 10px;</span>
<a name="l00194"></a>00194 <span class="stringliteral"> padding-left: 10px;</span>
<a name="l00195"></a>00195 <span class="stringliteral"> border-right-style: None;</span>
<a name="l00196"></a>00196 <span class="stringliteral"> border-left-style: None;</span>
<a name="l00197"></a>00197 <span class="stringliteral"> border-top-style: None;</span>
<a name="l00198"></a>00198 <span class="stringliteral"> border-bottom-style: None;"</span>
<a name="l00199"></a>00199 width=50%>
<a name="l00200"></a>00200 <p style=<span class="stringliteral">"font-family: Arial;"</span>><small style=<span class="stringliteral">"font-size: smaller;"</span>>© Nokia 2009</small></td>
<a name="l00201"></a>00201 <td style=<span class="stringliteral">"width: 50%;</span>
<a name="l00202"></a>00202 <span class="stringliteral"> padding-right: 10px;</span>
<a name="l00203"></a>00203 <span class="stringliteral"> padding-left: 10px;</span>
<a name="l00204"></a>00204 <span class="stringliteral"> border-top-style: None;</span>
<a name="l00205"></a>00205 <span class="stringliteral"> border-bottom-style: None;</span>
<a name="l00206"></a>00206 <span class="stringliteral"> border-right-style: None;"</span>
<a name="l00207"></a>00207 width=50%>
<a name="l00208"></a>00208 <p style=<span class="stringliteral">"text-align: right; margin-right: -4px;"</span>
<a name="l00209"></a>00209 align=right><span style=<span class="stringliteral">"font-weight: bold;"</span>><a href=<span class="stringliteral">"#Top"</span>
<a name="l00210"></a>00210 title=<span class="stringliteral">"Back to top"</span>><img
<a name="l00211"></a>00211 src=<span class="stringliteral">"top.gif"</span>
<a name="l00212"></a>00212 x-maintain-ratio=TRUE
<a name="l00213"></a>00213 alt=<span class="stringliteral">"Back to top"</span>
<a name="l00214"></a>00214 style=<span class="stringliteral">"border: none;</span>
<a name="l00215"></a>00215 <span class="stringliteral"> width: 18px;</span>
<a name="l00216"></a>00216 <span class="stringliteral"> height: 15px;</span>
<a name="l00217"></a>00217 <span class="stringliteral"> float: none;</span>
<a name="l00218"></a>00218 <span class="stringliteral"> border-style: none;</span>
<a name="l00219"></a>00219 <span class="stringliteral"> border-style: none;"</span>
<a name="l00220"></a>00220 width=18
<a name="l00221"></a>00221 height=15
<a name="l00222"></a>00222 border=0></a></span></td></tr>
<a name="l00223"></a>00223 </table>
<a name="l00224"></a>00224 </body>
<a name="l00225"></a>00225 </html>
<a name="l00226"></a>00226
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
</body>
</html>