|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
00001 /* 00002 * ============================================================================ 00003 * Name : BrCtlSampleAppUi.h 00004 * Part of : BrCtlSampleApp 00005 * Interface : Browser Control API 00006 * Description : The Ui class for the Browser Control Sample Application 00007 * Version : 00008 * 00009 * Copyright (c) 2005-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 BRCTLSAMPLEAPPAPPUI_H 00017 #define BRCTLSAMPLEAPPAPPUI_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 CBrCtlSampleAppContainer; 00028 00029 // CLASS DECLARATION 00030 /** 00031 * CBrCtlSampleAppUi class. 00032 * Application UI class which provides support for the following features: 00033 * - EIKON control architecture 00034 * 00035 */ 00036 class CBrCtlSampleAppUi : public CAknAppUi 00037 { 00038 public: // // Constructors and destructor 00039 00040 /** 00041 * EPOC default constructor. 00042 */ 00043 void ConstructL(); 00044 00045 /** 00046 * Destructor. 00047 */ 00048 ~CBrCtlSampleAppUi(); 00049 00050 public: // New functions 00051 00052 public: // Functions from base classes 00053 00054 private: 00055 // From MEikMenuObserver 00056 void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane); 00057 00058 private: 00059 /** 00060 * From CEikAppUi, takes care of command handling. 00061 * @param aCommand Command to be handled 00062 */ 00063 void HandleCommandL(TInt aCommand); 00064 00065 /** 00066 * From CEikAppUi, handles key events. 00067 * @param aKeyEvent Event to handled. 00068 * @param aType Type of the key event. 00069 * @return Response code (EKeyWasConsumed, EKeyWasNotConsumed). 00070 */ 00071 virtual TKeyResponse HandleKeyEventL( 00072 const TKeyEvent& aKeyEvent,TEventCode aType); 00073 00074 private: //Data 00075 CBrCtlSampleAppContainer* iAppContainer; 00076 00077 }; 00078 00079 #endif 00080 00081 // End of File 00082
|
© Nokia 2006 |