00001 /* 00002 * ============================================================================== 00003 * Name : EPos_CPosLmTextCriteria.h 00004 * Part of : Mobile Location Framework/Landmarks 00005 * Interface : SDK/S60, Landmarks Search API 00006 * Description : CPosLmTextCriteria 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 CPOSLMTEXTCRITERIA_H 00022 #define CPOSLMTEXTCRITERIA_H 00023 00024 #include <e32base.h> 00025 #include <lbsfields.h> 00026 #include <epos_cposlandmark.h> 00027 #include "epos_cposlmsearchcriteria.h" 00028 00029 const TInt KPosLmMaxSearchStringLength = 255; 00030 00054 class CPosLmTextCriteria : public CPosLmSearchCriteria 00055 { 00056 public: 00057 00062 IMPORT_C static CPosLmTextCriteria* NewLC(); 00063 00067 virtual ~CPosLmTextCriteria(); 00068 00069 public: 00070 00076 IMPORT_C TPtrC Text() const; 00077 00098 IMPORT_C void SetTextL( const TDesC& aText ); 00099 00111 IMPORT_C CPosLandmark::TAttributes AttributesToSearch() const; 00112 00126 IMPORT_C void SetAttributesToSearch( 00127 CPosLandmark::TAttributes aAttributes 00128 ); 00129 00138 IMPORT_C void GetPositionFieldsToSearchL( 00139 RArray<TUint>& aFieldArray 00140 ) const; 00141 00151 IMPORT_C void SetPositionFieldsToSearchL( 00152 const RArray<TUint>& aFieldArray 00153 ); 00154 00158 IMPORT_C void ClearPositionFieldsToSearch(); 00159 00160 private: 00161 00162 CPosLmTextCriteria(); 00163 00164 void ConstructL(); 00165 00166 // Prohibit copy constructor 00167 CPosLmTextCriteria( const CPosLmTextCriteria& ); 00168 // Prohibit assigment operator 00169 CPosLmTextCriteria& operator= ( const CPosLmTextCriteria& ); 00170 00171 private: 00172 00173 HBufC* iText; 00174 RArray<TUint> iPositionFieldArray; 00175 CPosLandmark::TAttributes iAttributes; 00176 00177 }; 00178 00179 // CPOSLMTEXTCRITERIA_H 00180 #endif 00181 00182