00001 /* 00002 * ============================================================================== 00003 * Name : EPos_CPosLmAreaCriteria.h 00004 * Part of : Mobile Location Framework/Landmarks 00005 * Interface : SDK/S60, Landmarks Search API 00006 * Description : CPosLmAreaCriteria class 00007 * Version : %version: 2 % 00008 * 00009 * Copyright © 2005-2006 Nokia. All rights reserved. 00010 * This material, including documentation and any related computer 00011 * programs, is protected by copyright controlled by Nokia. All 00012 * rights are reserved. Copying, including reproducing, storing, 00013 * adapting or translating, any or all of this material requires the 00014 * prior written consent of Nokia. This material also contains 00015 * confidential information which may not be disclosed to others 00016 * without the prior written consent of Nokia. 00017 * ============================================================================ 00018 * Template version: 4.0 00019 */ 00020 00021 #ifndef CPOSLMAREACRITERIA_H 00022 #define CPOSLMAREACRITERIA_H 00023 00024 #include <e32base.h> 00025 #include "EPos_CPosLmSearchCriteria.h" 00026 00057 class CPosLmAreaCriteria : public CPosLmSearchCriteria 00058 { 00059 public: 00060 00079 IMPORT_C static CPosLmAreaCriteria* NewLC( 00080 const TReal64& aSouthLatitude, 00081 const TReal64& aNorthLatitude, 00082 const TReal64& aWestLongitude, 00083 const TReal64& aEastLongitude 00084 ); 00085 00089 virtual ~CPosLmAreaCriteria(); 00090 00091 public: 00092 00101 IMPORT_C void GetSearchArea( 00102 TReal64& aSouthLatitude, 00103 TReal64& aNorthLatitude, 00104 TReal64& aWestLongitude, 00105 TReal64& aEastLongitude 00106 ) const; 00107 00127 IMPORT_C TInt SetSearchArea( 00128 const TReal64& aSouthLatitude, 00129 const TReal64& aNorthLatitude, 00130 const TReal64& aWestLongitude, 00131 const TReal64& aEastLongitude 00132 ); 00133 00134 private: 00135 00136 // C++ constructor 00137 CPosLmAreaCriteria(); 00138 00139 void ConstructL( 00140 const TReal64& aSouthLatitude, 00141 const TReal64& aNorthLatitude, 00142 const TReal64& aWestLongitude, 00143 const TReal64& aEastLongitude 00144 ); 00145 00146 // Prohibit copy constructor 00147 CPosLmAreaCriteria( const CPosLmAreaCriteria& ); 00148 // Prohibit assigment operator 00149 CPosLmAreaCriteria& operator= ( const CPosLmAreaCriteria& ); 00150 00151 private: 00152 00153 TReal64 iSouthLatitude; 00154 TReal64 iNorthLatitude; 00155 TReal64 iWestLongitude; 00156 TReal64 iEastLongitude; 00157 00158 }; 00159 00160 // CPOSLMAREACRITERIA_H 00161 #endif 00162 00163