|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : RegistrationListbox.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 REGISTRATIONLISTBOX_H 00017 #define REGISTRATIONLISTBOX_H 00018 00019 // INCLUDE FILES 00020 #include <AknSettingItemList.h> 00021 00022 #include "Registration.hrh" 00023 #include <Registration.rsg> 00024 #include "RegistrationItemdata.h" 00025 00026 // FORWARD DECLARATIONS 00027 class CRegistrationView; 00028 00029 // CLASS DECLARATION 00030 00031 /** 00032 * CRegistrationListbox 00033 */ 00034 class CRegistrationListbox : public CAknSettingItemList 00035 { 00036 public: // From CAknSettingItemList 00037 /** 00038 * CreateSettingItemL 00039 * Creates SettingItem 00040 * @param identifier 00041 * @return pointer to CAknSettingItem object 00042 */ 00043 CAknSettingItem* CreateSettingItemL( TInt identifier ); 00044 00045 /** 00046 * EditItemL 00047 * Edits data. 00048 * @param aIndex index of setting item 00049 * @param aCalledFromMenu is called from menu 00050 */ 00051 void EditItemL( TInt aIndex, TBool aCalledFromMenu ); 00052 00053 public: // New functions 00054 /** 00055 * SetData 00056 * Sets List's item data. 00057 * @param aData data to set 00058 */ 00059 void SetData( TRegistrationItemdata* aItemData ); 00060 00061 private: // From CAknSettingItemList 00062 /** 00063 * OfferKeyEventL. 00064 * Handles the key events. 00065 * @param aKeyEvent Key event 00066 * @param aType Type of key event 00067 * (EEventKey, EEventKeyUp or EEventKeyDown) 00068 * @return if key-event is consumed, EKeyWasConsumed. 00069 * Else EKeyWasNotConsumed 00070 */ 00071 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, 00072 TEventCode aType ); 00073 00074 private: // New functions 00075 /** 00076 * SizeChanged 00077 * Called by framework when the size is changed. 00078 */ 00079 void SizeChanged(); 00080 00081 private: //Data 00082 00083 TRegistrationItemdata* iItemData; 00084 CRegistrationView* iView; 00085 }; 00086 00087 #endif // REGISTRATIONLISTBOX_H 00088 00089 // End of File
|
© Nokia 2006 |