Nokia N97 SDK Example Applications Guide |
DynamicSettingList Example
1. About this Example
2. Architecture
3. Design and Implementation
DynamicSettingList example demonstrates how to load CAknSettingItemList dynamically at run time instead of defining the list structure into a resource file. In the example, the lists are loaded
during application start-up.
The example can be used as the basis for many different applications where a list has to be loaded dynamically (for instance,
based on external feed from a server).
- CAknSettingItemList
- CAknTextSettingItem
- CAknIntegerEdwinSettingItem
- CAknPasswordSettingItem
- CAknVolumeSettingItem
- CAknTimeOrDateSettingItem
- CAknTimeOrDateSettingItem
- CAknTimeOffsetSettingItem
- CAknIpFieldSettingItem
- CAknEnumeratedTextPopupSettingItem
- CAknBinaryPopupSettingItem
Symbian C++ basics
DynamicSettingList example follows traditional Symbian OS Control-based architecture.
In the example CDynamicSettingListAppView is important class, which loads the setting list dynamically. implements all setting items: text, integer, password, volume, date, time, IP field and enumerated settings.
Note that CAknSettingItemList itself is not ideal for dynamic loading, but it is possible by using dummy resource IDs and
defining all the required list item types in the source code. At run time it is then possible to load multiple instances of
each list item type (with any label and value).
The program capabilities are defined in the DynamicSettingList_S60_3rd_ed.mmp file: CAPABILITY NONE
The main feature of DynamicSettingList example is loading and creating the settings dynamically. The different setting items
are used and are listed below with the Symbian classes with which they are implemented.
- Text Setting: CAknTextSettingItem
- Integer Setting: CAknIntegerEdwinSettingItem
- Password Setting: CAknPasswordSettingItem
- Volume Setting: CAknVolumeSettingItem
- Dynamic Slider Setting: CDynamicSettingListSlider (user defined class)
- Date setting: CAknTimeOrDateSettingItem
- Time offset Setting: CAknTimeOffsetSettingItem
- Ip field setting: CAknIpFieldSettingItem
- Enumerated text Setting: CAknEnumeratedTextPopupSettingItem
- Binary pop-up setting: CAknBinaryPopupSettingItem
|
© Nokia 2009
|

|