|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : RegistrationAppui.h 00004 * Part of : Registration 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 REGISTRATIONAPPUI_H 00017 #define REGISTRATIONAPPUI_H 00018 00019 // INCLUDE FILES 00020 #include <aknviewappui.h> 00021 #include <avkon.hrh> 00022 #include <aknnotewrappers.h> 00023 00024 #include <Registration.rsg> 00025 #include "Registration.hrh" 00026 00027 // FORWARD DECLARATIONS 00028 class CRegistrationView; 00029 00030 // CONSTANTS 00031 const TInt KMaxNoteLength = 64; 00032 00033 // CLASS DECLARATION 00034 00035 /** 00036 * Application UI class. 00037 * Provides support for the following features: 00038 * - EIKON control architecture 00039 */ 00040 class CRegistrationAppUi : public CAknViewAppUi 00041 { 00042 public: // Constructors and destructor 00043 00044 /** 00045 * Symbian default constructor. 00046 */ 00047 void ConstructL(); 00048 00049 /** 00050 * Destructor. 00051 */ 00052 ~CRegistrationAppUi(); 00053 00054 public: // New functions 00055 00056 public: // Functions from base classes 00057 00058 private: // From MEikMenuObserver 00059 /** 00060 * This function is called by the EIKON framework just before 00061 * it displays a menu pane. 00062 */ 00063 void DynInitMenuPaneL( TInt aResourceId,CEikMenuPane* aMenuPane ); 00064 00065 private: // From CEikAppUi 00066 /** 00067 * Takes care of command handling. 00068 * @param aCommand command to be handled 00069 */ 00070 void HandleCommandL( TInt aCommand ); 00071 00072 /** 00073 * Called by framework when layout is changed. 00074 * @param aType Type of resources that have changed 00075 */ 00076 virtual void HandleResourceChangeL( TInt aType ); 00077 00078 /** 00079 * Handles key events. 00080 * @param aKeyEvent Event to handled 00081 * @param aType Type of the key event 00082 * @return Response code (EKeyWasConsumed, EKeyWasNotConsumed) 00083 */ 00084 TKeyResponse HandleKeyEventL( 00085 const TKeyEvent& aKeyEvent,TEventCode aType ); 00086 00087 private: // Data 00088 00089 CRegistrationView* iAppView; 00090 TBuf<KMaxNoteLength> iNote; 00091 00092 }; 00093 00094 #endif // REGISTRATIONAPPUI_H 00095 00096 // End of File
|
© Nokia 2006 |