locationmanager/locationtrail/src/ctracklog.cpp
changeset 21 50bf9db68373
parent 20 6dfc5f825351
child 40 910a23996aa0
child 45 a93990e5815e
equal deleted inserted replaced
20:6dfc5f825351 21:50bf9db68373
   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 ) __SOFTFP
   140 							   const TPositionSatelliteInfo& aSatellites )
   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;
   228 		err = writer.Create( iFs, iTmpFileName, EFileWrite );
   228 		err = writer.Create( iFs, iTmpFileName, EFileWrite );
   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( static_cast<TUint64>(iTagId) );
   234 		writer << I64HIGH( iTagId );
   234 		writer << I64HIGH( static_cast<TUint64>(iTagId) );
   235 		}
   235 		}
   236 	else 
   236 	else 
   237 		{
   237 		{
   238 		CleanupClosePushL( file );
   238 		CleanupClosePushL( file );
   239 		TInt64 endpos( 0 );
   239 		TInt64 endpos( 0 );