equal
deleted
inserted
replaced
210 // CLocationRecord::GetLocationByTimeL |
210 // CLocationRecord::GetLocationByTimeL |
211 // -------------------------------------------------------------------------- |
211 // -------------------------------------------------------------------------- |
212 // |
212 // |
213 EXPORT_C void CLocationRecord::GetLocationByTimeL( const TTime aTime, |
213 EXPORT_C void CLocationRecord::GetLocationByTimeL( const TTime aTime, |
214 TLocationData& aLocationData, |
214 TLocationData& aLocationData, |
215 TLocTrailState& aState ) __SOFTFP |
215 TLocTrailState& aState ) |
216 { |
216 { |
217 LOG( "CLocationRecord::GetLocationByTimeL(), begin" ); |
217 LOG( "CLocationRecord::GetLocationByTimeL(), begin" ); |
218 TInt posFound( EFalse ); |
218 TInt posFound( EFalse ); |
219 |
219 |
220 #ifdef _DEBUG |
220 #ifdef _DEBUG |
315 |
315 |
316 // -------------------------------------------------------------------------- |
316 // -------------------------------------------------------------------------- |
317 // CLocationRecord::GetNetworkInfo |
317 // CLocationRecord::GetNetworkInfo |
318 // -------------------------------------------------------------------------- |
318 // -------------------------------------------------------------------------- |
319 // |
319 // |
320 EXPORT_C void CLocationRecord::GetNetworkInfo( CTelephony::TNetworkInfoV1& aNetworkInfo ) __SOFTFP |
320 EXPORT_C void CLocationRecord::GetNetworkInfo( CTelephony::TNetworkInfoV1& aNetworkInfo ) |
321 { |
321 { |
322 LOG("CLocationRecord::GetNetworkInfo"); |
322 LOG("CLocationRecord::GetNetworkInfo"); |
323 |
323 |
324 aNetworkInfo = iNetwork; |
324 aNetworkInfo = iNetwork; |
325 } |
325 } |
346 // From MNetworkInfoObserver. |
346 // From MNetworkInfoObserver. |
347 // CLocationRecord::Position |
347 // CLocationRecord::Position |
348 // -------------------------------------------------------------------------- |
348 // -------------------------------------------------------------------------- |
349 // |
349 // |
350 void CLocationRecord::Position( const TPositionInfo& aPositionInfo, |
350 void CLocationRecord::Position( const TPositionInfo& aPositionInfo, |
351 const TInt aError ) __SOFTFP |
351 const TInt aError ) |
352 { |
352 { |
353 const TPositionSatelliteInfo& positionSatelliteInfo = |
353 const TPositionSatelliteInfo& positionSatelliteInfo = |
354 static_cast<const TPositionSatelliteInfo&>(aPositionInfo); |
354 static_cast<const TPositionSatelliteInfo&>(aPositionInfo); |
355 |
355 |
356 if ( iRequestCurrentLoc ) |
356 if ( iRequestCurrentLoc ) |
462 // From MPositionerObserver. |
462 // From MPositionerObserver. |
463 // CLocationRecord::NetworkInfo |
463 // CLocationRecord::NetworkInfo |
464 // -------------------------------------------------------------------------- |
464 // -------------------------------------------------------------------------- |
465 // |
465 // |
466 void CLocationRecord::NetworkInfo( const CTelephony::TNetworkInfoV1 &aNetworkInfo, |
466 void CLocationRecord::NetworkInfo( const CTelephony::TNetworkInfoV1 &aNetworkInfo, |
467 const TInt aError ) __SOFTFP |
467 const TInt aError ) |
468 { |
468 { |
469 LOG("CLocationRecord::NetworkInfo"); |
469 LOG("CLocationRecord::NetworkInfo"); |
470 if ( aError == KErrNone ) |
470 if ( aError == KErrNone ) |
471 { |
471 { |
472 LOG("CLocationRecord::NetworkInfo - KErrNone"); |
472 LOG("CLocationRecord::NetworkInfo - KErrNone"); |
590 return KErrNone; |
590 return KErrNone; |
591 } |
591 } |
592 |
592 |
593 |
593 |
594 EXPORT_C void CLocationRecord::CreateLocationObjectL( const TLocationData& aLocationData, |
594 EXPORT_C void CLocationRecord::CreateLocationObjectL( const TLocationData& aLocationData, |
595 const TUint& aObjectId ) __SOFTFP |
595 const TUint& aObjectId ) |
596 { |
596 { |
597 TItemId locationId = DoCreateLocationL( aLocationData ); |
597 TItemId locationId = DoCreateLocationL( aLocationData ); |
598 CreateRelationL( aObjectId, locationId ); |
598 CreateRelationL( aObjectId, locationId ); |
599 } |
599 } |
600 |
600 |
797 iLocationQuery->FindL(); |
797 iLocationQuery->FindL(); |
798 } |
798 } |
799 } |
799 } |
800 |
800 |
801 |
801 |
802 TItemId CLocationRecord::DoCreateLocationL( const TLocationData& aLocationData ) __SOFTFP |
802 TItemId CLocationRecord::DoCreateLocationL( const TLocationData& aLocationData ) |
803 { |
803 { |
804 LOG("CLocationRecord::DoCreateLocationL - start"); |
804 LOG("CLocationRecord::DoCreateLocationL - start"); |
805 TItemId locationObjectId; |
805 TItemId locationObjectId; |
806 |
806 |
807 CMdENamespaceDef& namespaceDef = iMdeSession->GetDefaultNamespaceDefL(); |
807 CMdENamespaceDef& namespaceDef = iMdeSession->GetDefaultNamespaceDefL(); |