|
Nokia N97 SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : animationdocument.cpp 00004 * Part of : Animation 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 "animationappui.h" 00018 #include "animationdocument.h" 00019 00020 // ============================ MEMBER FUNCTIONS =============================== 00021 00022 // ----------------------------------------------------------------------------- 00023 // CAnimationDocument::CAnimationDocument() 00024 // C++ default constructor can NOT contain any code, that might leave. 00025 // ----------------------------------------------------------------------------- 00026 // 00027 CAnimationDocument::CAnimationDocument( CEikApplication& aApp ) 00028 : CEikDocument( aApp ) 00029 { 00030 // No implementation required 00031 } 00032 00033 00034 // ----------------------------------------------------------------------------- 00035 // CAnimationDocument::NewL() 00036 // Two-phased constructor. 00037 // ----------------------------------------------------------------------------- 00038 // 00039 CAnimationDocument* CAnimationDocument::NewL( CEikApplication& aApp ) 00040 { 00041 CAnimationDocument* self = NewLC( aApp ); 00042 CleanupStack::Pop(); 00043 return self; 00044 } 00045 00046 // ----------------------------------------------------------------------------- 00047 // CAnimationDocument::NewLC() 00048 // Two-phased constructor. 00049 // ----------------------------------------------------------------------------- 00050 // 00051 CAnimationDocument* CAnimationDocument::NewLC( CEikApplication& aApp ) 00052 { 00053 CAnimationDocument* self = new ( ELeave ) CAnimationDocument( aApp ); 00054 CleanupStack::PushL( self ); 00055 self->ConstructL(); 00056 return self; 00057 } 00058 00059 // ----------------------------------------------------------------------------- 00060 // CAnimationDocument::ConstructL() 00061 // Symbian 2nd phase constructor can leave. 00062 // ----------------------------------------------------------------------------- 00063 // 00064 void CAnimationDocument::ConstructL() 00065 { 00066 // No implementation required 00067 } 00068 00069 // ----------------------------------------------------------------------------- 00070 // CAnimationDocument::~CAnimationDocument() 00071 // Destructor. 00072 // ----------------------------------------------------------------------------- 00073 // 00074 CAnimationDocument::~CAnimationDocument() 00075 { 00076 // No implementation required 00077 } 00078 00079 // ----------------------------------------------------------------------------- 00080 // CAnimationDocument::CreateAppUiL() 00081 // Constructs CreateAppUi. 00082 // ----------------------------------------------------------------------------- 00083 // 00084 CEikAppUi* CAnimationDocument::CreateAppUiL() 00085 { 00086 // Create the application user interface, and return a pointer to it 00087 CEikAppUi* appUi = new ( ELeave ) CAnimationAppUi( CCoeEnv::Static()-> 00088 WsSession() ); 00089 return appUi; 00090 } 00091 00092 // End of File
|
© Nokia 2009 |