locationmanager/server/inc/clocationmanagerserver.h
changeset 20 6dfc5f825351
parent 1 acef663c1218
child 21 50bf9db68373
equal deleted inserted replaced
3:b73a2e62868f 20:6dfc5f825351
   199      */     
   199      */     
   200     void GetLocationByTimeL( const TTime& aTimeStamp, 
   200     void GetLocationByTimeL( const TTime& aTimeStamp, 
   201     						 TLocationData& aLocationData,
   201     						 TLocationData& aLocationData,
   202                              /*TLocality& aPosition, 
   202                              /*TLocality& aPosition, 
   203                              CTelephony::TNetworkInfoV1& aNetworkInfo,*/
   203                              CTelephony::TNetworkInfoV1& aNetworkInfo,*/
   204                              TLocTrailState& aState );
   204                              TLocTrailState& aState ) __SOFTFP;
   205 
   205 
   206     /**
   206     /**
   207      * Get current location.
   207      * Get current location.
   208      * @since S60 3.1
   208      * @since S60 3.1
   209      * @param aCurrLocReq 
   209      * @param aCurrLocReq 
   230      * Get current network cell id.
   230      * Get current network cell id.
   231      * @since S60 3.1
   231      * @since S60 3.1
   232      * @param aCurrLocReq 
   232      * @param aCurrLocReq 
   233      * @return None.
   233      * @return None.
   234      */     
   234      */     
   235     void GetCurrentNetworkInfo( CTelephony::TNetworkInfoV1& aNetworkInfo );
   235     void GetCurrentNetworkInfo( CTelephony::TNetworkInfoV1& aNetworkInfo ) __SOFTFP;
   236     
   236     
   237     /**
   237     /**
   238      * Create a location context object in DB and create relationships to objects
   238      * Create a location context object in DB and create relationships to objects
   239      * whose id is given in the array.
   239      * whose id is given in the array.
   240      * @param aLocationData
   240      * @param aLocationData
   241      * @param aObjectId
   241      * @param aObjectId
   242      */
   242      */
   243 	void CreateLocationObjectL( const TLocationData& aLocationData, 
   243 	void CreateLocationObjectL( const TLocationData& aLocationData, 
   244     						   	   const TUint& aObjectId );
   244     						   	   const TUint& aObjectId ) __SOFTFP;
   245 	
   245 	
   246     /**
   246     /**
   247      * Create a location context object in DB and create relationships to objects
   247      * Create a location context object in DB and create relationships to objects
   248      * whose id is given in the array.
   248      * whose id is given in the array.
   249      * Location information is taken from location trail
   249      * Location information is taken from location trail
   268 	
   268 	
   269 	void StopTrackLogL();
   269 	void StopTrackLogL();
   270 	
   270 	
   271 	void IsTrackLogRecording( TBool &aRec );
   271 	void IsTrackLogRecording( TBool &aRec );
   272 	
   272 	
   273 	TInt GetTrackLogStatus( TBool& aRecording, TPositionSatelliteInfo& aFixQuality);
   273 	TInt GetTrackLogStatus( TBool& aRecording, TPositionSatelliteInfo& aFixQuality) __SOFTFP;
   274 	
   274 	
   275 	TInt DeleteTrackLogL(const TDesC& aUri);
   275 	TInt DeleteTrackLogL(const TDesC& aUri);
   276 	
   276 	
   277 	TInt TrackLogName(TFileName& aFileName);
   277 	TInt TrackLogName(TFileName& aFileName);
   278 	
   278 	
   288      * Callback method to get notification about trail state change.
   288      * Callback method to get notification about trail state change.
   289      * @since S60 3.1
   289      * @since S60 3.1
   290      * @param None.
   290      * @param None.
   291      * @return None.
   291      * @return None.
   292      */
   292      */
   293     void LocationTrailStateChange();
   293     void LocationTrailStateChange() __SOFTFP;
   294     
   294     
   295     /**
   295     /**
   296      * Callback method to return current location.
   296      * Callback method to return current location.
   297      * @since S60 3.1
   297      * @since S60 3.1
   298      * @param aSatelliteInfo, includes position and satellite info.
   298      * @param aSatelliteInfo, includes position and satellite info.
   299      * @param aNetworkInfo, network and cell info.
   299      * @param aNetworkInfo, network and cell info.
   300      * @param aError.
   300      * @param aError.
   301      * @return None.
   301      * @return None.
   302      */
   302      */
   303     void CurrentLocation( const TPositionSatelliteInfo& aSatelliteInfo,
   303     void CurrentLocation( const TPositionSatelliteInfo& aSatelliteInfo,
   304     		const CTelephony::TNetworkInfoV1& aNetworkInfo, const TInt aError );
   304     		const CTelephony::TNetworkInfoV1& aNetworkInfo, const TInt aError ) __SOFTFP;
   305     
   305     
   306     /**
   306     /**
   307      * Callback method to notify observer of changes in GPS signal quality.
   307      * Callback method to notify observer of changes in GPS signal quality.
   308      * @param aSatelliteInfo, includes position and satellite info
   308      * @param aSatelliteInfo, includes position and satellite info
   309      * @return None.
   309      * @return None.
   310      */
   310      */
   311     void GPSSignalQualityChanged( const TPositionSatelliteInfo& aSatelliteInfo );
   311     void GPSSignalQualityChanged( const TPositionSatelliteInfo& aSatelliteInfo ) __SOFTFP;
   312     
   312     
   313 public: // from MMdeObjectObserver
   313 public: // from MMdeObjectObserver
   314 	/**
   314 	/**
   315 	 * Called to notify the observer that new objects has been
   315 	 * Called to notify the observer that new objects has been
   316 	 * added/modified/removed in the metadata engine database.
   316 	 * added/modified/removed in the metadata engine database.
   324 						const RArray<TItemId>& aObjectIdArray );
   324 						const RArray<TItemId>& aObjectIdArray );
   325 	
   325 	
   326 public: // from MGpxConversionObserver
   326 public: // from MGpxConversionObserver
   327 
   327 
   328 	void GpxFileCreated( const TDesC& aFileName, TItemId aTagId, TReal32 aLength,
   328 	void GpxFileCreated( const TDesC& aFileName, TItemId aTagId, TReal32 aLength,
   329 			TTime aStart, TTime aEnd );
   329 			TTime aStart, TTime aEnd ) __SOFTFP;
   330 
   330 
   331 private:    
   331 private:    
   332     /**
   332     /**
   333     * C++ constructor.
   333     * C++ constructor.
   334     */
   334     */
   385      * @return Error code
   385      * @return Error code
   386      */
   386      */
   387     static TInt PositioningStopTimeout( TAny* aAny );
   387     static TInt PositioningStopTimeout( TAny* aAny );
   388     
   388     
   389     /**
   389     /**
       
   390      * Callback function to check if files were added to remapping queue with delay
       
   391      * @param aAny, a pointer to CLocationRecord object
       
   392      * @return Error code
       
   393      */
       
   394     static TInt CheckForRemappingCallback( TAny* aAny );
       
   395     
       
   396     /**
   390      * Stops location trail and deletes the positioning stop timer.
   397      * Stops location trail and deletes the positioning stop timer.
   391      */
   398      */
   392     void StopRecording();
   399     void StopRecording();
   393     
   400     
   394     void CompleteNotifyRequest( TEventTypes aEventType, TInt aError );
   401     void CompleteNotifyRequest( TEventTypes aEventType, TInt aError );
   454     TBool iSessionReady;  
   461     TBool iSessionReady;  
   455     
   462     
   456     RArray<TItemId> iTargetObjectIds;
   463     RArray<TItemId> iTargetObjectIds;
   457     TItemId iTagId;
   464     TItemId iTagId;
   458     TInt iLocManStopDelay;
   465     TInt iLocManStopDelay;
       
   466     TInt iLocManStopRemapDelay;
   459     
   467     
   460     RLocationTrail::TTrailCaptureSetting iCaptureSetting;
   468     RLocationTrail::TTrailCaptureSetting iCaptureSetting;
   461     TBool iRemoveLocation;    
   469     TBool iRemoveLocation;    
   462     };
   470     };
   463 
   471