S60 3rd Edition SDK for Symbian OS
Example Applications Guide

CLandmarksListBox Class Reference

#include <LandmarksListbox.h>

List of all members.

Public Member Functions

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


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.


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.

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.

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


© Nokia 2006

Back to top