engine/src/FeedInfo.cpp
changeset 59 dc142c8740eb
parent 58 87cb33beeae2
child 60 bbf5c5204844
equal deleted inserted replaced
58:87cb33beeae2 59:dc142c8740eb
    48 	copy->SetDescriptionL(Description());
    48 	copy->SetDescriptionL(Description());
    49 	copy->SetImageUrlL(ImageUrl());
    49 	copy->SetImageUrlL(ImageUrl());
    50 	copy->SetLinkL(Link());
    50 	copy->SetLinkL(Link());
    51 	copy->SetBuildDate(BuildDate());
    51 	copy->SetBuildDate(BuildDate());
    52 	copy->SetLastUpdated(LastUpdated());
    52 	copy->SetLastUpdated(LastUpdated());
       
    53 	copy->iFeedIcon->Duplicate(iFeedIcon->Handle());
    53 	copy->SetImageFileNameL(ImageFileName());
    54 	copy->SetImageFileNameL(ImageFileName());
    54 	copy->iFeedIcon->Duplicate(iFeedIcon->Handle());
       
    55 	if(CustomTitle())
    55 	if(CustomTitle())
    56 		{
    56 		{
    57 		copy->SetCustomTitle();
    57 		copy->SetCustomTitle();
    58 		}
    58 		}
    59 	
    59 	
   203 	iImageFileName = aFileName.AllocL();
   203 	iImageFileName = aFileName.AllocL();
   204 	TParsePtrC parser(*iImageFileName);
   204 	TParsePtrC parser(*iImageFileName);
   205 	cacheFileName = parser.DriveAndPath();
   205 	cacheFileName = parser.DriveAndPath();
   206 	cacheFileName.Append(parser.Name());
   206 	cacheFileName.Append(parser.Name());
   207 	cacheFileName.Append(KMbmExtension());
   207 	cacheFileName.Append(KMbmExtension());
   208 	if( BaflUtils::FileExists(CEikonEnv::Static()->FsSession(), cacheFileName) )
   208 	if( iFeedIcon->SizeInPixels() == TSize(0,0) && BaflUtils::FileExists(CEikonEnv::Static()->FsSession(), cacheFileName) )
   209 		{
   209 		{
   210 		iFeedIcon = CEikonEnv::Static()->CreateBitmapL(cacheFileName, 0);
   210 		iFeedIcon = CEikonEnv::Static()->CreateBitmapL(cacheFileName, 0);
   211 		}	
   211 		}	
   212 	}
   212 	}
   213 
   213 
   249 		TFileName cacheFileName;
   249 		TFileName cacheFileName;
   250 	
   250 	
   251 		TParsePtrC parser(*iImageFileName);
   251 		TParsePtrC parser(*iImageFileName);
   252 		cacheFileName = parser.DriveAndPath();
   252 		cacheFileName = parser.DriveAndPath();
   253 		cacheFileName.Append(parser.Name());
   253 		cacheFileName.Append(parser.Name());
   254 		cacheFileName.Append(KMbmExtension());
   254 		cacheFileName.Append(KMbmExtension());		
   255 		if( !BaflUtils::FileExists(CEikonEnv::Static()->FsSession(), cacheFileName) )
   255 		iFeedIcon->Save(cacheFileName);					
   256 			{
   256 		}
   257 			iFeedIcon->Save(cacheFileName);
   257 	}
   258 			}
       
   259 			
       
   260 		}
       
   261 	}