S60 3rd Edition SDK for Symbian OS
Example Applications Guide

LandmarksListbox.h

00001 /*
00002 * ==============================================================================
00003 *  Name        : LandmarksListBox.h
00004 *  Part of     : Landmark Reference Application
00005 *  Interface   : Application Engine API
00006 *  Description : See class description below
00007 *  Version     : 1.0
00008 *
00009 *  Copyright (c) 2004-2006 Nokia Corporation.
00010 *  This material, including documentation and any related 
00011 *  computer programs, is protected by copyright controlled by 
00012 *  Nokia Corporation.
00013 * ==============================================================================
00014 */
00015 
00016 #ifndef __LANDMARKS_LIST_BOX_H__
00017 #define __LANDMARKS_LIST_BOX_H__
00018 
00019 // INCLUDES
00020 #include <aknlists.h>
00021 
00022 // FORWARD DECLARATIONS
00023 class CLandmarksListBoxModel;
00024 
00025 // CLASS DECLARATION
00026 
00027 /**
00028 *  CLandmarksListBox exists because the list boxes in Landmark reference 
00029 *  application needs a specialized version of CAknFilteredTextListBoxModel 
00030 *  called CLandmarksListBoxModel. CLandmarksListBox creates an instance of 
00031 *  CLandmarksListBoxModel instead of the default CAknFilteredTextListBoxModel.
00032 */
00033 class CLandmarksListBox : public CAknSingleGraphicStyleListBox
00034     {
00035     public: // Constructors and destructor
00036     
00037         /**
00038         * Symbian 2nd phase constructor. Should be called after the 
00039         * constructor.
00040         *
00041         * @param aParent the parent control
00042         * @param aFlags flags defining the behaviour of the listbox
00043         */
00044         void ConstructL(
00045             const CCoeControl* aParent,
00046             TInt aFlags);
00047 
00048     public: // from CAknColumnListBox
00049 
00050         /**
00051         * Creates the listbox model.
00052         */
00053         void CreateModelL();
00054 
00055     public: // from CEikColumnListBox
00056 
00057         /**
00058         * Returns a pointer to the listbox model.
00059         *
00060         * @return a pointer to the listbox model
00061         */
00062         CLandmarksListBoxModel* Model() const;
00063 
00064     };
00065 
00066 #endif // __LANDMARKS_LIST_BOX_H__
00067 
00068 // End of File
00069 

© Nokia 2006

Back to top