00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef LANDMARKS_H
00022 #define LANDMARKS_H
00023
00024 #include <e32std.h>
00025
00031 typedef TUint32 TPosLmItemId;
00032
00038 typedef TUint16 TPosLmGlobalCategory;
00039
00045 enum TPosLmCollectionDataId
00046 {
00047 EPosLmCollDataNone = 0 ,
00049 EPosLmCollDataCollectionName = 1 ,
00051 EPosLmCollDataCollectionDescription = 2 ,
00053
00054 EPosLmCollDataContentSpecificDataBegin = 0x8000 ,
00056 EPosLmCollDataLast = KMaxTUint16
00058 };
00059
00073 enum TPosLmEventType
00074 {
00075 EPosLmEventUnknownChanges = 0 ,
00076
00077 EPosLmEventNewDefaultDatabaseLocation = 10 ,
00081
00082 EPosLmEventMediaRemoved = 11 ,
00087
00088 EPosLmEventLandmarkUnknownChanges = 100 ,
00090
00091 EPosLmEventLandmarkCreated = 101 ,
00093 EPosLmEventLandmarkDeleted = 102 ,
00095 EPosLmEventLandmarkUpdated = 103 ,
00097
00098 EPosLmEventCategoryUnknownChanges = 200 ,
00100
00101 EPosLmEventCategoryCreated = 201 ,
00103 EPosLmEventCategoryDeleted = 202 ,
00105 EPosLmEventCategoryUpdated = 203
00107 };
00108
00114 struct TPosLmEvent
00115 {
00116 TPosLmEventType iEventType;
00117 TPosLmItemId iLandmarkItemId;
00123 TUint8 iUnused[8];
00124 };
00125
00126
00127
00128 const TUint32 KPosLmNullItemId = 0;
00129 const TUint16 KPosLmNullGlobalCategory = 0;
00130
00131 const TInt KPosLmIconMaskNotUsed = -1;
00132
00133 const TInt KPosLmMaxTextFieldLength = 255;
00134 const TInt KPosLmMaxDescriptionLength = 4095;
00135 const TInt KPosLmMaxCategoryNameLength = 124;
00136
00137 const TUint KPosLastParsedLandmark = KMaxTUint32;
00138
00139
00140
00141
00142 const TInt KLandmarksErrorBase = -30351;
00143 const TInt KErrPosLmNotInitialized = KLandmarksErrorBase;
00144 const TInt KErrPosLmUnknownFormat = KLandmarksErrorBase - 1;
00145
00146 const TInt KPosLmOperationNotComplete = 1001;
00147
00148
00149 _LIT(KPosLmDbSecureFormat, "secure[101FE978]");
00150
00151
00152 const TUid KPosLmDbSecureUid = { 0x101FE978 };
00153
00154
00155
00173 IMPORT_C void ReleaseLandmarkResources(TAny* = NULL);
00174
00175
00176 #endif
00177
00178