locationdataharvester/mylocationsengine/inc/mylocationsengine.h
changeset 20 cd10d5b85554
parent 17 0f22fb80ebba
child 26 f3533f6eae3f
equal deleted inserted replaced
17:0f22fb80ebba 20:cd10d5b85554
    24 // calendar related headers
    24 // calendar related headers
    25 #include <calsession.h>
    25 #include <calsession.h>
    26 #include <calentryview.h>
    26 #include <calentryview.h>
    27 
    27 
    28 // Header for contact DB
    28 // Header for contact DB
    29 #include <CNTDB.H>
    29 #include <cntdb.h>
    30 
    30 
    31 // Header for landmarks db
    31 // Header for landmarks db
    32 #include<epos_cposlandmarkdatabase.h>
    32 #include<EPos_CPosLandmarkDatabase.h>
    33 
    33 
    34 // mylocations database manager
    34 // mylocations database manager
    35 #include "maptileinterface.h"
    35 #include "maptileinterface.h"
    36 #include "mylocationsdatabasemanager.h"
    36 #include "mylocationsdatabasemanager.h"
    37 #include "lookupmaptiledb.h"
    37 #include "lookupmaptiledb.h"
   118 
   118 
   119     /** Starts landmarks change notification method to get callbacks when entries are added/modified/deleted in landmarks
   119     /** Starts landmarks change notification method to get callbacks when entries are added/modified/deleted in landmarks
   120      *
   120      *
   121      */      
   121      */      
   122     void StartLandmarksChangeNotifier();
   122     void StartLandmarksChangeNotifier();
       
   123 
       
   124 
   123     
   125     
   124     /** Maps the source type change type to Mylocations entry change type
   126     /** Maps the source type change type to Mylocations entry change type
   125     * @param[in] aSrcType Source type of the change
   127     * @param[in] aSrcType Source type of the change
   126     * @param[in] aChangeType Type of change ( added/modified/deleted ).
   128     * @param[in] aChangeType Type of change ( added/modified/deleted ).
   127     * @return The mylocations entry change type value.
   129     * @return The mylocations entry change type value.
   128      */      
   130      */      
   129     TEntryChangeType MapChangeType( TUidSourceType aSrcType, TUint32 aChangeType );    
   131     TEntryChangeType MapChangeType( TUidSourceType aSrcType, TUint32 aChangeType );    
   130  
   132  
   131     /** Gets the handle to mylocations database manager
       
   132      *
       
   133      */      
       
   134     CMyLocationsDatabaseManager& MyLocationsDbManager();
       
   135 
   133 
   136 private:
   134 private:
   137     
   135     
   138     /**
   136     /**
   139      * ConstructL.
   137      * ConstructL.
   200     * @param aEventType  Provides information about the type of request address.
   198     * @param aEventType  Provides information about the type of request address.
   201     * @param aLookupItem Provides information about single address of contact.  
   199     * @param aLookupItem Provides information about single address of contact.  
   202     */  
   200     */  
   203 	void HandleMaptileDatabaseL(TInt aEventType ,
   201 	void HandleMaptileDatabaseL(TInt aEventType ,
   204 	                             TLookupItem& aLookupItem );
   202 	                             TLookupItem& aLookupItem );
       
   203 
   205     /**
   204     /**
   206      *  Handles active object's request completion event. 
   205      *  Handles active object's request completion event. 
   207      */
   206      */
   208     void RunL();
   207     void RunL();
   209 
   208 
   210     /** 
   209     /** 
   211      * Implements cancellation of an outstanding request. 
   210      * Implements cancellation of an outstanding request. 
   212      */
   211      */
   213     void DoCancel();
   212     void DoCancel();
   214  
   213  
   215     /** 
       
   216      * Implements RunError of active object. 
       
   217      */
       
   218     TInt RunError( TInt aError );
       
   219     
       
   220     /** 
   214     /** 
   221      * Requests for map tile image , structure serch.
   215      * Requests for map tile image , structure serch.
   222      * @param aLandmark  Provides information about the address.
   216      * @param aLandmark  Provides information about the address.
   223      * @param aAddressType Provides information about address type .  
   217      * @param aAddressType Provides information about address type .  
   224      * @param aUId, uid of the event.
   218      * @param aUId, uid of the event.
   247     */
   241     */
   248     void SetFolderPathL();
   242     void SetFolderPathL();
   249     /**
   243     /**
   250     * Calender entry added.
   244     * Calender entry added.
   251     */
   245     */
   252     void CalenderEntryAddedL(TCalChangeEntry aCalChangeEntry);
   246     void CalenderEntryAddedL(TCalChangeEntry aCalChangeEntry);    
       
   247 
       
   248     /**
       
   249     * Update the mylocations database.
       
   250     */
       
   251     void UpdateDatabaseL( CPosLandmark* aLandmark, const TUint32 aUid, 
       
   252             const TUint32 aSourceType, const TEntryChangeType aChangeType );
       
   253 
   253 
   254 
   254 public:  //From MMapTileObserver
   255 public:  //From MMapTileObserver
   255     
   256     
   256     /**
   257     /**
   257      *  Informs the maptile fetching completion  
   258      *  Informs the maptile fetching completion