Nokia N97 SDK
Example Applications Guide

EnvMappingAppUi.h

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

© Nokia 2009

Back to top