diff -r 8173571d354e -r 1fc85118c3ae locationdataharvester/geocodeupdate/inc/geocodeupdate.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/locationdataharvester/geocodeupdate/inc/geocodeupdate.h Tue Aug 31 15:09:25 2010 +0300 @@ -0,0 +1,94 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#ifndef __GEOCODEUPDATE_H__ +#define __GEOCODEUPDATE_H__ + +#include +#include +#include + +#ifdef GEOCODEUPDATEDLL +#define GEOCODEUPDATE_EXPORT Q_DECL_EXPORT +#else +#define GEOCODEUPDATE_EXPORT Q_DECL_IMPORT +#endif + +class AgendaUtil; +// CLASS DECLARATION + +/** + * GeocodeUpdate, a class to update latitude and longtude into contact and calender database + */ +class GEOCODEUPDATE_EXPORT GeocodeUpdate: public QObject +{ + Q_OBJECT +public: + + GeocodeUpdate(); + + ~GeocodeUpdate(); + + /** + Create contact database + */ + void createContactdb(); + + /** + * Request to update latitude and longitude into contact db. + * @param contactId contact unique id. + * @param addressType contact address type. + * @param latitude Latitude to be updated. + * @param longitude longitude to be updated. + * + * @return Returns true if successfule otherwise false. + */ + + bool updateGeocodeToContactDB(const quint32 contactId, const int addressType, + const double latitude, const double longitude); + /** + * Request to update latitude and longitude into calender db. + * @param calEntryId calender entry unique id + * @param latitude Latitude to be updated. + * @param longitude longitude to be updated. + * + * @return Returns true if successfule otherwise false. + */ + + bool updateGeocodeToCalenderDB(const ulong& calEntryId, const double& latitude, + const double& longitude); + + /** + * Request to check if geo-cordinate available or not. + * @param calEntryId calender entry unique id + * @return true, if available otherwise false. + */ + bool isGeocodeNotAvailable(const ulong& calEntryId); + +private slots: + void agendautilInstanceCreated(int); + +signals: + void eventCompleted(); + +private: + + AgendaUtil *mAgendaUtil; + bool mUtilInstanceCreated; +}; + +#endif // __GEOCODEUPDATE_H__