00001 /* 00002 * ============================================================================== 00003 * Name : EPos_CPosLmNearestCriteria.h 00004 * Part of : Mobile Location Framework/Landmarks 00005 * Interface : SDK/S60, Landmarks Search API 00006 * Description : CPosLmNearestCriteria class 00007 * Version : %version: bh1cfloc#3 % 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 CPOSLMNEARESTCRITERIA_H 00022 #define CPOSLMNEARESTCRITERIA_H 00023 00024 #include <e32base.h> 00025 #include <lbsposition.h> 00026 #include "epos_cposlmsearchcriteria.h" 00027 00028 00055 class CPosLmNearestCriteria : public CPosLmSearchCriteria 00056 { 00057 public: 00058 00071 IMPORT_C static CPosLmNearestCriteria* NewLC( 00072 const TCoordinate& aCoordinate, 00073 TBool aUseCoverageRadius = EFalse 00074 ); 00075 00079 virtual ~CPosLmNearestCriteria(); 00080 00081 public: 00082 00088 IMPORT_C void GetCoordinate( TCoordinate& aCoordinate ) const; 00089 00100 IMPORT_C void SetCoordinate( const TCoordinate& aCoordinate ); 00101 00108 IMPORT_C TBool UseCoverageRadius() const; 00109 00116 IMPORT_C void SetUseCoverageRadius( TBool aUseCoverageRadius ); 00117 00127 IMPORT_C TReal32 MaxDistance() const; 00128 00138 IMPORT_C void SetMaxDistance( TReal32 aMaxDistance ); 00139 00140 private: 00141 00142 CPosLmNearestCriteria(TBool aUseCoverageRadius); 00143 00144 void ConstructL(const TCoordinate& aCoordinate); 00145 00146 // Prohibit copy constructor 00147 CPosLmNearestCriteria( const CPosLmNearestCriteria& ); 00148 // Prohibit assigment operator 00149 CPosLmNearestCriteria& operator= ( const CPosLmNearestCriteria& ); 00150 00151 private: 00152 00153 TCoordinate iCenterCoordinate; 00154 TBool iUseCoverageRadius; 00155 TReal32 iMaxDistance; 00156 00157 }; 00158 00159 // CPOSLMNEARESTCRITERIA_H 00160 #endif 00161 00162