landmarksui/engine/inc/CLmkParsedLmListProvider.h
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     1 /*
       
     2 * Copyright (c) 2004 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:    LandmarksUi Content File -    This class provides list items belonging to received
       
    15 *                landmark package.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 #ifndef CLMKPARSEDLMLISTPROVIDER_H
       
    27 #define CLMKPARSEDLMLISTPROVIDER_H
       
    28 
       
    29 //  INCLUDES
       
    30 #include "CLmkListProviderBase.h"
       
    31 #include <EPos_Landmarks.h>
       
    32 
       
    33 // FORWARD DECLARATIONS
       
    34 class CLmkParser;
       
    35 
       
    36 // CLASS DECLARATION
       
    37 
       
    38 /**
       
    39 *  This class provides list items belonging to received landmark package.
       
    40 *  Landmark package parsing should be already completed when instantiating
       
    41 *  the list provider.
       
    42 */
       
    43 
       
    44 class CLmkParsedLmListProvider : public CLmkListProviderBase
       
    45     {
       
    46     public:  // Constructors and destructor
       
    47         /**
       
    48         * Creates a provider for items
       
    49         * @param aParser
       
    50         * @return newly instantiated object
       
    51         */
       
    52         static CLmkParsedLmListProvider* NewL( CLmkParser& aParser );
       
    53 
       
    54         /**
       
    55         * Destructor.
       
    56         */
       
    57         ~CLmkParsedLmListProvider();
       
    58 
       
    59     public: // From CLmkListProviderBase
       
    60         /**
       
    61         * In this class this method does nothing.
       
    62         */
       
    63         void InitializeL();
       
    64         TInt ItemCount() const;
       
    65         CLmkUiItemBase* ItemAtL( TInt aIndex );
       
    66         TBool StartSearchingLandmarksL(
       
    67 								const TDesC& aSearchPattern,
       
    68     							TBool aSearchOnlyInPreviousMatches);
       
    69 
       
    70     private:  // Constructors and destructor
       
    71         /**
       
    72         * C++ constructor.
       
    73         * @param aParser
       
    74         * @return newly instantiated object
       
    75         */
       
    76         CLmkParsedLmListProvider( CLmkParser& aParser );
       
    77 
       
    78         /**
       
    79         * By default Symbian 2nd phase constructor is private.
       
    80         */
       
    81         void ConstructL();
       
    82 
       
    83     private:    // Data
       
    84         ///Ref:
       
    85         CLmkParser& iParser;
       
    86 
       
    87     };
       
    88 
       
    89 #endif      // CLMKPARSEDLMLISTPROVIDER_H
       
    90 
       
    91 // End of File