locationmanager/locationtrail/inc/clocationrecord.h
branchRCL_3
changeset 8 50de4d668bb6
parent 7 3cebc1a84278
child 12 9f21bab39f42
equal deleted inserted replaced
7:3cebc1a84278 8:50de4d668bb6
    52     {
    52     {
    53 public:    
    53 public:    
    54     /**
    54     /**
    55      * This method is used to notify about location trail state changes.
    55      * This method is used to notify about location trail state changes.
    56      */
    56      */
    57     virtual void LocationTrailStateChange() __SOFTFP = 0;
    57     virtual void LocationTrailStateChange() = 0;
    58     
    58     
    59     virtual void CurrentLocation( const TPositionSatelliteInfo& aSatelliteInfo, 
    59     virtual void CurrentLocation( const TPositionSatelliteInfo& aSatelliteInfo, 
    60     							  const CTelephony::TNetworkInfoV1& aNetworkInfo,
    60     							  const CTelephony::TNetworkInfoV1& aNetworkInfo,
    61                                   const TInt aError ) __SOFTFP = 0;
    61                                   const TInt aError ) = 0;
    62     
    62     
    63     virtual void GPSSignalQualityChanged( const TPositionSatelliteInfo& aSatelliteInfo ) __SOFTFP = 0;
    63     virtual void GPSSignalQualityChanged( const TPositionSatelliteInfo& aSatelliteInfo )  = 0;
    64     
    64     
    65     /**
    65     /**
    66      * Callback method to notify observer that during waiting for positioning stop timeout remap is done.
    66      * Callback method to notify observer that during waiting for positioning stop timeout remap is done.
    67      */
    67      */
    68     virtual void RemapedCompleted() = 0;
    68     virtual void RemapedCompleted() = 0;
    91 public:
    91 public:
    92 	/**
    92 	/**
    93 	 * This method is used to notify about new locations added to location trail
    93 	 * This method is used to notify about new locations added to location trail
    94 	 */
    94 	 */
    95 	virtual void LocationAdded( const TLocationTrailItem& aTrailItem, 
    95 	virtual void LocationAdded( const TLocationTrailItem& aTrailItem, 
    96 								const TPositionSatelliteInfo& aSatellites ) __SOFTFP = 0;
    96 								const TPositionSatelliteInfo& aSatellites ) = 0;
    97 	};    
    97 	};    
    98 
    98 
    99 /**
    99 /**
   100  *  Location trail collects location information periodically and stores them
   100  *  Location trail collects location information periodically and stores them
   101  *  to an array. Stored locations may be searched by time stamp to get 
   101  *  to an array. Stored locations may be searched by time stamp to get 
   157      */
   157      */
   158     IMPORT_C void GetLocationByTimeL( const TTime aTime,
   158     IMPORT_C void GetLocationByTimeL( const TTime aTime,
   159     								  TLocationData& aLocationData,
   159     								  TLocationData& aLocationData,
   160                                       /*TLocality& aPosition,
   160                                       /*TLocality& aPosition,
   161                                       CTelephony::TNetworkInfoV1& aNetworkInfo,*/
   161                                       CTelephony::TNetworkInfoV1& aNetworkInfo,*/
   162                                       TLocTrailState& aState ) __SOFTFP;
   162                                       TLocTrailState& aState );
   163 
   163 
   164     /**
   164     /**
   165      * Request location info. The result is returned by calllback method.
   165      * Request location info. The result is returned by calllback method.
   166      * @since S60 3.1
   166      * @since S60 3.1
   167      * @param None.
   167      * @param None.
   181      * Get network cell id.
   181      * Get network cell id.
   182      * @since S60 3.1
   182      * @since S60 3.1
   183      * @param aCellId, Network cell is written into this param.
   183      * @param aCellId, Network cell is written into this param.
   184      * @return None.
   184      * @return None.
   185      */
   185      */
   186     IMPORT_C void GetNetworkInfo( CTelephony::TNetworkInfoV1& aNetworkInfo ) __SOFTFP;
   186     IMPORT_C void GetNetworkInfo( CTelephony::TNetworkInfoV1& aNetworkInfo );
   187     
   187     
   188     /**
   188     /**
   189      * Set observer for notifying state changes.
   189      * Set observer for notifying state changes.
   190      * @since S60 3.1
   190      * @since S60 3.1
   191      * @param aObserver, An interface to notify about state changes.
   191      * @param aObserver, An interface to notify about state changes.
   199     IMPORT_C void SetAddObserver( MLocationAddObserver* aObserver );    
   199     IMPORT_C void SetAddObserver( MLocationAddObserver* aObserver );    
   200     
   200     
   201     static TInt UpdateNetworkInfo( TAny* aAny );
   201     static TInt UpdateNetworkInfo( TAny* aAny );
   202     
   202     
   203     IMPORT_C void CreateLocationObjectL( const TLocationData& aLocationData,
   203     IMPORT_C void CreateLocationObjectL( const TLocationData& aLocationData,
   204     		const TUint& aObjectId ) __SOFTFP;
   204     		const TUint& aObjectId );
   205     
   205     
   206     IMPORT_C void LocationSnapshotL( const TUint& aObjectId );
   206     IMPORT_C void LocationSnapshotL( const TUint& aObjectId );
   207     
   207     
   208     TItemId DoCreateLocationL( const TLocationData& aLocationData ) __SOFTFP;
   208     TItemId DoCreateLocationL( const TLocationData& aLocationData );
   209     
   209     
   210     TItemId CreateRelationL( const TUint& aObjectId, const TUint& aLocationId );
   210     TItemId CreateRelationL( const TUint& aObjectId, const TUint& aLocationId );
   211     
   211     
   212     IMPORT_C void SetMdeSession( CMdESession* aSession );
   212     IMPORT_C void SetMdeSession( CMdESession* aSession );
   213     
   213     
   222      * 
   222      * 
   223      * @since S60 3.1
   223      * @since S60 3.1
   224      * @param 
   224      * @param 
   225      * @return 
   225      * @return 
   226      */
   226      */
   227     void NetworkInfo( const CTelephony::TNetworkInfoV1 &aNetworkInfo, TInt aError ) __SOFTFP;
   227     void NetworkInfo( const CTelephony::TNetworkInfoV1 &aNetworkInfo, TInt aError );
   228     
   228     
   229 public: // from MPositionInfoObserver    
   229 public: // from MPositionInfoObserver    
   230     /**
   230     /**
   231      * 
   231      * 
   232      * @since S60 3.1
   232      * @since S60 3.1
   233      * @param 
   233      * @param 
   234      * @return  
   234      * @return  
   235      */
   235      */
   236     void Position( const TPositionInfo& aPositionInfo, const TInt aError ) __SOFTFP;
   236     void Position( const TPositionInfo& aPositionInfo, const TInt aError );
   237     
   237     
   238     
   238     
   239 public: // From MMdEQueryObserver
   239 public: // From MMdEQueryObserver
   240 
   240 
   241 	void HandleQueryNewResults(CMdEQuery& aQuery, TInt aFirstNewItemIndex, 
   241 	void HandleQueryNewResults(CMdEQuery& aQuery, TInt aFirstNewItemIndex,