|
Nokia N97 SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : TextureAppUi.h 00004 * Part of : OpenGLEx / Texture 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 #ifndef TEXTUREAPPUI_H 00014 #define TEXTUREAPPUI_H 00015 00016 // INCLUDES 00017 #include <eikapp.h> 00018 #include <eikdoc.h> 00019 #include <e32std.h> 00020 #include <coeccntx.h> 00021 #include <aknappui.h> 00022 #include <f32file.h> // file server session 00023 #include "TextureDocument.h" 00024 00025 00026 // FORWARD DECLARATIONS 00027 class CTextureContainer; 00028 00029 // CLASS DECLARATION 00030 00031 /** 00032 * Application UI class that contains the CTextureContainer 00033 * (as required by the Symbian UI application architecture). 00034 */ 00035 class CTextureAppUi : public CAknAppUi 00036 { 00037 public: // // Constructors and destructor 00038 00039 /** 00040 * Second phase constructor. Creates the CTextureContainer 00041 * and adds it to the control stack. 00042 */ 00043 void ConstructL(); 00044 00045 /** 00046 * Destructor. Removes CTextureContainer from the control 00047 * stack and destroys it. 00048 */ 00049 virtual ~CTextureAppUi(); 00050 00051 private: 00052 00053 /** 00054 * This method is called by the EIKON framework just before it displays 00055 * a menu pane. Builds the dynamic menuitems for toggling the various options 00056 * in the example. 00057 */ 00058 void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane); 00059 00060 private: 00061 00062 /** 00063 * CEikAppUi method that is used to handle user commands. 00064 * Handles menu commands and application exit request. 00065 * @param aCommand Command to be handled. 00066 */ 00067 void HandleCommandL(TInt aCommand); 00068 00069 /** 00070 * CEikAppUi method that is used to handle key events. 00071 * Does nothing in this implemenation. 00072 * @param aKeyEvent Event to handled (ignored by this implementation). 00073 * @param aType Type of the key event (ignored by this implementation). 00074 * @return Response code. Always EKeyWasNotConsumed in this implementation. 00075 */ 00076 virtual TKeyResponse HandleKeyEventL( 00077 const TKeyEvent& aKeyEvent,TEventCode aType); 00078 00079 private: // Data 00080 00081 /** GUI container that resides in this application UI. */ 00082 CTextureContainer* iAppContainer; 00083 }; 00084 00085 #endif 00086 00087 // End of File
|
© Nokia 2009 |