S60 3rd Edition SDK FP1 for Symbian OS Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : SimpleCubeDocument.cpp 00004 * Part of : OpenGLEx / SimpleCube 00005 * 00006 * Copyright (c) 2004-2006 Nokia Corporation. 00007 * This material, including documentation and any related 00008 * computer programs, is protected by copyright controlled by 00009 * Nokia Corporation. 00010 * ============================================================================== 00011 */ 00012 00013 00014 // INCLUDE FILES 00015 #include "SimpleCubeDocument.h" 00016 #include "SimpleCubeAppUi.h" 00017 00018 // ================= MEMBER FUNCTIONS ======================= 00019 00020 // ----------------------------------------------------------------------------- 00021 // CSimpleCubeDocument::CSimpleCubeDocument 00022 // 00023 // Just calls the base class constructor. 00024 // ----------------------------------------------------------------------------- 00025 // 00026 00027 CSimpleCubeDocument::CSimpleCubeDocument(CEikApplication& aApp) 00028 : CAknDocument(aApp) 00029 { 00030 } 00031 00032 // ----------------------------------------------------------------------------- 00033 // CSimpleCubeDocument::~CSimpleCubeDocument 00034 // 00035 // Empty destructor. 00036 // ----------------------------------------------------------------------------- 00037 // 00038 00039 CSimpleCubeDocument::~CSimpleCubeDocument() 00040 { 00041 } 00042 00043 // ----------------------------------------------------------------------------- 00044 // CSimpleCubeDocument::ConstructL 00045 // 00046 // Empty 2nd phase constructor. 00047 // ----------------------------------------------------------------------------- 00048 // 00049 00050 void CSimpleCubeDocument::ConstructL() 00051 { 00052 } 00053 00054 // ----------------------------------------------------------------------------- 00055 // CSimpleCubeDocument::NewL 00056 // 00057 // ----------------------------------------------------------------------------- 00058 // 00059 00060 CSimpleCubeDocument* CSimpleCubeDocument::NewL( 00061 CEikApplication& aApp) // CSimpleCubeApp reference 00062 { 00063 CSimpleCubeDocument* self = new (ELeave) CSimpleCubeDocument( aApp ); 00064 CleanupStack::PushL( self ); 00065 self->ConstructL(); 00066 CleanupStack::Pop(); 00067 00068 return self; 00069 } 00070 00071 // ---------------------------------------------------- 00072 // CSimpleCubeDocument::CreateAppUiL() 00073 // Constructs and returns a CSimpleCubeAppUi object. 00074 // ---------------------------------------------------- 00075 // 00076 00077 CEikAppUi* CSimpleCubeDocument::CreateAppUiL() 00078 { 00079 return new (ELeave) CSimpleCubeAppUi; 00080 } 00081 00082 // End of File
© Nokia 2006 |