|
Nokia N97 SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : helpexampleappview.cpp 00004 * Part of : Help example 00005 * Interface : 00006 * Description : 00007 * Version : 00008 * 00009 * Copyright (c) 2004 - 2006 Nokia Corporation. 00010 * This material, including documentation and any related 00011 * computer programs, is protected by copyright controlled by 00012 * Nokia Corporation. 00013 * ============================================================================== 00014 */ 00015 00016 // INCLUDE FILES 00017 #include "HelpExampleAppView.h" 00018 00019 // ============================ MEMBER FUNCTIONS =============================== 00020 00021 // ----------------------------------------------------------------------------- 00022 // CHelpExampleAppView::NewL() 00023 // Two-phased constructor. 00024 // ----------------------------------------------------------------------------- 00025 // 00026 CHelpExampleAppView* CHelpExampleAppView::NewL( const TRect& aRect ) 00027 { 00028 CHelpExampleAppView* self = NewLC( aRect ); 00029 CleanupStack::Pop( self ); 00030 return self; 00031 } 00032 00033 // ----------------------------------------------------------------------------- 00034 // CHelpExampleAppView::NewLC() 00035 // Two-phased constructor. 00036 // ----------------------------------------------------------------------------- 00037 // 00038 CHelpExampleAppView* CHelpExampleAppView::NewLC( const TRect& aRect ) 00039 { 00040 CHelpExampleAppView* self = new ( ELeave ) CHelpExampleAppView; 00041 CleanupStack::PushL( self ); 00042 self->ConstructL( aRect ); 00043 return self; 00044 } 00045 00046 // ----------------------------------------------------------------------------- 00047 // CHelpExampleAppView::ConstructL() 00048 // Symbian 2nd phase constructor can leave. 00049 // ----------------------------------------------------------------------------- 00050 // 00051 void CHelpExampleAppView::ConstructL( const TRect& aRect ) 00052 { 00053 CreateWindowL(); 00054 00055 SetRect ( aRect ); 00056 00057 ActivateL(); 00058 } 00059 00060 // ----------------------------------------------------------------------------- 00061 // CHelpExampleAppView::CHelpExampleAppView() 00062 // C++ default constructor can NOT contain any code, that might leave. 00063 // ----------------------------------------------------------------------------- 00064 // 00065 CHelpExampleAppView::CHelpExampleAppView() 00066 { 00067 // No implementation required 00068 } 00069 00070 // ----------------------------------------------------------------------------- 00071 // CHelpExampleAppView::~CHelpExampleAppView() 00072 // Destructor. 00073 // ----------------------------------------------------------------------------- 00074 // 00075 CHelpExampleAppView::~CHelpExampleAppView() 00076 { 00077 // No implementation required 00078 } 00079 // ---------------------------------------------------------------------------- 00080 // CHelpExampleAppView::Draw() 00081 // Draw this application's view to the screen 00082 // ---------------------------------------------------------------------------- 00083 // 00084 void CHelpExampleAppView::Draw( const TRect& /*aRect*/ ) const 00085 { 00086 // Clear the screen 00087 CWindowGc& gc = SystemGc(); 00088 gc.Clear ( Rect() ); 00089 } 00090 00091 00092 // End of File
|
© Nokia 2009 |