locationdataharvester/mylocationsengine/inc/mylocationsengine.h
changeset 41 b3dd5ec3089d
parent 35 59575560d1e6
--- a/locationdataharvester/mylocationsengine/inc/mylocationsengine.h	Thu Sep 02 20:20:42 2010 +0300
+++ b/locationdataharvester/mylocationsengine/inc/mylocationsengine.h	Mon Oct 04 00:10:56 2010 +0300
@@ -35,9 +35,9 @@
 #include<EPos_CPosLandmarkDatabase.h>
 
 // mylocations database manager
+#include "maptiledblookuptable.h"
 #include "maptileinterface.h"
 #include "mylocationsdatabasemanager.h"
-#include "lookupmaptiledb.h"
 #include "calendernotification.h"
 #include "mylocationgeotagtimerao.h"
 class GeocodeUpdate;
@@ -156,6 +156,15 @@
 private:
 #endif
     
+    //cenrep setting for db in sync state.
+    enum TCenrepSetting
+    {
+        //get the value
+        EMapTileDbStatusGet=0,
+        //set the value
+        EMapTileDbStatusSet
+    };
+    
     /**
      * ConstructL.
      * 2nd phase constructor.
@@ -198,7 +207,7 @@
     * @param aLookupItem Provides information about single address of contact.  
     */  
 	void UpdateMaptileDatabaseL(TInt aEventType ,
-	                             TLookupItem& aLookupItem );
+	                             MaptileLookupItem& aLookupItem );
 	
     /**
      *  Handles active object's request completion event. 
@@ -259,6 +268,11 @@
     void RefreshCalendarEntryListL();    
 
     /**
+    * Deletes invalid calendar entries from mylocation databases.
+    */
+    void DeleteInvalidCalendarEntriesL();    
+    
+    /**
     * Returns True if a calendar entry is available for a given id.
     */
     TBool IsCalendarEntryValidL( TUint32 aId );    
@@ -291,7 +305,7 @@
     /**
      * maptile database manipulation.
      */
-    void ManipulateMapTileDataBaseL(TLookupItem& aLookupItem);
+    void ManipulateMapTileDataBaseL(MaptileLookupItem& aLookupItem);
     
     /**
      * Crop and create multiple maptile images for different applications requirements.
@@ -307,6 +321,20 @@
 	/**Get the contact name for this perticular id.
      */
 	void GetContactName( TInt32 iUId , TDes& aName );
+	
+    /**
+    * Publishing the entry after maptile db modification.
+    * @param aUid, entry id
+    * @param aLookupItem, all entry details
+    */
+    void PublishEntry(TInt32 aUId,  MaptileLookupItem& aLookupItem);
+    
+    /**
+    * Get/Set the maptile db status 
+    * @param aSettingType, Type of setting
+    * @param aValue, Value for the key
+    */
+    void MaptileDbSyncStatusL(const TCenrepSetting& aSettingType, TInt& aValue);
      
 public:  //From MMapTileObserver
     
@@ -365,7 +393,7 @@
     CMyLocationsDatabaseManager*  iMyLocationsDatabaseManager;
     
     //maptiledb 
-    CLookupMapTileDatabase* iMaptileDatabase;
+    LookupMapTileDatabase* iMaptileDatabase;
 
     //Current event type
     TInt iEventType;