S60 3rd Edition SDK for Symbian OS
Example Applications Guide

HierarchyAppUi.h

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

© Nokia 2006

Back to top