locationdataharvester/maptileservice/inc/maptileservice.h
changeset 41 b3dd5ec3089d
parent 31 8db05346071b
equal deleted inserted replaced
38:793f76d9ab0c 41:b3dd5ec3089d
    22 
    22 
    23 #include <QString>
    23 #include <QString>
    24 #include <QtGlobal>
    24 #include <QtGlobal>
    25 #include <QObject>
    25 #include <QObject>
    26 #include <qmobilityglobal.h>
    26 #include <qmobilityglobal.h>
       
    27 #include <locationservicedefines.h>
    27 
    28 
    28 QTM_BEGIN_NAMESPACE
    29 QTM_BEGIN_NAMESPACE
    29 class QValueSpacePublisher;
    30 class QValueSpacePublisher;
    30 class QValueSpaceSubscriber;
    31 class QValueSpaceSubscriber;
    31 QTM_END_NAMESPACE
    32 QTM_END_NAMESPACE
    36 #define MAPTILESERVICE_EXPORT Q_DECL_EXPORT
    37 #define MAPTILESERVICE_EXPORT Q_DECL_EXPORT
    37 #else
    38 #else
    38 #define MAPTILESERVICE_EXPORT Q_DECL_IMPORT
    39 #define MAPTILESERVICE_EXPORT Q_DECL_IMPORT
    39 #endif
    40 #endif
    40 
    41 
    41 class TLookupItem;
       
    42 
    42 
    43 // CLASS DECLARATION
    43 // CLASS DECLARATION
    44 
    44 
    45 /**
    45 /**
    46 *  Maptile service class,  provides interface to get map tile image associated with 
    46 *  Maptile service class,  provides interface to get map tile image associated with 
   111             
   111             
   112    /**
   112    /**
   113     * Gets a maptile image associated with a id(contact id/calendar id). 
   113     * Gets a maptile image associated with a id(contact id/calendar id). 
   114     * Returns a maptile image path if it is available otherwise returns NULL.
   114     * Returns a maptile image path if it is available otherwise returns NULL.
   115     * 
   115     * 
   116     * @param contactId  app id     
   116     * @param id,  entry id     
   117     * @param sourceType Source address type( Preferred, Home , Work address )
   117     * @param sourceType , Source address type( Preferred, Home , Work address )
   118     * @param imagePath  Maptile image path associated with the app id
   118     * @param imagePath  Maptile image path associated with the app id
   119     * @param orientation Application current orientation.   
   119     * @param orientation Application current orientation.   
   120     *      
   120     *      
   121     * @return Returns the maptile fetching status.
   121     * @return Returns the maptile fetching status.
   122     */
   122     */
   123     int getMapTileImage( int Id, AddressType sourceType, 
   123     int getMapTileImage( int id, AddressType sourceType, 
   124              QString& imagePath, Qt::Orientations orientation = Qt::Vertical  );  
   124              QString& imagePath, Qt::Orientations orientation = Qt::Vertical  );  
       
   125     
       
   126     /**
       
   127     * keep existing location as per user confirmation . 
       
   128     * @param id ,entry id     
       
   129     * @param sourceType Source address type( Preferred, Home , Work address )
       
   130     * @param value ,true if user confirm as yes otherwise false.
       
   131     */
       
   132     void keepExistingLocation(int id ,AddressType sourceType, bool value);
   125     
   133     
   126 public slots: 
   134 public slots: 
   127     /**
   135     /**
   128      * Receives maptile status information and emits the maptilFetchingStatusUpdate
   136      * Receives maptile status information and emits the maptilFetchingStatusUpdate
   129      * signal.
   137      * signal.
   163     * @param sourceType, address type( plain ,Preferred, Home , Work address )
   171     * @param sourceType, address type( plain ,Preferred, Home , Work address )
   164     * @param aLookupItem ,entry information
   172     * @param aLookupItem ,entry information
   165     * @param aNoOfAddress ,number of address read from databse 
   173     * @param aNoOfAddress ,number of address read from databse 
   166     */
   174     */
   167     int readEntryFromMaptileDataBase( int id, AddressType sourceType,
   175     int readEntryFromMaptileDataBase( int id, AddressType sourceType,
   168                 TLookupItem& aLookupItem, int& aNoOfAddress  );
   176                 MaptileLookupItem& aLookupItem, int& aNoOfAddress  );
   169 
   177 
   170 private:
   178 private:
   171     
   179     
   172     //The contact/calendar id for which maptile requested
   180     //The contact/calendar id for which maptile requested
   173     int mLastViewedEntryId;
   181     int mLastViewedEntryId;