locationdataharvester/geocodeupdate/inc/geocodeupdate.h
changeset 31 8db05346071b
parent 30 96df3ab41000
equal deleted inserted replaced
30:96df3ab41000 31:8db05346071b
    26 #define GEOCODEUPDATE_EXPORT Q_DECL_EXPORT
    26 #define GEOCODEUPDATE_EXPORT Q_DECL_EXPORT
    27 #else
    27 #else
    28 #define GEOCODEUPDATE_EXPORT Q_DECL_IMPORT
    28 #define GEOCODEUPDATE_EXPORT Q_DECL_IMPORT
    29 #endif
    29 #endif
    30 
    30 
       
    31 class AgendaUtil;
    31 // CLASS DECLARATION
    32 // CLASS DECLARATION
    32 
    33 
    33 /**
    34 /**
    34  * GeocodeUpdate, a class to update latitude and longtude into contact and calender database
    35  * GeocodeUpdate, a class to update latitude and longtude into contact and calender database
    35  */
    36  */
    51      * Request to update latitude and longitude into contact db. 
    52      * Request to update latitude and longitude into contact db. 
    52      * @param contactId contact unique id.
    53      * @param contactId contact unique id.
    53      * @param addressType contact address type.
    54      * @param addressType contact address type.
    54      * @param latitude Latitude to be updated.
    55      * @param latitude Latitude to be updated.
    55      * @param longitude longitude to be updated.
    56      * @param longitude longitude to be updated.
       
    57 	 * 
       
    58 	 * @return Returns true if successfule otherwise false.
    56      */
    59      */
    57 
    60 
    58       bool updateGeocodeToContactDB(const quint32 contactId,
    61     bool updateGeocodeToContactDB(const quint32 contactId, const int addressType,
    59             const int addressType, const double latitude,
    62         const double latitude, const double longitude);
    60             const double longitude);
       
    61     /**
    63     /**
    62      * Request to update latitude and longitude into calender db.    
    64      * Request to update latitude and longitude into calender db.    
    63      * @param calEntryId calender entry unique id
    65      * @param calEntryId calender entry unique id
    64      * @param latitude Latitude to be updated.
    66      * @param latitude Latitude to be updated.
    65      * @param longitude longitude to be updated.
    67      * @param longitude longitude to be updated.
       
    68 	 * 
       
    69 	 * @return Returns true if successfule otherwise false.
    66      */
    70      */
    67 
    71 
    68      bool updateGeocodeToCalenderDB(const ulong calEntryId,
    72     bool updateGeocodeToCalenderDB(const ulong& calEntryId, const double& latitude,
    69             const double latitude, const double longitude);
    73         const double& longitude);
       
    74 
       
    75     /**
       
    76      * Request to check if geo-cordinate available or not.  
       
    77      * @param calEntryId calender entry unique id
       
    78      * @return true, if available otherwise false.
       
    79      */
       
    80     bool isGeocodeNotAvailable(const ulong& calEntryId);
       
    81 
    70 private slots:
    82 private slots:
    71     void agendautilInstanceCreated(int);
    83     void agendautilInstanceCreated(int);
       
    84 	
    72 signals:
    85 signals:
    73     void eventCompleted();
    86     void eventCompleted();
       
    87 	
       
    88 private:
    74 
    89 
       
    90     AgendaUtil *mAgendaUtil;
       
    91     bool mUtilInstanceCreated;
    75 };
    92 };
    76 
    93 
    77 #endif // __GEOCODEUPDATE_H__ 
    94 #endif // __GEOCODEUPDATE_H__