landmarks/locationlandmarks/tsrc/LandmarkTestModule/inc/FT_CAreaSearchResult.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 CAREASEARCHRESULT_H
       
    22 #define CAREASEARCHRESULT_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 #include <EPos_CPosLandmark.h>
       
    27 
       
    28 #include "Ft_CSearchResultBase.h"
       
    29 
       
    30 
       
    31 
       
    32 class CAreaSearchResult : public CSearchResultBase
       
    33     {
       
    34 
       
    35     public:  // Constructors and destructor
       
    36         
       
    37          /**
       
    38         * Two-phased constructor.
       
    39         */
       
    40         static CAreaSearchResult* NewL(const TDesC& aDes); 
       
    41 
       
    42         /**
       
    43         * Destructor.
       
    44         */
       
    45         ~CAreaSearchResult();
       
    46         
       
    47     public: 
       
    48 
       
    49         TReal64 SouthLat() const;
       
    50 
       
    51         TReal64 NorthLat() const;
       
    52         
       
    53         TReal64 WestLong() const;
       
    54         
       
    55         TReal64 EastLong() const;
       
    56 
       
    57         TInt ErrorCode() const;
       
    58 
       
    59         void Print(TDes& aDes);
       
    60 
       
    61     private: 
       
    62         
       
    63         CAreaSearchResult();
       
    64 
       
    65         void ConstructL(const TDesC& aDes);
       
    66         
       
    67 
       
    68     private:
       
    69 
       
    70          // By default, prohibit copy constructor
       
    71         CAreaSearchResult(const CAreaSearchResult&);
       
    72         // Prohibit assigment operator
       
    73         CAreaSearchResult& operator=(const CAreaSearchResult&);
       
    74 
       
    75     private: // Data
       
    76         
       
    77         enum TValueIndex
       
    78 			{
       
    79             ESouthLat           =0,	
       
    80             ENorthLat           =1,	
       
    81             EWestLong           =2,
       
    82             EEastLong           =3,
       
    83             EErrorCode          =4,
       
    84             ERedefined          =5,
       
    85             ESearchResult       =6
       
    86 			};
       
    87         
       
    88         TInt        iErrorCode;
       
    89         
       
    90         TReal64     iSouthLat;
       
    91         TReal64     iNorthLat;
       
    92         TReal64     iWestLong;
       
    93         TReal64     iEastLong;
       
    94 
       
    95     };
       
    96 
       
    97 #endif      // CAREASEARCHRESULT_H
       
    98             
       
    99 // End of File