locationlandmarksrefappfors60/Src/LandmarksListBox.cpp
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     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 *       Implements the CLandmarksContainerBase class
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #include "LandmarksListbox.h"
       
    22 #include "LandmarksListBoxModel.h"
       
    23 
       
    24 // ============================ MEMBER FUNCTIONS ===============================
       
    25 
       
    26 // -----------------------------------------------------------------------------
       
    27 // -----------------------------------------------------------------------------
       
    28 //
       
    29 void CLandmarksListBox::ConstructL(
       
    30     const CCoeControl* aParent,
       
    31     TInt aFlags)
       
    32     {
       
    33     // Create a specialized model, forwarding the filtering algorithm to the 
       
    34     // landmark API.
       
    35     iModel = new (ELeave) CLandmarksListBoxModel;
       
    36 
       
    37     // Continue construction of the object.
       
    38     CEikColumnListBox::ConstructL(aParent, aFlags);
       
    39     }
       
    40 
       
    41 // -----------------------------------------------------------------------------
       
    42 // -----------------------------------------------------------------------------
       
    43 //
       
    44 void CLandmarksListBox::CreateModelL()
       
    45     {
       
    46     // Do nothing. Model is already constructed in constructor.
       
    47     // This method must be overridden to prevent base class to recreate a new, 
       
    48     // for our purpuses, non-suitable model.
       
    49     }
       
    50 
       
    51 // -----------------------------------------------------------------------------
       
    52 // -----------------------------------------------------------------------------
       
    53 //
       
    54 CLandmarksListBoxModel* CLandmarksListBox::Model() const
       
    55     {
       
    56     return static_cast <CLandmarksListBoxModel*> (iModel);
       
    57     }
       
    58 
       
    59