author | Dominic Pinkman <Dominic.Pinkman@Nokia.com> |
Tue, 30 Mar 2010 16:16:55 +0100 | |
changeset 6 | 43e37759235e |
permissions | -rw-r--r-- |
6
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
3 |
<head> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
4 |
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
5 |
<title>TB9.2 Example Applications: examples/S60CppExamples/ClientServerAsync/doc/csasyncappview_8cpp-source.html Source File</title> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
6 |
<link href="tabs.css" rel="stylesheet" type="text/css"/> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
7 |
<link href="doxygen.css" rel="stylesheet" type="text/css"/> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
8 |
</head> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
9 |
<body> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
10 |
<!-- Generated by Doxygen 1.6.2 --> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
11 |
<h1>examples/S60CppExamples/ClientServerAsync/doc/csasyncappview_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>> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
12 |
<a name="l00002"></a>00002 <html> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
13 |
<a name="l00003"></a>00003 |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
14 |
<a name="l00004"></a>00004 <head> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
15 |
<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>> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
16 |
<a name="l00006"></a>00006 <title>csasyncappview.cpp Source File</title> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
17 |
<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>> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
18 |
<a name="l00008"></a>00008 </head> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
19 |
<a name="l00009"></a>00009 |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
20 |
<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>> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
21 |
<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> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
22 |
<a name="l00012"></a>00012 S60 5th Edition SDK </strong></font></b><br><i>Example Applications Guide</i></td></tr> </table> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
23 |
<a name="l00013"></a>00013 <!-- Generated by Doxygen 1.4.5 --> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
24 |
<a name="l00014"></a>00014 <div <span class="keyword">class</span>=<span class="stringliteral">"tabs"</span>> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
25 |
<a name="l00015"></a>00015 <ul> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
26 |
<a name="l00016"></a>00016 <li><a href=<span class="stringliteral">"index.html"</span>><span>Main&nbsp;Page</span></a></li> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
27 |
<a name="l00017"></a>00017 <li><a href=<span class="stringliteral">"annotated.html"</span>><span>Classes</span></a></li> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
28 |
<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> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
29 |
<a name="l00019"></a>00019 </ul></div> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
30 |
<a name="l00020"></a>00020 <h1>csasyncappview.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> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
31 |
<a name="l00021"></a>00021 <span class="comment"><a name="l00002"></a>00002 <span class="comment">* ==============================================================================</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
32 |
<a name="l00022"></a>00022 <span class="comment"><a name="l00003"></a>00003 <span class="comment">* Name : csasyncappview.cpp</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
33 |
<a name="l00023"></a>00023 <span class="comment"><a name="l00004"></a>00004 <span class="comment">* Part of : CSAsync</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
34 |
<a name="l00024"></a>00024 <span class="comment"><a name="l00005"></a>00005 <span class="comment">* Interface :</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
35 |
<a name="l00025"></a>00025 <span class="comment"><a name="l00006"></a>00006 <span class="comment">* Description :</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
36 |
<a name="l00026"></a>00026 <span class="comment"><a name="l00007"></a>00007 <span class="comment">* Version :</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
37 |
<a name="l00027"></a>00027 <span class="comment"><a name="l00008"></a>00008 <span class="comment">*</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
38 |
<a name="l00028"></a>00028 <span class="comment"><a name="l00009"></a>00009 <span class="comment">* Copyright (c) 2004-2006 Nokia Corporation.</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
39 |
<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> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
40 |
<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> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
41 |
<a name="l00031"></a>00031 <span class="comment"><a name="l00012"></a>00012 <span class="comment">* Nokia Corporation.</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
42 |
<a name="l00032"></a>00032 <span class="comment"><a name="l00013"></a>00013 <span class="comment">* ==============================================================================</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
43 |
<a name="l00033"></a>00033 <span class="comment"><a name="l00014"></a>00014 <span class="comment">*/</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
44 |
<a name="l00034"></a>00034 <a name=<span class="stringliteral">"l00015"</span>></a>00015 |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
45 |
<a name="l00035"></a>00035 <a name=<span class="stringliteral">"l00016"</span>></a>00016 |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
46 |
<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> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
47 |
<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;coemain.h&gt;</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
48 |
<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;eikenv.h&gt;</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
49 |
<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;avkon.rsg&gt;</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
50 |
<a name="l00040"></a>00040 <a name=<span class="stringliteral">"l00021"</span>></a>00021 |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
51 |
<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">"CSAsyncAppView.h"</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
52 |
<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">"CSAsyncDocument.h"</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
53 |
<a name="l00043"></a>00043 <a name=<span class="stringliteral">"l00024"</span>></a>00024 |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
54 |
<a name="l00044"></a>00044 <a name=<span class="stringliteral">"l00025"</span>></a>00025 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// ========================= MEMBER FUNCTIONS ==================================</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
55 |
<a name="l00045"></a>00045 <a name=<span class="stringliteral">"l00026"</span>></a>00026 |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
56 |
<a name="l00046"></a>00046 <a name=<span class="stringliteral">"l00027"</span>></a>00027 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// -----------------------------------------------------------------------------</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
57 |
<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">// CCSAsyncAppView::NewL()</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
58 |
<a name="l00048"></a>00048 <a name=<span class="stringliteral">"l00029"</span>></a>00029 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// Two-phased constructor.</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
59 |
<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> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
60 |
<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">//</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
61 |
<a name="l00051"></a>00051 <a name=<span class="stringliteral">"l00032"</span>></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>>00032</a> <a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_view.html"</span>><a class="code" href="class_c_c_s_async_app_view.html">CCSAsyncAppView</a></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>( <span <span class="keyword">class</span>=<span class="stringliteral">"keyword"</span>><span class="keyword">const</span></span> TRect&amp; aRect, |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
62 |
<a name="l00052"></a>00052 <a name=<span class="stringliteral">"l00033"</span>></a>00033 <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>&amp; aDocument ) |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
63 |
<a name="l00053"></a>00053 <a name=<span class="stringliteral">"l00034"</span>></a>00034 { |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
64 |
<a name="l00054"></a>00054 <a name=<span class="stringliteral">"l00035"</span>></a>00035 <a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_view.html"</span>><a class="code" href="class_c_c_s_async_app_view.html">CCSAsyncAppView</a></a>* <span <span class="keyword">class</span>=<span class="stringliteral">"keyword"</span>><span class="keyword">self</span></span> = <a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_view.html#588da7d8e5db2570654e9ffbaf355a8c"</span>><a class="code" href="class_c_c_s_async_app_view.html#aa94e9a2f9ee19baa6f779ffe20b68d02">CCSAsyncAppView::NewLC</a></a>( aRect, aDocument ); |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
65 |
<a name="l00055"></a>00055 <a name=<span class="stringliteral">"l00036"</span>></a>00036 CleanupStack::Pop( <span <span class="keyword">class</span>=<span class="stringliteral">"keyword"</span>>self</span> ); |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
66 |
<a name="l00056"></a>00056 <a name=<span class="stringliteral">"l00037"</span>></a>00037 <span <span class="keyword">class</span>=<span class="stringliteral">"keywordflow"</span>><span class="keywordflow">return</span></span> <span <span class="keyword">class</span>=<span class="stringliteral">"keyword"</span>><span class="keyword">self</span></span>; |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
67 |
<a name="l00057"></a>00057 <a name=<span class="stringliteral">"l00038"</span>></a>00038 } |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
68 |
<a name="l00058"></a>00058 <a name=<span class="stringliteral">"l00039"</span>></a>00039 |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
69 |
<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> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
70 |
<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">// CCSAsyncAppView::NewLC()</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
71 |
<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">// Two-phased constructor.</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
72 |
<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> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
73 |
<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> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
74 |
<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_view.html#588da7d8e5db2570654e9ffbaf355a8c"</span>>00045</a> <a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_view.html"</span>><a class="code" href="class_c_c_s_async_app_view.html">CCSAsyncAppView</a></a>* <a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_view.html#588da7d8e5db2570654e9ffbaf355a8c"</span>><a class="code" href="class_c_c_s_async_app_view.html#aa94e9a2f9ee19baa6f779ffe20b68d02">CCSAsyncAppView::NewLC</a></a>( <span <span class="keyword">class</span>=<span class="stringliteral">"keyword"</span>><span class="keyword">const</span></span> TRect&amp; aRect, |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
75 |
<a name="l00065"></a>00065 <a name=<span class="stringliteral">"l00046"</span>></a>00046 <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>&amp; aDocument ) |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
76 |
<a name="l00066"></a>00066 <a name=<span class="stringliteral">"l00047"</span>></a>00047 { |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
77 |
<a name="l00067"></a>00067 <a name=<span class="stringliteral">"l00048"</span>></a>00048 <a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_view.html"</span>><a class="code" href="class_c_c_s_async_app_view.html">CCSAsyncAppView</a></a>* <span <span class="keyword">class</span>=<span class="stringliteral">"keyword"</span>><span class="keyword">self</span></span> = <span <span class="keyword">class</span>=<span class="stringliteral">"keyword"</span>><span class="keyword">new</span></span> ( ELeave ) <a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_view.html#9d54bf5a4c895f88b39af815379c7c30"</span>><a class="code" href="class_c_c_s_async_app_view.html">CCSAsyncAppView</a></a>( aDocument ); |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
78 |
<a name="l00068"></a>00068 <a name=<span class="stringliteral">"l00049"</span>></a>00049 CleanupStack::PushL( <span <span class="keyword">class</span>=<span class="stringliteral">"keyword"</span>>self</span> ); |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
79 |
<a name="l00069"></a>00069 <a name=<span class="stringliteral">"l00050"</span>></a>00050 <span <span class="keyword">class</span>=<span class="stringliteral">"keyword"</span>><span class="keyword">self</span></span>-&gt;ConstructL( aRect ); |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
80 |
<a name="l00070"></a>00070 <a name=<span class="stringliteral">"l00051"</span>></a>00051 <span <span class="keyword">class</span>=<span class="stringliteral">"keywordflow"</span>><span class="keywordflow">return</span></span> <span <span class="keyword">class</span>=<span class="stringliteral">"keyword"</span>><span class="keyword">self</span></span>; |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
81 |
<a name="l00071"></a>00071 <a name=<span class="stringliteral">"l00052"</span>></a>00052 } |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
82 |
<a name="l00072"></a>00072 <a name=<span class="stringliteral">"l00053"</span>></a>00053 |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
83 |
<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> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
84 |
<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">// CCSAsyncAppView::ConstructL()</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
85 |
<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">// Symbian 2nd phase constructor can leave.</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
86 |
<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> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
87 |
<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> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
88 |
<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_view.html#bf31593b337cbf3fb671382cf773281c"</span>>00059</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_view.html#bf31593b337cbf3fb671382cf773281c"</span>>CCSAsyncAppView::ConstructL</a>( <span <span class="keyword">class</span>=<span class="stringliteral">"keyword"</span>><span class="keyword">const</span></span> TRect&amp; aRect ) |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
89 |
<a name="l00079"></a>00079 <a name=<span class="stringliteral">"l00060"</span>></a>00060 { |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
90 |
<a name="l00080"></a>00080 <a name=<span class="stringliteral">"l00061"</span>></a>00061 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// Create a window for this application view</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
91 |
<a name="l00081"></a>00081 <a name=<span class="stringliteral">"l00062"</span>></a>00062 CreateWindowL(); |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
92 |
<a name="l00082"></a>00082 <a name=<span class="stringliteral">"l00063"</span>></a>00063 |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
93 |
<a name="l00083"></a>00083 <a name=<span class="stringliteral">"l00064"</span>></a>00064 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// Set the windows size</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
94 |
<a name="l00084"></a>00084 <a name=<span class="stringliteral">"l00065"</span>></a>00065 SetRect( aRect ); |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
95 |
<a name="l00085"></a>00085 <a name=<span class="stringliteral">"l00066"</span>></a>00066 |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
96 |
<a name="l00086"></a>00086 <a name=<span class="stringliteral">"l00067"</span>></a>00067 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// Activate the window, which makes it ready to be drawn</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
97 |
<a name="l00087"></a>00087 <a name=<span class="stringliteral">"l00068"</span>></a>00068 ActivateL(); |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
98 |
<a name="l00088"></a>00088 <a name=<span class="stringliteral">"l00069"</span>></a>00069 } |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
99 |
<a name="l00089"></a>00089 <a name=<span class="stringliteral">"l00070"</span>></a>00070 |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
100 |
<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">// -----------------------------------------------------------------------------</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
101 |
<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">// CCSAsyncAppView::CCSAsyncAppView()</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
102 |
<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">// C++ default constructor can NOT contain any code, that might leave.</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
103 |
<a name="l00093"></a>00093 <a name=<span class="stringliteral">"l00074"</span>></a>00074 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// -----------------------------------------------------------------------------</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
104 |
<a name="l00094"></a>00094 <a name=<span class="stringliteral">"l00075"</span>></a>00075 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">//</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
105 |
<a name="l00095"></a>00095 <a name=<span class="stringliteral">"l00076"</span>></a><a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_view.html#9d54bf5a4c895f88b39af815379c7c30"</span>>00076</a> <a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_view.html#9d54bf5a4c895f88b39af815379c7c30"</span>>CCSAsyncAppView::CCSAsyncAppView</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>&amp; aDocument ) |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
106 |
<a name="l00096"></a>00096 <a name=<span class="stringliteral">"l00077"</span>></a>00077 : iDocument( aDocument ) |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
107 |
<a name="l00097"></a>00097 <a name=<span class="stringliteral">"l00078"</span>></a>00078 { |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
108 |
<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">// No implementation required</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
109 |
<a name="l00099"></a>00099 <a name=<span class="stringliteral">"l00080"</span>></a>00080 } |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
110 |
<a name="l00100"></a>00100 <a name=<span class="stringliteral">"l00081"</span>></a>00081 |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
111 |
<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> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
112 |
<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">// CCSAsyncAppView::~CCSAsyncAppView()</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
113 |
<a name="l00103"></a>00103 <a name=<span class="stringliteral">"l00084"</span>></a>00084 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// Destructor.</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
114 |
<a name="l00104"></a>00104 <a name=<span class="stringliteral">"l00085"</span>></a>00085 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// -----------------------------------------------------------------------------</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
115 |
<a name="l00105"></a>00105 <a name=<span class="stringliteral">"l00086"</span>></a>00086 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">//</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
116 |
<a name="l00106"></a>00106 <a name=<span class="stringliteral">"l00087"</span>></a><a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_view.html#d5974766a4157fe782fe6de6cd6b3d2e"</span>>00087</a> <a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_view.html#d5974766a4157fe782fe6de6cd6b3d2e"</span>><a class="code" href="class_c_c_s_async_app_view.html#a0b450534881fb76e3b22e628b9d3fb82">CCSAsyncAppView::~CCSAsyncAppView</a></a>() |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
117 |
<a name="l00107"></a>00107 <a name=<span class="stringliteral">"l00088"</span>></a>00088 { |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
118 |
<a name="l00108"></a>00108 <a name=<span class="stringliteral">"l00089"</span>></a>00089 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// No implementation required</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
119 |
<a name="l00109"></a>00109 <a name=<span class="stringliteral">"l00090"</span>></a>00090 } |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
120 |
<a name="l00110"></a>00110 <a name=<span class="stringliteral">"l00091"</span>></a>00091 |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
121 |
<a name="l00111"></a>00111 <a name=<span class="stringliteral">"l00092"</span>></a>00092 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// -----------------------------------------------------------------------------</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
122 |
<a name="l00112"></a>00112 <a name=<span class="stringliteral">"l00093"</span>></a>00093 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// CCSAsyncAppView::Draw()</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
123 |
<a name="l00113"></a>00113 <a name=<span class="stringliteral">"l00094"</span>></a>00094 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// Draws this CCSAsyncAppView to the screen.</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
124 |
<a name="l00114"></a>00114 <a name=<span class="stringliteral">"l00095"</span>></a>00095 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// -----------------------------------------------------------------------------</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
125 |
<a name="l00115"></a>00115 <a name=<span class="stringliteral">"l00096"</span>></a>00096 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">//</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
126 |
<a name="l00116"></a>00116 <a name=<span class="stringliteral">"l00097"</span>></a><a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_view.html#67f946ca7848ec78de4961c5bcefdb72"</span>>00097</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_view.html#67f946ca7848ec78de4961c5bcefdb72"</span>><a class="code" href="class_c_c_s_async_app_view.html#a3c797dd9f2effb90c3c51aadc21841a1">CCSAsyncAppView::Draw</a></a>( <span <span class="keyword">class</span>=<span class="stringliteral">"keyword"</span>><span class="keyword">const</span></span> TRect&amp; <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">/*aRect*/</span></span> )<span <span class="keyword">class</span>=<span class="stringliteral">"keyword"</span>> const</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
127 |
<a name="l00117"></a>00117 <a name=<span class="stringliteral">"l00098"</span>></a>00098 <span <span class="keyword">class</span>=<span class="stringliteral">"keyword"</span>> </span>{ |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
128 |
<a name="l00118"></a>00118 <a name=<span class="stringliteral">"l00099"</span>></a>00099 |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
129 |
<a name="l00119"></a>00119 <a name=<span class="stringliteral">"l00100"</span>></a>00100 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// Clear the screen</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
130 |
<a name="l00120"></a>00120 <a name=<span class="stringliteral">"l00101"</span>></a>00101 CWindowGc&amp; gc = SystemGc(); |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
131 |
<a name="l00121"></a>00121 <a name=<span class="stringliteral">"l00102"</span>></a>00102 gc.Clear( Rect() ); |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
132 |
<a name="l00122"></a>00122 <a name=<span class="stringliteral">"l00103"</span>></a>00103 |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
133 |
<a name="l00123"></a>00123 <a name=<span class="stringliteral">"l00104"</span>></a>00104 TBuf&lt;30&gt; des; |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
134 |
<a name="l00124"></a>00124 <a name=<span class="stringliteral">"l00105"</span>></a>00105 <span <span class="keyword">class</span>=<span class="stringliteral">"keyword"</span>><span class="keyword">const</span></span> TTime&amp; time = <a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_app_view.html#e24f321b44666c7b289373e12f1453ee"</span>>iDocument</a>.<a <span class="keyword">class</span>=<span class="stringliteral">"code"</span> href=<span class="stringliteral">"class_c_c_s_async_document.html#abd5ca40d94b3e8941d79e5362c038b2"</span>>Time</a>(); |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
135 |
<a name="l00125"></a>00125 <a name=<span class="stringliteral">"l00106"</span>></a>00106 |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
136 |
<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">// Read time format string from AVKON resource</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
137 |
<a name="l00127"></a>00127 <a name=<span class="stringliteral">"l00108"</span>></a>00108 HBufC* timeFormatString = iEikonEnv-&gt;AllocReadResourceLC(R_QTN_TIME_LONG); |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
138 |
<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">// It would also be possible to define your own format string instead, </span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
139 |
<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">// for example like this:</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
140 |
<a name="l00130"></a>00130 <a name=<span class="stringliteral">"l00111"</span>></a>00111 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// _LIT( KHoursMinsSecs, "%-B%:0%J%:1%T%:2%S%:3%+B" );</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
141 |
<a name="l00131"></a>00131 <a name=<span class="stringliteral">"l00112"</span>></a>00112 |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
142 |
<a name="l00132"></a>00132 <a name=<span class="stringliteral">"l00113"</span>></a>00113 TRAPD( err, time.FormatL( des, *timeFormatString ) ); |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
143 |
<a name="l00133"></a>00133 <a name=<span class="stringliteral">"l00114"</span>></a>00114 CleanupStack::PopAndDestroy(); <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// timeFormatString</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
144 |
<a name="l00134"></a>00134 <a name=<span class="stringliteral">"l00115"</span>></a>00115 |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
145 |
<a name="l00135"></a>00135 <a name=<span class="stringliteral">"l00116"</span>></a>00116 <span <span class="keyword">class</span>=<span class="stringliteral">"keywordflow"</span>><span class="keywordflow">if</span></span> ( err == KErrNone ) |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
146 |
<a name="l00136"></a>00136 <a name=<span class="stringliteral">"l00117"</span>></a>00117 { |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
147 |
<a name="l00137"></a>00137 <a name=<span class="stringliteral">"l00118"</span>></a>00118 <span <span class="keyword">class</span>=<span class="stringliteral">"keyword"</span>><span class="keyword">const</span></span> CFont* font = iEikonEnv-&gt;NormalFont(); |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
148 |
<a name="l00138"></a>00138 <a name=<span class="stringliteral">"l00119"</span>></a>00119 gc.UseFont( font ); |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
149 |
<a name="l00139"></a>00139 <a name=<span class="stringliteral">"l00120"</span>></a>00120 gc.DrawText( des, TPoint( 10,20 ) ); |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
150 |
<a name="l00140"></a>00140 <a name=<span class="stringliteral">"l00121"</span>></a>00121 } |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
151 |
<a name="l00141"></a>00141 <a name=<span class="stringliteral">"l00122"</span>></a>00122 } |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
152 |
<a name="l00142"></a>00142 <a name=<span class="stringliteral">"l00123"</span>></a>00123 |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
153 |
<a name="l00143"></a>00143 <a name=<span class="stringliteral">"l00124"</span>></a>00124 |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
154 |
<a name="l00144"></a>00144 <a name=<span class="stringliteral">"l00125"</span>></a>00125 <span <span class="keyword">class</span>=<span class="stringliteral">"comment"</span>><span class="comment">// End of File</span></span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
155 |
<a name="l00145"></a>00145 <a name=<span class="stringliteral">"l00126"</span>></a>00126 |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
156 |
<a name="l00146"></a>00146 </pre></div><hr> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
157 |
<a name="l00147"></a>00147 |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
158 |
<a name="l00148"></a>00148 <table x-use-null-cells |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
159 |
<a name="l00149"></a>00149 style=<span class="stringliteral">"x-cell-content-align: top;</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
160 |
<a name="l00150"></a>00150 <span class="stringliteral"> width: 100%;</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
161 |
<a name="l00151"></a>00151 <span class="stringliteral"> border-spacing: 0px;</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
162 |
<a name="l00152"></a>00152 <span class="stringliteral"> border-spacing: 0px;"</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
163 |
<a name="l00153"></a>00153 cellspacing=0 |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
164 |
<a name="l00154"></a>00154 width=100%> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
165 |
<a name="l00155"></a>00155 <col style=<span class="stringliteral">"width: 50%;"</span>> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
166 |
<a name="l00156"></a>00156 <col style=<span class="stringliteral">"width: 50%;"</span>> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
167 |
<a name="l00157"></a>00157 |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
168 |
<a name="l00158"></a>00158 <tr style=<span class="stringliteral">"x-cell-content-align: top;"</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
169 |
<a name="l00159"></a>00159 valign=top> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
170 |
<a name="l00160"></a>00160 <td style=<span class="stringliteral">"width: 50%;</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
171 |
<a name="l00161"></a>00161 <span class="stringliteral"> padding-right: 10px;</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
172 |
<a name="l00162"></a>00162 <span class="stringliteral"> padding-left: 10px;</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
173 |
<a name="l00163"></a>00163 <span class="stringliteral"> border-right-style: None;</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
174 |
<a name="l00164"></a>00164 <span class="stringliteral"> border-left-style: None;</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
175 |
<a name="l00165"></a>00165 <span class="stringliteral"> border-top-style: None;</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
176 |
<a name="l00166"></a>00166 <span class="stringliteral"> border-bottom-style: None;"</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
177 |
<a name="l00167"></a>00167 width=50%> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
178 |
<a name="l00168"></a>00168 <p style=<span class="stringliteral">"font-family: Arial;"</span>><small style=<span class="stringliteral">"font-size: smaller;"</span>>© Nokia 2009</small></td> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
179 |
<a name="l00169"></a>00169 <td style=<span class="stringliteral">"width: 50%;</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
180 |
<a name="l00170"></a>00170 <span class="stringliteral"> padding-right: 10px;</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
181 |
<a name="l00171"></a>00171 <span class="stringliteral"> padding-left: 10px;</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
182 |
<a name="l00172"></a>00172 <span class="stringliteral"> border-top-style: None;</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
183 |
<a name="l00173"></a>00173 <span class="stringliteral"> border-bottom-style: None;</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
184 |
<a name="l00174"></a>00174 <span class="stringliteral"> border-right-style: None;"</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
185 |
<a name="l00175"></a>00175 width=50%> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
186 |
<a name="l00176"></a>00176 <p style=<span class="stringliteral">"text-align: right; margin-right: -4px;"</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
187 |
<a name="l00177"></a>00177 align=right><span style=<span class="stringliteral">"font-weight: bold;"</span>><a href=<span class="stringliteral">"#Top"</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
188 |
<a name="l00178"></a>00178 title=<span class="stringliteral">"Back to top"</span>><img |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
189 |
<a name="l00179"></a>00179 src=<span class="stringliteral">"top.gif"</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
190 |
<a name="l00180"></a>00180 x-maintain-ratio=TRUE |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
191 |
<a name="l00181"></a>00181 alt=<span class="stringliteral">"Back to top"</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
192 |
<a name="l00182"></a>00182 style=<span class="stringliteral">"border: none;</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
193 |
<a name="l00183"></a>00183 <span class="stringliteral"> width: 18px;</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
194 |
<a name="l00184"></a>00184 <span class="stringliteral"> height: 15px;</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
195 |
<a name="l00185"></a>00185 <span class="stringliteral"> float: none;</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
196 |
<a name="l00186"></a>00186 <span class="stringliteral"> border-style: none;</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
197 |
<a name="l00187"></a>00187 <span class="stringliteral"> border-style: none;"</span> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
198 |
<a name="l00188"></a>00188 width=18 |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
199 |
<a name="l00189"></a>00189 height=15 |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
200 |
<a name="l00190"></a>00190 border=0></a></span></td></tr> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
201 |
<a name="l00191"></a>00191 </table> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
202 |
<a name="l00192"></a>00192 </body> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
203 |
<a name="l00193"></a>00193 </html> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
204 |
<a name="l00194"></a>00194 |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
205 |
</pre></div></div> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
206 |
<hr size="1"/><address style="text-align: right;"><small>Generated by |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
207 |
<a href="http://www.doxygen.org/index.html"> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
208 |
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
209 |
</body> |
43e37759235e
Week 12 contribution of example code"
Dominic Pinkman <Dominic.Pinkman@Nokia.com>
parents:
diff
changeset
|
210 |
</html> |