Nokia N97 SDK
Example Applications Guide

DynamicSettingList Example

1. About this Example
2. Architecture
3. Design and Implementation


1. About this Example

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).

1.1 APIs demonstrated

1.2 Prerequisites

Symbian C++ basics

2. Architecture

DynamicSettingList example follows traditional Symbian OS Control-based architecture.

3. Design and Implementation

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).

3.1 Capabilities

The program capabilities are defined in the DynamicSettingList_S60_3rd_ed.mmp file: CAPABILITY NONE

3.2 Features

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.


© Nokia 2009

Back to top