locationlandmarksrefappfors60/Inc/LandmarksListbox.h
branchRCL_3
changeset 18 870918037e16
parent 0 522cd55cc3d7
equal deleted inserted replaced
17:1fc85118c3ae 18:870918037e16
       
     1 /*
       
     2 * Copyright (c) 2004-2005 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  
       
    15 *     See class description below
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __LANDMARKS_LIST_BOX_H__
       
    21 #define __LANDMARKS_LIST_BOX_H__
       
    22 
       
    23 
       
    24 #include <aknlists.h>
       
    25 
       
    26 
       
    27 class CLandmarksListBoxModel;
       
    28 
       
    29 
       
    30 
       
    31 /**
       
    32 *  CLandmarksListBox exists because the list boxes in Landmark reference 
       
    33 *  application needs a specialized version of CAknFilteredTextListBoxModel 
       
    34 *  called CLandmarksListBoxModel. CLandmarksListBox creates an instance of 
       
    35 *  CLandmarksListBoxModel instead of the default CAknFilteredTextListBoxModel.
       
    36 */
       
    37 class CLandmarksListBox : public CAknSingleGraphicStyleListBox
       
    38     {
       
    39     public: // Constructors and destructor
       
    40     
       
    41         /**
       
    42         * Symbian 2nd phase constructor. Should be called after the 
       
    43         * constructor.
       
    44         *
       
    45         * @param aParent the parent control
       
    46         * @param aFlags flags defining the behaviour of the listbox
       
    47         */
       
    48         void ConstructL(
       
    49             const CCoeControl* aParent,
       
    50             TInt aFlags);
       
    51 
       
    52     public: // from CAknColumnListBox
       
    53 
       
    54         /**
       
    55         * Creates the listbox model.
       
    56         */
       
    57         void CreateModelL();
       
    58 
       
    59     public: // from CEikColumnListBox
       
    60 
       
    61         /**
       
    62         * Returns a pointer to the listbox model.
       
    63         *
       
    64         * @return a pointer to the listbox model
       
    65         */
       
    66         CLandmarksListBoxModel* Model() const;
       
    67 
       
    68     };
       
    69 
       
    70 #endif // __LANDMARKS_LIST_BOX_H__
       
    71