S60 3rd Edition SDK FP1 for Symbian OS Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : SimpleCubeApp.h 00004 * Part of : OpenGLEx / SimpleCube 00005 * 00006 * Copyright (c) 2005-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 #ifndef SIMPLECUBEAPP_H 00014 #define SIMPLECUBEAPP_H 00015 00016 // INCLUDES 00017 #include <aknapp.h> 00018 00019 // CONSTANTS 00020 /** UID of the application. */ 00021 const TUid KUidSimpleCube = { 0xA000021A }; 00022 00023 // CLASS DECLARATION 00024 00025 /** 00026 * Application class. Provides factory method to create a concrete document object. 00027 */ 00028 class CSimpleCubeApp : public CAknApplication 00029 { 00030 private: // Functions from base classes 00031 00032 /** 00033 * From CApaApplication, creates and returns CSimpleCubeDocument document object. 00034 * @return Pointer to the created document object. 00035 */ 00036 CApaDocument* CreateDocumentL(); 00037 00038 /** 00039 * From CApaApplication, returns application's UID (KUidSimpleCube). 00040 * @return Value of KUidSimpleCube. 00041 */ 00042 TUid AppDllUid() const; 00043 }; 00044 00045 // OTHER EXPORTED FUNCTIONS 00046 00047 /** 00048 * Factory method used by the E32Main method to create a new application instance. 00049 */ 00050 LOCAL_C CApaApplication* NewApplication(); 00051 00052 /** 00053 * Entry point to the EXE application. Creates new application instance and 00054 * runs it by giving it as parameter to EikStart::RunApplication() method. 00055 */ 00056 GLDEF_C TInt E32Main(); 00057 00058 #endif 00059 00060 // End of File
© Nokia 2006 |