internetradio2.0/cachemgmtsrc/ircachemgmt.cpp
changeset 11 f683e24efca3
parent 0 09774dfdd46b
equal deleted inserted replaced
8:3b03c28289e6 11:f683e24efca3
   448 			CIRBrowseCatagoryItems* ptr;
   448 			CIRBrowseCatagoryItems* ptr;
   449 			if (iPtrCategory)
   449 			if (iPtrCategory)
   450 				{
   450 				{
   451 				iPtrCategory->ResetAndDestroy();
   451 				iPtrCategory->ResetAndDestroy();
   452 				}
   452 				}
       
   453 			else
       
   454 			{
       
   455 				break;
       
   456 			}
   453 			for(TInt iter=0;iter<aCountItems;iter++)
   457 			for(TInt iter=0;iter<aCountItems;iter++)
   454 				{
   458 				{
   455 				ptr=CIRBrowseCatagoryItems::NewL();
   459 				ptr=CIRBrowseCatagoryItems::NewL();
   456 				CleanupStack::PushL(ptr);
   460 				CleanupStack::PushL(ptr);
   457 				instream>>*ptr;
   461 				instream>>*ptr;
   458 			    if (iPtrCategory)
   462 				iPtrCategory->AppendL(ptr);
   459 				    {				
       
   460 				    iPtrCategory->AppendL(ptr);
       
   461 				    }
       
   462 				CleanupStack::Pop(ptr);
   463 				CleanupStack::Pop(ptr);
   463 				}
   464 				}
   464 	        CleanupStack::PopAndDestroy( &instream );
   465 	        CleanupStack::PopAndDestroy( &instream );
   465 	        //update the last accessed time
   466 	        //update the last accessed time
   466 	        UpdateLastAccessedTimeL(aCacheView);
   467 	        UpdateLastAccessedTimeL(aCacheView);