equal
deleted
inserted
replaced
343 iCaptureSetting = RLocationTrail::EOff; |
343 iCaptureSetting = RLocationTrail::EOff; |
344 iWaitForPositioningStopTimeout = EFalse; |
344 iWaitForPositioningStopTimeout = EFalse; |
345 |
345 |
346 RLocationTrail::TTrailState state; |
346 RLocationTrail::TTrailState state; |
347 GetLocationTrailState( state ); |
347 GetLocationTrailState( state ); |
348 |
348 |
349 |
|
350 if( state != RLocationTrail::ETrailStopped && state != RLocationTrail::ETrailStopping ) |
349 if( state != RLocationTrail::ETrailStopped && state != RLocationTrail::ETrailStopping ) |
351 { |
350 { |
352 TRAPD( error, iTimer = CPeriodic::NewL( CActive::EPriorityUserInput ) ); |
351 TRAPD( error, iTimer = CPeriodic::NewL( CActive::EPriorityUserInput ) ); |
353 |
352 |
354 if ( error != KErrNone ) |
353 if ( error != KErrNone ) |
479 // CLocationManagerServer::GetLocationByTimeL |
478 // CLocationManagerServer::GetLocationByTimeL |
480 // -------------------------------------------------------------------------- |
479 // -------------------------------------------------------------------------- |
481 // |
480 // |
482 void CLocationManagerServer::GetLocationByTimeL( const TTime& aTimeStamp, |
481 void CLocationManagerServer::GetLocationByTimeL( const TTime& aTimeStamp, |
483 TLocationData& aLocationData, |
482 TLocationData& aLocationData, |
484 TLocTrailState& aState ) __SOFTFP |
483 TLocTrailState& aState ) |
485 { |
484 { |
486 iLocationRecord->GetLocationByTimeL( aTimeStamp, |
485 iLocationRecord->GetLocationByTimeL( aTimeStamp, |
487 aLocationData, |
486 aLocationData, |
488 aState ); |
487 aState ); |
489 } |
488 } |
533 |
532 |
534 // -------------------------------------------------------------------------- |
533 // -------------------------------------------------------------------------- |
535 // CLocationManagerServer::GetCurrentCellId |
534 // CLocationManagerServer::GetCurrentCellId |
536 // -------------------------------------------------------------------------- |
535 // -------------------------------------------------------------------------- |
537 // |
536 // |
538 void CLocationManagerServer::GetCurrentNetworkInfo( CTelephony::TNetworkInfoV1& aNetworkInfo ) __SOFTFP |
537 void CLocationManagerServer::GetCurrentNetworkInfo( CTelephony::TNetworkInfoV1& aNetworkInfo ) |
539 { |
538 { |
540 iLocationRecord->GetNetworkInfo( aNetworkInfo ); |
539 iLocationRecord->GetNetworkInfo( aNetworkInfo ); |
541 } |
540 } |
542 |
541 |
543 // -------------------------------------------------------------------------- |
542 // -------------------------------------------------------------------------- |
544 // CLocationManagerServer::LocationTrailStateChange |
543 // CLocationManagerServer::LocationTrailStateChange |
545 // -------------------------------------------------------------------------- |
544 // -------------------------------------------------------------------------- |
546 // |
545 // |
547 void CLocationManagerServer::LocationTrailStateChange() __SOFTFP |
546 void CLocationManagerServer::LocationTrailStateChange() |
548 { |
547 { |
549 LOG( "CLocationManagerServer::LocationTrailStateChange(), begin" ); |
548 LOG( "CLocationManagerServer::LocationTrailStateChange(), begin" ); |
550 |
549 |
551 for ( TInt i = iNotifReqs.Count(); --i >= 0; ) |
550 for ( TInt i = iNotifReqs.Count(); --i >= 0; ) |
552 { |
551 { |
565 // CLocationManagerServer::CurrentLocation |
564 // CLocationManagerServer::CurrentLocation |
566 // -------------------------------------------------------------------------- |
565 // -------------------------------------------------------------------------- |
567 // |
566 // |
568 void CLocationManagerServer::CurrentLocation( const TPositionSatelliteInfo& aSatelliteInfo, |
567 void CLocationManagerServer::CurrentLocation( const TPositionSatelliteInfo& aSatelliteInfo, |
569 const CTelephony::TNetworkInfoV1& aNetworkInfo, |
568 const CTelephony::TNetworkInfoV1& aNetworkInfo, |
570 const TInt aError ) __SOFTFP |
569 const TInt aError ) |
571 { |
570 { |
572 LOG( "CLocationManagerServer::CurrentLocation(), begin" ); |
571 LOG( "CLocationManagerServer::CurrentLocation(), begin" ); |
573 const TInt KParamLocationData = 0; |
572 const TInt KParamLocationData = 0; |
574 |
573 |
575 TLocationData locationData; |
574 TLocationData locationData; |
612 iLocationReqs.Reset(); |
611 iLocationReqs.Reset(); |
613 |
612 |
614 LOG( "CLocationManagerServer::CurrentLocation(), end" ); |
613 LOG( "CLocationManagerServer::CurrentLocation(), end" ); |
615 } |
614 } |
616 |
615 |
617 void CLocationManagerServer::GPSSignalQualityChanged( const TPositionSatelliteInfo& aSatelliteInfo ) __SOFTFP |
616 void CLocationManagerServer::GPSSignalQualityChanged( const TPositionSatelliteInfo& aSatelliteInfo ) |
618 { |
617 { |
619 LOG( "CLocationManagerServer::GPSSignalQualityChanged" ); |
618 LOG( "CLocationManagerServer::GPSSignalQualityChanged" ); |
620 const TInt KFixParam = 0; |
619 const TInt KFixParam = 0; |
621 const TInt KPositionInfoParam = 1; |
620 const TInt KPositionInfoParam = 1; |
622 const TInt KEventTypeParam = 2; |
621 const TInt KEventTypeParam = 2; |
687 |
686 |
688 LOG( "CLocationManagerServer::CancelTrackLogNotificationRequest(), end" ); |
687 LOG( "CLocationManagerServer::CancelTrackLogNotificationRequest(), end" ); |
689 } |
688 } |
690 |
689 |
691 void CLocationManagerServer::CreateLocationObjectL( const TLocationData& aLocationData, |
690 void CLocationManagerServer::CreateLocationObjectL( const TLocationData& aLocationData, |
692 const TUint& aObjectId ) __SOFTFP |
691 const TUint& aObjectId ) |
693 { |
692 { |
694 if ( !IsSessionReady() ) |
693 if ( !IsSessionReady() ) |
695 { |
694 { |
696 User::Leave( KErrNotReady ); |
695 User::Leave( KErrNotReady ); |
697 } |
696 } |
1047 { |
1046 { |
1048 aRec = iTrackLog->IsRecording(); |
1047 aRec = iTrackLog->IsRecording(); |
1049 } |
1048 } |
1050 |
1049 |
1051 void CLocationManagerServer::GpxFileCreated( const TDesC& aFileName, TItemId aTagId, |
1050 void CLocationManagerServer::GpxFileCreated( const TDesC& aFileName, TItemId aTagId, |
1052 TReal32 aLength, TTime aStart, TTime aEnd ) __SOFTFP |
1051 TReal32 aLength, TTime aStart, TTime aEnd ) |
1053 { |
1052 { |
1054 TRAP_IGNORE( CreateTrackLogL( aTagId, aFileName, aLength, aStart, aEnd ) ); |
1053 TRAP_IGNORE( CreateTrackLogL( aTagId, aFileName, aLength, aStart, aEnd ) ); |
1055 } |
1054 } |
1056 |
1055 |
1057 TItemId CLocationManagerServer::CreateTrackLogTagL() |
1056 TItemId CLocationManagerServer::CreateTrackLogTagL() |
1135 |
1134 |
1136 CleanupStack::PopAndDestroy( relationObject ); |
1135 CleanupStack::PopAndDestroy( relationObject ); |
1137 CleanupStack::PopAndDestroy( trackLog ); |
1136 CleanupStack::PopAndDestroy( trackLog ); |
1138 } |
1137 } |
1139 |
1138 |
1140 TInt CLocationManagerServer::GetTrackLogStatus( TBool& aRecording, TPositionSatelliteInfo& aFixQuality) __SOFTFP |
1139 TInt CLocationManagerServer::GetTrackLogStatus( TBool& aRecording, TPositionSatelliteInfo& aFixQuality) |
1141 { |
1140 { |
1142 if ( !iTrackLog ) |
1141 if ( !iTrackLog ) |
1143 { |
1142 { |
1144 return KErrNotFound; |
1143 return KErrNotFound; |
1145 } |
1144 } |