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