equal
deleted
inserted
replaced
63 iMaxBufferSize( KTrackLogBufSize ), |
63 iMaxBufferSize( KTrackLogBufSize ), |
64 iRecording( EFalse ) |
64 iRecording( EFalse ) |
65 { |
65 { |
66 } |
66 } |
67 |
67 |
68 CTrackLog::~CTrackLog() |
68 EXPORT_C CTrackLog::~CTrackLog() |
69 { |
69 { |
70 delete iGpxConverter; |
70 delete iGpxConverter; |
71 iFs.Close(); |
71 iFs.Close(); |
72 } |
72 } |
73 |
73 |
135 iFs.Delete( iTmpFileName ); |
135 iFs.Delete( iTmpFileName ); |
136 LOG("CTrackLog::CancelRecording end"); |
136 LOG("CTrackLog::CancelRecording end"); |
137 } |
137 } |
138 |
138 |
139 void CTrackLog::LocationAdded( const TLocationTrailItem& aTrailItem, |
139 void CTrackLog::LocationAdded( const TLocationTrailItem& aTrailItem, |
140 const TPositionSatelliteInfo& aSatellites ) |
140 const TPositionSatelliteInfo& aSatellites ) __SOFTFP |
141 { |
141 { |
142 LOG("CTrackLog::LocationAdded start"); |
142 LOG("CTrackLog::LocationAdded start"); |
143 |
143 |
144 const TInt KMaxLat = 90; |
144 const TInt KMaxLat = 90; |
145 const TInt KMinLat = -90; |
145 const TInt KMinLat = -90; |
229 if( err != KErrNone ) |
229 if( err != KErrNone ) |
230 { |
230 { |
231 User::Leave( err ); |
231 User::Leave( err ); |
232 } |
232 } |
233 writer << I64LOW( iTagId ); |
233 writer << I64LOW( iTagId ); |
234 writer << I64HIGH( iTagId ); |
234 writer << I64HIGH( iTagId ); // Causes compiler warning due to misinterpretation by compiler parser |
235 } |
235 } |
236 else |
236 else |
237 { |
237 { |
238 CleanupClosePushL( file ); |
238 CleanupClosePushL( file ); |
239 TInt64 endpos( 0 ); |
239 TInt64 endpos( 0 ); |