|
Nokia N97 SDK Example Applications Guide |
1. About this Example
2. Architecture
3. Design and Implementation
After successful build, application can be found and started from: Applications > Installed > HCList
The application user interface class CHierarchicalColumnListAppUi instance creates a container class, an instance of CHierarchicalColumnListAppView, which is responsible for drawing the view and handling the key and pointer events.
The container class constructs the hierarchical list, which is an instance of CAknSingleColumnStyleTreeList class, and a background control context, an instance of CAknsBasicBackgroundControlContext.
Container class also realizes the MAknTreeListObserver interface, which is then registered to the hierarchical column list to act as callback hook between the list and the container.
The events received through the interface are in this example mainly used in implementing the application's middle softkey
(MSK) functionality.
After hierarchical list is constructed, the container then populates it with small set of items. Any dynamic changes in the tree structure are not demonstrated in this example.
CHierarchicalColumnListAppView::OfferKeyEventL() method. This method only passes the events to the hierarchical column list, which then responds to the received key events
with appropriate actions.
CHierarchicalColumnListAppView::SizeChanged() method.
CHierarchicalColumnListAppView::MopSupplyObject() method.
Before menus are displayed, the menu panes are passed to the AppUi, which only passes them on to the container class, so that it can remove some of the menu items depending on the list state.
The MSK commands in the example application are handled by container class. As all the commands relate to the list state,
these commands are updated to necessary commands whenever the container receives list events in the CHierarchicalColumnListAppView::HandleTreeListEvent() method.
|
© Nokia 2009 |