photosgallery/viewframework/medialists/src/glxcachemanager.cpp
branchRCL_3
changeset 22 2dac0fdba72b
parent 18 bcb43dc84c44
child 25 191387a8b767
equal deleted inserted replaced
18:bcb43dc84c44 22:2dac0fdba72b
   328     else
   328     else
   329         {
   329         {
   330         RPointerArray< MGlxMediaUser > users;
   330         RPointerArray< MGlxMediaUser > users;
   331         CleanupClosePushL( users );
   331         CleanupClosePushL( users );
   332         
   332         
   333         // Record the error on all requested attributes
       
   334         TInt idCount = iRequestedItemIds.Count();
   333         TInt idCount = iRequestedItemIds.Count();
   335         
   334         if(idCount)
   336         for( TInt idIndex = 0; idIndex < idCount; idIndex++ )
   335         	{       	
   337             {
   336 			CGlxMedia* item = MediaForceCreateL(aIdSpaceId, iRequestedItemIds[0]);
   338             CGlxMedia* item = MediaForceCreateL(aIdSpaceId, iRequestedItemIds[idIndex]);
   337 			GlxErrorManager::SetAttributeErrorL(item, iRequestedAttrs, aError);
   339             GlxErrorManager::SetAttributeErrorL(item, iRequestedAttrs, aError);
   338 			
   340             
   339 			// Keep track of media lists to notify later
   341             // Keep track of media lists to notify later
   340 			TInt userCount = item->UserCount();
   342             TInt userCount = item->UserCount();
   341 			for ( TInt userIndex = 0; userIndex < userCount; userIndex++ )
   343             for ( TInt userIndex = 0; userIndex < userCount; userIndex++ )
   342 				{
   344                 {
   343 				users.InsertInAddressOrder( &item->User( userIndex ) );
   345                 users.InsertInAddressOrder( &item->User( userIndex ) );
   344 				}
   346                 }
   345         	}		
   347             }
       
   348 
       
   349         // Notify all affected users of error
   346         // Notify all affected users of error
   350         TInt userCount = users.Count();
   347         TInt userCount = users.Count();
   351         for ( TInt i = 0; i < userCount; i++ )
   348         for ( TInt i = 0; i < userCount; i++ )
   352             {
   349             {
   353             users[ i ]->HandleError( aError );
   350             users[ i ]->HandleError( aError );