landmarks/locationlandmarks/tsrc/LandmarkTestModule/inc/FT_CSearchResultBase.h
branchRCL_3
changeset 44 2b4ea9893b66
equal deleted inserted replaced
42:02ba3f1733c6 44:2b4ea9893b66
       
     1 /*
       
     2 * Copyright (c) 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 *   ?description_line
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CSEARCHRESULTBASE_H
       
    22 #define CSEARCHRESULTBASE_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 #include <EPos_CPosLandmark.h>
       
    27 
       
    28 
       
    29 
       
    30 class CSearchResultBase : public CBase
       
    31     {
       
    32 
       
    33     public:  // Constructors and destructor
       
    34         
       
    35         CSearchResultBase(); 
       
    36 
       
    37         /**
       
    38         * Destructor.
       
    39         */
       
    40         virtual ~CSearchResultBase();      
       
    41 
       
    42     public: 
       
    43 
       
    44          RArray<TPosLmItemId>& SearchResult();
       
    45 
       
    46          TBool FindSearchResult(const TPosLmItemId aId);
       
    47          
       
    48          TBool Redefined() const;
       
    49          
       
    50          TUint Attributes() const;
       
    51 
       
    52     protected:
       
    53 
       
    54             void ParseSearchResult(const TDesC& aDes);
       
    55 
       
    56             void ParseAttributesL(const TDesC& aDes);
       
    57 
       
    58     private:
       
    59 
       
    60          // By default, prohibit copy constructor
       
    61         CSearchResultBase(const CSearchResultBase&);
       
    62         // Prohibit assigment operator
       
    63         CSearchResultBase& operator=(const CSearchResultBase&);
       
    64       
       
    65     protected: // Data
       
    66         
       
    67         TBool                        iRedefined;     
       
    68 
       
    69         TUint32                     iAttributes; 
       
    70 
       
    71         RArray<TPosLmItemId>        iSearchResult;
       
    72 
       
    73     private: // Data
       
    74         
       
    75 
       
    76     };
       
    77 
       
    78 #endif      // CSearchResultBase_H
       
    79             
       
    80 // End of File