locationmanager/locationtrail/src/ctracklog.cpp
branchRCL_3
changeset 8 50de4d668bb6
parent 6 646a02f170b9
child 19 b73252188534
equal deleted inserted replaced
7:3cebc1a84278 8:50de4d668bb6
   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 ); // Causes compiler warning due to misinterpretation by compiler parser
   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 );