locationmanager/locationtrail/inc/clocationrecord.h
branchRCL_3
changeset 14 646a02f170b9
parent 8 6752808b2036
child 15 3cebc1a84278
equal deleted inserted replaced
8:6752808b2036 14:646a02f170b9
    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() = 0;
    57     virtual void LocationTrailStateChange() __SOFTFP = 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 ) = 0;
    61                                   const TInt aError ) __SOFTFP = 0;
    62     
    62     
    63     virtual void GPSSignalQualityChanged( const TPositionSatelliteInfo& aSatelliteInfo ) = 0;
    63     virtual void GPSSignalQualityChanged( const TPositionSatelliteInfo& aSatelliteInfo ) __SOFTFP = 0;
    64     };
    64     };
    65 
    65 
    66 /**
    66 /**
    67 * Location trail item class.
    67 * Location trail item class.
    68 */
    68 */
    79 public:
    79 public:
    80 	/**
    80 	/**
    81 	 * This method is used to notify about new locations added to location trail
    81 	 * This method is used to notify about new locations added to location trail
    82 	 */
    82 	 */
    83 	virtual void LocationAdded( const TLocationTrailItem& aTrailItem, 
    83 	virtual void LocationAdded( const TLocationTrailItem& aTrailItem, 
    84 								const TPositionSatelliteInfo& aSatellites ) = 0;
    84 								const TPositionSatelliteInfo& aSatellites ) __SOFTFP = 0;
    85 	};    
    85 	};    
    86 
    86 
    87 /**
    87 /**
    88  *  Location trail collects location information periodically and stores them
    88  *  Location trail collects location information periodically and stores them
    89  *  to an array. Stored locations may be searched by time stamp to get 
    89  *  to an array. Stored locations may be searched by time stamp to get 
   145      */
   145      */
   146     IMPORT_C void GetLocationByTimeL( const TTime aTime,
   146     IMPORT_C void GetLocationByTimeL( const TTime aTime,
   147     								  TLocationData& aLocationData,
   147     								  TLocationData& aLocationData,
   148                                       /*TLocality& aPosition,
   148                                       /*TLocality& aPosition,
   149                                       CTelephony::TNetworkInfoV1& aNetworkInfo,*/
   149                                       CTelephony::TNetworkInfoV1& aNetworkInfo,*/
   150                                       TLocTrailState& aState );
   150                                       TLocTrailState& aState ) __SOFTFP;
   151 
   151 
   152     /**
   152     /**
   153      * Request location info. The result is returned by calllback method.
   153      * Request location info. The result is returned by calllback method.
   154      * @since S60 3.1
   154      * @since S60 3.1
   155      * @param None.
   155      * @param None.
   169      * Get network cell id.
   169      * Get network cell id.
   170      * @since S60 3.1
   170      * @since S60 3.1
   171      * @param aCellId, Network cell is written into this param.
   171      * @param aCellId, Network cell is written into this param.
   172      * @return None.
   172      * @return None.
   173      */
   173      */
   174     IMPORT_C void GetNetworkInfo( CTelephony::TNetworkInfoV1& aNetworkInfo );
   174     IMPORT_C void GetNetworkInfo( CTelephony::TNetworkInfoV1& aNetworkInfo ) __SOFTFP;
   175     
   175     
   176     /**
   176     /**
   177      * Set observer for notifying state changes.
   177      * Set observer for notifying state changes.
   178      * @since S60 3.1
   178      * @since S60 3.1
   179      * @param aObserver, An interface to notify about state changes.
   179      * @param aObserver, An interface to notify about state changes.
   187     IMPORT_C void SetAddObserver( MLocationAddObserver* aObserver );    
   187     IMPORT_C void SetAddObserver( MLocationAddObserver* aObserver );    
   188     
   188     
   189     static TInt UpdateNetworkInfo( TAny* aAny );
   189     static TInt UpdateNetworkInfo( TAny* aAny );
   190     
   190     
   191     IMPORT_C void CreateLocationObjectL( const TLocationData& aLocationData,
   191     IMPORT_C void CreateLocationObjectL( const TLocationData& aLocationData,
   192     		const TUint& aObjectId );
   192     		const TUint& aObjectId ) __SOFTFP;
   193     
   193     
   194     IMPORT_C void LocationSnapshotL( const TUint& aObjectId );
   194     IMPORT_C void LocationSnapshotL( const TUint& aObjectId );
   195     
   195     
   196     TItemId DoCreateLocationL( const TLocationData& aLocationData );
   196     TItemId DoCreateLocationL( const TLocationData& aLocationData ) __SOFTFP;
   197     
   197     
   198     TItemId CreateRelationL( const TUint& aObjectId, const TUint& aLocationId );
   198     TItemId CreateRelationL( const TUint& aObjectId, const TUint& aLocationId );
   199     
   199     
   200     IMPORT_C void SetMdeSession( CMdESession* aSession );
   200     IMPORT_C void SetMdeSession( CMdESession* aSession );
   201     
   201     
   210      * 
   210      * 
   211      * @since S60 3.1
   211      * @since S60 3.1
   212      * @param 
   212      * @param 
   213      * @return 
   213      * @return 
   214      */
   214      */
   215     void NetworkInfo( const CTelephony::TNetworkInfoV1 &aNetworkInfo, TInt aError );
   215     void NetworkInfo( const CTelephony::TNetworkInfoV1 &aNetworkInfo, TInt aError ) __SOFTFP;
   216     
   216     
   217 public: // from MPositionInfoObserver    
   217 public: // from MPositionInfoObserver    
   218     /**
   218     /**
   219      * 
   219      * 
   220      * @since S60 3.1
   220      * @since S60 3.1
   221      * @param 
   221      * @param 
   222      * @return  
   222      * @return  
   223      */
   223      */
   224     void Position( const TPositionInfo& aPositionInfo, const TInt aError );
   224     void Position( const TPositionInfo& aPositionInfo, const TInt aError ) __SOFTFP;
   225     
   225     
   226     
   226     
   227 public: // From MMdEQueryObserver
   227 public: // From MMdEQueryObserver
   228 
   228 
   229 	void HandleQueryNewResults(CMdEQuery& aQuery, TInt aFirstNewItemIndex, 
   229 	void HandleQueryNewResults(CMdEQuery& aQuery, TInt aFirstNewItemIndex,