Nokia N97 SDK
Example Applications Guide

CLandmarksListBox Class Reference

#include <LandmarksListbox.h>

Inheritance diagram for CLandmarksListBox:

List of all members.

Detailed Description

CLandmarksListBox exists because the list boxes in Landmark reference application needs a specialized version of CAknFilteredTextListBoxModel called CLandmarksListBoxModel. CLandmarksListBox creates an instance of CLandmarksListBoxModel instead of the default CAknFilteredTextListBoxModel.

Definition at line 33 of file LandmarksListbox.h.


Public Member Functions

void  ConstructL (const CCoeControl *aParent, TInt aFlags)
void  CreateModelL ()
CLandmarksListBoxModel *  Model () const


Member Function Documentation

void CLandmarksListBox::ConstructL (  const CCoeControl *  aParent,
TInt  aFlags
) 
 

Symbian 2nd phase constructor. Should be called after the constructor.

Parameters:
aParent  the parent control
aFlags  flags defining the behaviour of the listbox

Definition at line 27 of file LandmarksListBox.cpp.

Referenced by CLandmarksContainerBase::CreateListBoxL().

00030     {
00031     // Create a specialized model, forwarding the filtering algorithm to the 
00032     // landmark API.
00033     iModel = new (ELeave) CLandmarksListBoxModel;
00034 
00035     // Continue construction of the object.
00036     CEikColumnListBox::ConstructL(aParent, aFlags);
00037     }

void CLandmarksListBox::CreateModelL (   ) 
 

Creates the listbox model.

Definition at line 45 of file LandmarksListBox.cpp.

00046     {
00047     // Do nothing. Model is already constructed in constructor.
00048     // This method must be overridden to prevent base class to recreate a new, 
00049     // for our purpuses, non-suitable model.
00050     }

CLandmarksListBoxModel * CLandmarksListBox::Model (   )  const
 

Returns a pointer to the listbox model.

Returns:
a pointer to the listbox model

Definition at line 58 of file LandmarksListBox.cpp.

Referenced by CLandmarksContainer::ConstructL(), CLandmarksCategoriesContainer::ConstructL(), and CLandmarksContainerBase::CreateFindBoxL().

00059     {
00060     return static_cast <CLandmarksListBoxModel*> (iModel);
00061     }


The documentation for this class was generated from the following files:

© Nokia 2009

Back to top