00001 /* 00002 * ============================================================================== 00003 * Name : EPos_TPosLmSortPref.h 00004 * Part of : Mobile Location Framework/Landmarks 00005 * Interface : SDK/S60, Landmarks API 00006 * Description : TPosLmSortPref 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 TPOSLMSORTPREF_H 00022 #define TPOSLMSORTPREF_H 00023 00024 #include <e32base.h> 00025 #include "epos_cposlandmark.h" 00026 00038 class TPosLmSortPref 00039 { 00040 public: 00041 00045 enum TSortOrder 00046 { 00047 EAscending = 0 , 00048 EDescending 00049 }; 00050 00051 public: // Constructors 00052 00067 IMPORT_C TPosLmSortPref( 00068 CPosLandmark::TAttributes aLandmarkAttribute, 00069 TSortOrder aSortOrder = EAscending 00070 ); 00071 00072 public: 00073 00079 IMPORT_C TSortOrder SortOrder() const; 00080 00088 IMPORT_C CPosLandmark::TAttributes LandmarkAttributeToSortBy() const; 00089 00101 IMPORT_C void SetSortByLandmarkAttribute( 00102 CPosLandmark::TAttributes aLandmarkAttribute, 00103 TSortOrder aSortOrder = EAscending 00104 ); 00105 00106 private: 00107 00108 TSortOrder iSortOrder; 00109 CPosLandmark::TAttributes iLandmarkAttribute; 00110 TUint8 iUnusedData[16]; 00111 00112 }; 00113 00114 // TPOSLMSORTPREF_H 00115 #endif 00116 00117