locationdataharvester/geocodeupdate/inc/geocodeupdate.h
changeset 20 cd10d5b85554
parent 17 0f22fb80ebba
child 30 96df3ab41000
equal deleted inserted replaced
17:0f22fb80ebba 20:cd10d5b85554
    17 
    17 
    18 #ifndef __GEOCODEUPDATE_H__
    18 #ifndef __GEOCODEUPDATE_H__
    19 #define __GEOCODEUPDATE_H__
    19 #define __GEOCODEUPDATE_H__
    20 
    20 
    21 #include <e32def.h> 
    21 #include <e32def.h> 
       
    22 #include <QtCore/qglobal.h>
    22 
    23 
    23 // CLASS DECLARATION
    24 // CLASS DECLARATION
    24 
    25 
    25 /**
    26 /**
    26  * CntGeocodeUpdate, a class to update latitude and longtude into contact database
    27  * GeocodeUpdate, a class to update latitude and longtude into contact and calender database
    27  * for a perticular contact.
       
    28  */
    28  */
    29 class GeocodeUpdate 
    29 class GeocodeUpdate 
    30 {
    30 {
    31 public:    
    31 public:    
    32     /**
    32     /**
    33      * Request to create contactmanager ,
    33      Create contact database   
    34      * contactmanager will create contact db.    
       
    35      */
    34      */
    36     IMPORT_C static void CreateContactdb();
    35     IMPORT_C static void createContactdb();
    37     
    36     
    38     /**
    37     /**
    39      * Request to update latitude and longitude.    *
    38      * Request to update latitude and longitude into contact db. 
    40      * @param aCntId contact unique id
    39      * @param contactId contact unique id.
    41      * @param aLatitude Latitude to be saved
    40      * @param addressType contact address type.
    42      * @param aLongitude longitude to be saved
    41      * @param latitude Latitude to be updated.
    43      * @return Status code (0 is failure,1 success)
    42      * @param longitude longitude to be updated.
    44      */
    43      */
    45 
    44 
    46     IMPORT_C static void UpDate(const TInt32 aCntId,
    45     IMPORT_C static void updateGeocodeToContactDB(const quint32 contactId,
    47             const TInt32 aCntAddressType, const TReal aLatitude,
    46             const int addressType, const double latitude,
    48             const TReal aLongitude);
    47             const double longitude);
       
    48     /**
       
    49      * Request to update latitude and longitude into calender db.    
       
    50      * @param calEntryId calender entry unique id
       
    51      * @param latitude Latitude to be updated.
       
    52      * @param longitude longitude to be updated.
       
    53      */
       
    54 
       
    55     IMPORT_C static void updateGeocodeToCalenderDB(const ulong calEntryId,
       
    56             const double latitude, const double longitude);
    49 };
    57 };
    50 
    58 
    51 #endif // __GEOCODEUPDATE_H__ 
    59 #endif // __GEOCODEUPDATE_H__