examples/S60CppExamples/ClientServerAsync/doc/class_c_c_s_async_app_view.html

00001 "-//W3C//DTD HTML 4.0 Transitional//EN">
00002 
00003 
00004 
00005 "Content-Type" content="text/html;charset=iso-8859-1">
00006 <a class="code" href="class_c_c_s_async_app_view.html">CCSAsyncAppView</a> Class Reference
00007 "style.css" rel="stylesheet" type="text/css">
00008 
00009 
00010 "0" width="100%" height="8" bgcolor="#eeeeee">
00011 
"100%" height="1">"2" color="#000000" face="Arial, Helvetica, sans-serif"> 00012 S60 5th Edition SDK
Example Applications Guide
00013 00014
class="tabs"> 00015
00020 00026

CCSAsyncAppView Class Reference

#include <class="el" href="csasyncappview_8h-source.html">csasyncappview.h> 00027

00028

Inheritance diagram for CCSAsyncAppView: 00029

"class_c_c_s_async_app_view.png" usemap="#CCSAsyncAppView_map" border="0" alt="">
00030 "CCSAsyncAppView_map"> 00031 00032 "class_c_c_s_async_app_view-members.html">List of all members.
"_details">

Detailed Description

00033 CCSAsyncAppView An instance of the Application View object for the CSAsync example application. 00034

00035 00036

00037 Definition at line class="el" href="csasyncappview_8h-source.html#l00032">32 of file class="el" href="csasyncappview_8h-source.html">csasyncappview.h.

"0" cellpadding="0" cellspacing="0"> 00038 00039 00040 00041 00042 00043 00044 00045 00046 00047 00048 00049 00050 00051 00052 00053 00054 00055 00056 00057
"2">

Public Member Functions

class="memItemLeft" nowrap align="right" valign="top">virtual class="memItemRight" valign="bottom">class="el" href="class_c_c_s_async_app_view.html#d5974766a4157fe782fe6de6cd6b3d2e">~CCSAsyncAppView ()
class="memItemLeft" nowrap align="right" valign="top">void class="memItemRight" valign="bottom">class="el" href="class_c_c_s_async_app_view.html#67f946ca7848ec78de4961c5bcefdb72">Draw (const TRect &aRect) const
"2">

Static Public Member Functions

class="memItemLeft" nowrap align="right" valign="top">static CCSAsyncAppViewclass="memItemRight" valign="bottom">class="el" href="class_c_c_s_async_app_view.html#113d3c41dfbbbaf3bd2d6d1213cc9f32">NewL (const TRect &aRect, class="el" href="class_c_c_s_async_document.html">CCSAsyncDocument &aDocument)
class="memItemLeft" nowrap align="right" valign="top">static CCSAsyncAppViewclass="memItemRight" valign="bottom">class="el" href="class_c_c_s_async_app_view.html#588da7d8e5db2570654e9ffbaf355a8c">NewLC (const TRect &aRect, class="el" href="class_c_c_s_async_document.html">CCSAsyncDocument &aDocument)
"2">

Private Member Functions

class="memItemLeft" nowrap align="right" valign="top"class="memItemRight" valign="bottom">class="el" href="class_c_c_s_async_app_view.html#9d54bf5a4c895f88b39af815379c7c30">CCSAsyncAppView (class="el" href="class_c_c_s_async_document.html">CCSAsyncDocument &aDocument)
class="memItemLeft" nowrap align="right" valign="top">void class="memItemRight" valign="bottom">class="el" href="class_c_c_s_async_app_view.html#bf31593b337cbf3fb671382cf773281c">ConstructL (const TRect &aRect)
"2">

Private Attributes

class="memItemLeft" nowrap align="right" valign="top">class="el" href="class_c_c_s_async_document.html">CCSAsyncDocumentclass="memItemRight" valign="bottom">class="el" href="class_c_c_s_async_app_view.html#e24f321b44666c7b289373e12f1453ee">iDocument
00058

Constructor & Destructor Documentation

00059 class="anchor" name="d5974766a4157fe782fe6de6cd6b3d2e">

00060

class="mdTable" cellpadding="2" cellspacing="0"> 00061 00062 00073 00074
class="mdRow"> 00063 "0" cellspacing="0" border="0"> 00064 00065 00066 00067 00068 00069 00070 00071
class="md" nowrap valign="top">CCSAsyncAppView::~CCSAsyncAppView class="md" valign="top">(  class="mdname1" valign="top" nowrap> class="md" valign="top"> )  class="md" nowrap> [virtual]
00072
00075 "5" cellpadding="0" border="0"> 00076 00077 00080 00091 00092
00078   00079 00081 00082

00083 ~CCSAsyncAppView. Destructor. Destroys the object and release all memory objects. 00084

00085 Definition at line class="el" href="csasyncappview_8cpp-source.html#l00087">87 of file class="el" href="csasyncappview_8cpp-source.html">csasyncappview.cpp.

class="fragment">
class="fragment">"l00088">00088     {
00086 "l00089">00089     class="comment">// No implementation required
00087 "l00090">00090     }
00088 
00089

00090

00093 class="anchor" name="9d54bf5a4c895f88b39af815379c7c30">

00094

class="mdTable" cellpadding="2" cellspacing="0"> 00095 00096 00108 00109
class="mdRow"> 00097 "0" cellspacing="0" border="0"> 00098 00099 00100 00101 00102 00103 00104 00105 00106
class="md" nowrap valign="top">CCSAsyncAppView::CCSAsyncAppView class="md" valign="top">(  class="md" nowrap valign="top">class="el" href="class_c_c_s_async_document.html">CCSAsyncDocument class="mdname1" valign="top" nowrap> aDocument class="md" valign="top"> )  class="md" nowrap> [private]
00107
00110 "5" cellpadding="0" border="0"> 00111 00112 00115 00134 00135
00113   00114 00116 00117

00118 CCSAsyncAppView. C++ default constructor. Performs the first phase of two phase construction.

Parameters:
00119 "0" cellspacing="2" cellpadding="0"> 00120 00121
"top">"top">aDocument The document to read time data from.
00122
00123 00124

00125 Definition at line class="el" href="csasyncappview_8cpp-source.html#l00076">76 of file class="el" href="csasyncappview_8cpp-source.html">csasyncappview.cpp. 00126

00127 Referenced by class="el" href="csasyncappview_8cpp-source.html#l00045">NewLC().

class="fragment">
class="fragment">"l00077">00077 : class="code" href="class_c_c_s_async_app_view.html#e24f321b44666c7b289373e12f1453ee">iDocument( aDocument )
00128 "l00078">00078     {
00129 "l00079">00079     class="comment">// No implementation required
00130 "l00080">00080     }
00131 
00132

00133

00136

Member Function Documentation

00137 class="anchor" name="113d3c41dfbbbaf3bd2d6d1213cc9f32">

00138

class="mdTable" cellpadding="2" cellspacing="0"> 00139 00140 00161 00162
class="mdRow"> 00141 "0" cellspacing="0" border="0"> 00142 00143 00144 00145 00146 00147 00148 00149 00150 00151 00152 00153 00154 00155 00156 00157 00158 00159
class="md" nowrap valign="top">class="el" href="class_c_c_s_async_app_view.html">CCSAsyncAppView * CCSAsyncAppView::NewL class="md" valign="top">(  class="md" nowrap valign="top">const TRect &  class="mdname" nowrap> aRect,
class="md" nowrap align="right"> class="md"> class="md" nowrap>class="el" href="class_c_c_s_async_document.html">CCSAsyncDocument class="mdname" nowrap> aDocument
class="md"> class="md">)  class="md" colspan="2"> [static]
00160
00163 "5" cellpadding="0" border="0"> 00164 00165 00168 00192 00193
00166   00167 00169 00170

00171 NewL. Two-phased constructor. Creates a CCSAsyncAppView object, which will draw itself to aRect.

Parameters:
00172 "0" cellspacing="2" cellpadding="0"> 00173 00174 00175
"top">"top">aRect The rectangle this view will be drawn to.
"top">"top">aDocument The document to read time data from.
00176
00177
Returns:
A pointer to the created instance of CCSAsyncAppView.
00178 00179

00180 Definition at line class="el" href="csasyncappview_8cpp-source.html#l00032">32 of file class="el" href="csasyncappview_8cpp-source.html">csasyncappview.cpp. 00181

00182 References class="el" href="csasyncappview_8cpp-source.html#l00045">NewLC(). 00183

00184 Referenced by class="el" href="csasyncappui_8cpp-source.html#l00045">CCSAsyncAppUi::ConstructL().

class="fragment">
class="fragment">"l00034">00034     {
00185 "l00035">00035     class="code" href="class_c_c_s_async_app_view.html">CCSAsyncAppView* class="keyword">self = class="code" href="class_c_c_s_async_app_view.html#588da7d8e5db2570654e9ffbaf355a8c">CCSAsyncAppView::NewLC( aRect, aDocument );
00186 "l00036">00036     CleanupStack::Pop( class="keyword">self );
00187 "l00037">00037     class="keywordflow">return class="keyword">self;
00188 "l00038">00038     }
00189 
00190

00191

00194 class="anchor" name="588da7d8e5db2570654e9ffbaf355a8c">

00195

class="mdTable" cellpadding="2" cellspacing="0"> 00196 00197 00218 00219
class="mdRow"> 00198 "0" cellspacing="0" border="0"> 00199 00200 00201 00202 00203 00204 00205 00206 00207 00208 00209 00210 00211 00212 00213 00214 00215 00216
class="md" nowrap valign="top">class="el" href="class_c_c_s_async_app_view.html">CCSAsyncAppView * CCSAsyncAppView::NewLC class="md" valign="top">(  class="md" nowrap valign="top">const TRect &  class="mdname" nowrap> aRect,
class="md" nowrap align="right"> class="md"> class="md" nowrap>class="el" href="class_c_c_s_async_document.html">CCSAsyncDocument class="mdname" nowrap> aDocument
class="md"> class="md">)  class="md" colspan="2"> [static]
00217
00220 "5" cellpadding="0" border="0"> 00221 00222 00225 00250 00251
00223   00224 00226 00227

00228 NewLC. Two-phased constructor. Creates a CCSAsyncAppView object, which will draw itself to aRect.

Parameters:
00229 "0" cellspacing="2" cellpadding="0"> 00230 00231 00232
"top">"top">aRect The rectangle this view will be drawn to.
"top">"top">aDocument The document to read time data from.
00233
00234
Returns:
A pointer to the created instance of CCSAsyncAppView.
00235 00236

00237 Definition at line class="el" href="csasyncappview_8cpp-source.html#l00045">45 of file class="el" href="csasyncappview_8cpp-source.html">csasyncappview.cpp. 00238

00239 References class="el" href="csasyncappview_8cpp-source.html#l00076">CCSAsyncAppView(). 00240

00241 Referenced by class="el" href="csasyncappview_8cpp-source.html#l00032">NewL().

class="fragment">
class="fragment">"l00047">00047     {
00242 "l00048">00048     class="code" href="class_c_c_s_async_app_view.html">CCSAsyncAppView* class="keyword">self = class="keyword">new ( ELeave ) class="code" href="class_c_c_s_async_app_view.html#9d54bf5a4c895f88b39af815379c7c30">CCSAsyncAppView( aDocument );
00243 "l00049">00049     CleanupStack::PushL( class="keyword">self );
00244 "l00050">00050     class="keyword">self->ConstructL( aRect );
00245 "l00051">00051     class="keywordflow">return class="keyword">self;
00246 "l00052">00052     }
00247 
00248

00249

00252 class="anchor" name="67f946ca7848ec78de4961c5bcefdb72">

00253

class="mdTable" cellpadding="2" cellspacing="0"> 00254 00255 00267 00268
class="mdRow"> 00256 "0" cellspacing="0" border="0"> 00257 00258 00259 00260 00261 00262 00263 00264 00265
class="md" nowrap valign="top">void CCSAsyncAppView::Draw class="md" valign="top">(  class="md" nowrap valign="top">const TRect &  class="mdname1" valign="top" nowrap> aRect class="md" valign="top"> )  class="md" nowrap> const
00266
00269 "5" cellpadding="0" border="0"> 00270 00271 00274 00314 00315
00272   00273 00275 00276

00277 From CCoeControl, Draw. Draws this CCSAsyncAppView to the screen.

Parameters:
00278 "0" cellspacing="2" cellpadding="0"> 00279 00280
"top">"top">aRect The rectangle of this view that needs updating.
00281
00282 00283

00284 Definition at line class="el" href="csasyncappview_8cpp-source.html#l00097">97 of file class="el" href="csasyncappview_8cpp-source.html">csasyncappview.cpp. 00285

00286 References class="el" href="csasyncappview_8h-source.html#l00096">iDocument, and class="el" href="csasyncdocument_8cpp-source.html#l00121">CCSAsyncDocument::Time().

class="fragment">
class="fragment">"l00098">00098     {
00287 "l00099">00099 
00288 "l00100">00100     class="comment">// Clear the screen
00289 "l00101">00101     CWindowGc& gc = SystemGc();
00290 "l00102">00102     gc.Clear( Rect() );
00291 "l00103">00103 
00292 "l00104">00104     TBuf<30> des;
00293 "l00105">00105     class="keyword">const TTime& time = class="code" href="class_c_c_s_async_app_view.html#e24f321b44666c7b289373e12f1453ee">iDocument.class="code" href="class_c_c_s_async_document.html#abd5ca40d94b3e8941d79e5362c038b2">Time();
00294 "l00106">00106 
00295 "l00107">00107     class="comment">// Read time format string from AVKON resource
00296 "l00108">00108     HBufC* timeFormatString = iEikonEnv->AllocReadResourceLC(R_QTN_TIME_LONG);
00297 "l00109">00109     class="comment">// It would also be possible to define your own format string instead, 
00298 "l00110">00110     class="comment">// for example like this:
00299 "l00111">00111     class="comment">// _LIT( KHoursMinsSecs, "%-B%:0%J%:1%T%:2%S%:3%+B" );
00300 "l00112">00112 
00301 "l00113">00113     TRAPD( err, time.FormatL( des, *timeFormatString ) );
00302 "l00114">00114     CleanupStack::PopAndDestroy(); class="comment">// timeFormatString
00303 "l00115">00115 
00304 "l00116">00116     class="keywordflow">if ( err == KErrNone )
00305 "l00117">00117         {
00306 "l00118">00118         class="keyword">const CFont* font = iEikonEnv->NormalFont();
00307 "l00119">00119         gc.UseFont( font );
00308 "l00120">00120         gc.DrawText( des, TPoint( 10,20 ) );
00309 "l00121">00121         }
00310 "l00122">00122     }
00311 
00312

00313

00316 class="anchor" name="bf31593b337cbf3fb671382cf773281c">

00317

class="mdTable" cellpadding="2" cellspacing="0"> 00318 00319 00331 00332
class="mdRow"> 00320 "0" cellspacing="0" border="0"> 00321 00322 00323 00324 00325 00326 00327 00328 00329
class="md" nowrap valign="top">void CCSAsyncAppView::ConstructL class="md" valign="top">(  class="md" nowrap valign="top">const TRect &  class="mdname1" valign="top" nowrap> aRect class="md" valign="top"> )  class="md" nowrap> [private]
00330
00333 "5" cellpadding="0" border="0"> 00334 00335 00338 00361 00362
00336   00337 00339 00340

00341 ConstructL. Performs the second phase construction of a CCSAsyncAppView object.

Parameters:
00342 "0" cellspacing="2" cellpadding="0"> 00343 00344
"top">"top">aRect The rectangle this view will be drawn to.
00345
00346 00347

00348 Definition at line class="el" href="csasyncappview_8cpp-source.html#l00059">59 of file class="el" href="csasyncappview_8cpp-source.html">csasyncappview.cpp.

class="fragment">
class="fragment">"l00060">00060     {
00349 "l00061">00061     class="comment">// Create a window for this application view
00350 "l00062">00062     CreateWindowL();
00351 "l00063">00063 
00352 "l00064">00064     class="comment">// Set the windows size
00353 "l00065">00065     SetRect( aRect );
00354 "l00066">00066 
00355 "l00067">00067     class="comment">// Activate the window, which makes it ready to be drawn
00356 "l00068">00068     ActivateL();
00357 "l00069">00069     }
00358 
00359

00360

00363

Member Data Documentation

00364 class="anchor" name="e24f321b44666c7b289373e12f1453ee">

00365

class="mdTable" cellpadding="2" cellspacing="0"> 00366 00367 00374 00375
class="mdRow"> 00368 "0" cellspacing="0" border="0"> 00369 00370 00371 00372
class="md" nowrap valign="top">class="el" href="class_c_c_s_async_document.html">CCSAsyncDocument& class="el" href="class_c_c_s_async_app_view.html#e24f321b44666c7b289373e12f1453ee">CCSAsyncAppView::iDocument [private]
00373
00376 "5" cellpadding="0" border="0"> 00377 00378 00381 00389 00390
00379   00380 00382 00383

00384 iDocument, the application document. 00385

00386 Definition at line class="el" href="csasyncappview_8h-source.html#l00096">96 of file class="el" href="csasyncappview_8h-source.html">csasyncappview.h. 00387

00388 Referenced by class="el" href="csasyncappview_8cpp-source.html#l00097">Draw().

00391
The documentation for this class was generated from the following files: 00393
00394 00395 00396 style="x-cell-content-align: top; 00397 width: 100%; 00398 border-spacing: 0px; 00399 border-spacing: 0px;" 00400 cellspacing=0 00401 width=100%> 00402 00403 00404 00405 00406 valign=top> 00407 00416 00438
00408 padding-right: 10px; 00409 padding-left: 10px; 00410 border-right-style: None; 00411 border-left-style: None; 00412 border-top-style: None; 00413 border-bottom-style: None;" 00414 width=50%> 00415

Nokia 2009

00417 padding-right: 10px; 00418 padding-left: 10px; 00419 border-top-style: None; 00420 border-bottom-style: None; 00421 border-right-style: None;" 00422 width=50%> 00423

00424 align=right>00425 title="Back to top">00426 src="top.gif" 00427 x-maintain-ratio=TRUE 00428 alt="Back to top" 00429 style="border: none; 00430 width: 18px; 00431 height: 15px; 00432 float: none; 00433 border-style: none; 00434 border-style: none;" 00435 width=18 00436 height=15 00437 border=0>

00439 00440 00441

Generated by  doxygen 1.6.2