equal
deleted
inserted
replaced
66 } |
66 } |
67 |
67 |
68 EXPORT_C CTrackLog::~CTrackLog() |
68 EXPORT_C CTrackLog::~CTrackLog() |
69 { |
69 { |
70 delete iGpxConverter; |
70 delete iGpxConverter; |
|
71 iGpxConverter = NULL; |
71 iFs.Close(); |
72 iFs.Close(); |
72 } |
73 } |
73 |
74 |
74 EXPORT_C void CTrackLog::StartRecordingL(TItemId aId) |
75 EXPORT_C void CTrackLog::StartRecordingL(TItemId aId) |
75 { |
76 { |
199 aTrailItem.iLocationData.iPosition.HorizontalAccuracy() ); |
200 aTrailItem.iLocationData.iPosition.HorizontalAccuracy() ); |
200 TInt err = newCoords.Distance(*lastCoords, distance); |
201 TInt err = newCoords.Distance(*lastCoords, distance); |
201 if ( err == KErrNone ) |
202 if ( err == KErrNone ) |
202 { |
203 { |
203 delete lastCoords; |
204 delete lastCoords; |
|
205 lastCoords = NULL; |
204 lastCoords = new TCoordinate( aTrailItem.iLocationData.iPosition ); |
206 lastCoords = new TCoordinate( aTrailItem.iLocationData.iPosition ); |
205 iBoundaries->distance += distance; |
207 iBoundaries->distance += distance; |
206 } |
208 } |
207 } |
209 } |
208 iBoundaries->maxLatitude = Max( iBoundaries->maxLatitude, newItem.iLatitude ); |
210 iBoundaries->maxLatitude = Max( iBoundaries->maxLatitude, newItem.iLatitude ); |
304 filename->Append((*files)[i].iName); |
306 filename->Append((*files)[i].iName); |
305 TRAP_IGNORE( iGpxConverter->AddToQueueL( *filename, NULL )); |
307 TRAP_IGNORE( iGpxConverter->AddToQueueL( *filename, NULL )); |
306 } |
308 } |
307 } |
309 } |
308 delete filename; |
310 delete filename; |
|
311 filename = NULL; |
309 delete files; |
312 delete files; |
|
313 files = NULL; |
310 } |
314 } |
311 |
315 |
312 void CTrackLog::ReadCenRepValueL(TInt aKey, TInt& aValue) |
316 void CTrackLog::ReadCenRepValueL(TInt aKey, TInt& aValue) |
313 { |
317 { |
314 LOG( "LocationManagerServer::ReadCenRepValueL(), begin" ); |
318 LOG( "LocationManagerServer::ReadCenRepValueL(), begin" ); |