|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : SatelliteReferenceAppUi 00004 * Part of : Satellite Reference App 00005 * Interface : 00006 * Description : 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 SATELLITE_REFERENCE_APPUI_H 00017 #define SATELLITE_REFERENCE_APPUI_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 #include <aknapp.h> 00026 #include <CSatelliteInfoUI.h> 00027 00028 // FORWARD DECLARATIONS 00029 class CSatelliteReferenceContainer; 00030 class CSatelliteInfoUI; 00031 00032 00033 // CLASS DECLARATION 00034 00035 /** 00036 * Application UI class. 00037 * Provides support for the following features: 00038 * - EIKON control architecture 00039 */ 00040 class CSatelliteReferenceAppUi : public CAknAppUi 00041 { 00042 public: // // Constructors and destructor 00043 00044 void ConstructL(); 00045 00046 /** 00047 * Destructor. 00048 */ 00049 ~CSatelliteReferenceAppUi(); 00050 00051 private: 00052 // From MEikMenuObserver 00053 void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane); 00054 00055 private: 00056 /** 00057 * From CEikAppUi, takes care of command handling. 00058 * @param aCommand command to be handled 00059 */ 00060 void HandleCommandL(TInt aCommand); 00061 00062 /** 00063 * From CEikAppUi, handles key events. 00064 * @param aKeyEvent Event to handled. 00065 * @param aType Type of the key event. 00066 * @return Response code (EKeyWasConsumed, EKeyWasNotConsumed). 00067 */ 00068 virtual TKeyResponse HandleKeyEventL( 00069 const TKeyEvent& aKeyEvent,TEventCode aType); 00070 00071 /** 00072 * From CEikAppUi, handles the event when 00073 * the application is switch between foreground and 00074 * background 00075 */ 00076 void HandleForegroundEventL(TBool aForeground); 00077 00078 private: //Data 00079 CSatelliteReferenceContainer* iAppContainer; 00080 00081 /// Pointer to CSatelliteUI 00082 CSatelliteInfoUI* iSatelliteInfo; 00083 }; 00084 00085 #endif 00086 00087 // End of File
|
© Nokia 2006 |