S60 3rd Edition SDK for Symbian OS
Example Applications Guide

CLandmarksListBoxModel Class Reference

#include <LandmarksListBoxModel.h>

List of all members.

Public Member Functions

const MDesCArray * MatchableTextArray () const
TInt NumberOfItems () const
TPtrC ItemText (TInt aItemIndex) const


Detailed Description

CLandmarksListBoxModel bypasses the default filtering algorithm provided by CAknFilteredTextListBoxModel. The filtering responsibility is forwarded to the CCoeControl instance owning the list box. That instance must update the model when the filter has been modified.

Definition at line 30 of file LandmarksListBoxModel.h.


Member Function Documentation

const MDesCArray * CLandmarksListBoxModel::MatchableTextArray (   )  const
 

Gets an array of strings to be displayed in the listbox for incremental matching of typed characters. This array always contains the total number of items rather than a subset filtered out from the model.

Returns:
A text array for matching.

Definition at line 27 of file LandmarksListBoxModel.cpp.

00028     {
00029     return iItemTextArray;
00030     }

TInt CLandmarksListBoxModel::NumberOfItems (   )  const
 

Gets the number of text items in this list box model. This number is always the total number of items in the model rather than a subset filtered out from the model

Returns:
The number of text items in this list box model

Definition at line 38 of file LandmarksListBoxModel.cpp.

00039     {
00040     return iItemTextArray->MdcaCount();
00041     }

TPtrC CLandmarksListBoxModel::ItemText (  TInt  aItemIndex  )  const
 

Gets the text to be displayed in the list box control for a specific item.

Parameters:
aItemIndex Index of an item
Returns:
Text string to be displayed

Definition at line 49 of file LandmarksListBoxModel.cpp.

00050     {
00051     return iItemTextArray->MdcaPoint(aItemIndex);
00052     }


© Nokia 2006

Back to top