|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : SimpleLightApp.cpp 00004 * Part of : OpenGLEx / SimpleLight 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 <eikstart.h> 00018 #include "SimpleLightApp.h" 00019 #include "SimpleLightDocument.h" 00020 00021 // ================= MEMBER FUNCTIONS ======================= 00022 00023 // --------------------------------------------------------- 00024 // CSimpleLightApp::AppDllUid() 00025 // Returns application UID 00026 // --------------------------------------------------------- 00027 // 00028 TUid CSimpleLightApp::AppDllUid() const 00029 { 00030 return KUidSimpleLight; 00031 } 00032 00033 00034 // --------------------------------------------------------- 00035 // CSimpleLightApp::CreateDocumentL() 00036 // Creates CSimpleLightDocument object 00037 // --------------------------------------------------------- 00038 // 00039 CApaDocument* CSimpleLightApp::CreateDocumentL() 00040 { 00041 return CSimpleLightDocument::NewL( *this ); 00042 } 00043 00044 00045 // ================= OTHER EXPORTED FUNCTIONS ============== 00046 00047 00048 CApaApplication* NewApplication() 00049 { 00050 return new CSimpleLightApp; 00051 } 00052 00053 TInt E32Main() 00054 { 00055 return EikStart::RunApplication(NewApplication); 00056 } 00057 00058 // End of File 00059
|
© Nokia 2006 |