engine/src/ShowEngine.cpp
branchsymbian1
changeset 246 140a404c6b53
parent 212 713bd6cc0b7a
child 287 e6a88732eb8f
equal deleted inserted replaced
245:3f57982a6f10 246:140a404c6b53
   187 	relPath.Copy(feedInfo->Title());
   187 	relPath.Copy(feedInfo->Title());
   188 	relPath.Append('\\');
   188 	relPath.Append('\\');
   189 
   189 
   190 	TFileName fileName;
   190 	TFileName fileName;
   191 	PodcastUtils::FileNameFromUrl(info->Url(), fileName);
   191 	PodcastUtils::FileNameFromUrl(info->Url(), fileName);
   192 	relPath.Append(fileName);
   192 	
       
   193 	TFileName extension;
       
   194 	extension.Copy(fileName.Mid(fileName.LocateReverse('.')));
       
   195 	DP1("extension=%S", &extension);
       
   196 		
       
   197 	TFileName newFilename;
       
   198 	newFilename.Format(_L("%u%S"), info->Uid(), &extension);
       
   199 	DP1("newFilename=%S", &newFilename);
       
   200 			
       
   201 	relPath.Append(newFilename);
   193 	PodcastUtils::EnsureProperPathName(relPath);
   202 	PodcastUtils::EnsureProperPathName(relPath);
   194 
   203 
   195 	// complete file path is base dir + rel path
   204 	// complete file path is base dir + rel path
   196 	filePath.Append(relPath);
   205 	filePath.Append(relPath);
   197 	info->SetFileNameL(filePath);
   206 	info->SetFileNameL(filePath);