|
Nokia N97 SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : ListboxSettingList.h 00004 * Part of : Listbox example 00005 * Interface : 00006 * Description : 00007 * Version : 00008 * 00009 * Copyright (c) 2007 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 __LISTBOXSETTINGLIST_H__ 00017 #define __LISTBOXSETTINGLIST_H__ 00018 00019 00020 #include <AknSettingItemList.h> 00021 #include <aknsettingpage.h> 00022 00023 class CNaviScrollTimer; 00024 00025 /** 00026 * CListboxSettingList class 00027 * This class is a container for CListboxSettingView. It implements functionality 00028 * for setting list. 00029 */ 00030 class CListboxSettingList : public CAknSettingItemList 00031 { 00032 public: 00033 00034 /** 00035 * C++ default constructor. 00036 */ 00037 CListboxSettingList(); 00038 00039 /** 00040 * Destructor. 00041 */ 00042 ~CListboxSettingList(); 00043 00044 /** 00045 * Two-phased constructor. 00046 */ 00047 static CListboxSettingList* NewL(); 00048 00049 public: // From CAknSettingItemList 00050 00051 /** 00052 * From CAknSettingItemList. 00053 * Creates setting item. 00054 * 00055 * @param aSettingId Type of the setting item. 00056 * @return Pointer to CAknSettingItem object. 00057 */ 00058 CAknSettingItem* CreateSettingItemL( TInt aSettingId ); 00059 00060 /** 00061 * From CAknSettingItemList. 00062 * Edits setting item data. 00063 * 00064 * @param aIndex Setting item index. 00065 * @param aCalledFromMenu is called from menu. 00066 */ 00067 void EditItemL( TInt aIndex, TBool aCalledFromMenu ); 00068 00069 private: 00070 00071 /** 00072 * By default Symbian 2nd phase constructor is private. 00073 */ 00074 void ConstructL(); 00075 00076 private: // Data 00077 00078 /** 00079 * Descriptor for user name. 00080 */ 00081 TBuf<70> iText; 00082 00083 /** 00084 * Integer representing the selected index from "Connection mode" 00085 * setting page. 00086 */ 00087 TInt iSelected; 00088 00089 /** 00090 * Timer for scrolling listbox class name on the navigation pane. 00091 * 00092 * Owned 00093 */ 00094 CNaviScrollTimer* iTimer; 00095 00096 }; 00097 00098 #endif // __LISTBOXSETTINGLIST_H__ 00099
|
© Nokia 2009 |