videocollection/mpxmyvideoscollection/src/vcxmyvideoscategories.cpp
changeset 35 3738fe97f027
parent 34 bbb98528c666
child 36 8aed59de29f9
equal deleted inserted replaced
34:bbb98528c666 35:3738fe97f027
   281         if ( aVideosIncrements[i] != 0 )
   281         if ( aVideosIncrements[i] != 0 )
   282             {
   282             {
   283             category = aCategoryArray.AtL( i );
   283             category = aCategoryArray.AtL( i );
   284 
   284 
   285             //codescanner warning: aVideosIncrements count is same as aCategoryArray count, so the range is checked
   285             //codescanner warning: aVideosIncrements count is same as aCategoryArray count, so the range is checked
   286             UpdateVideosCountL( *category, aVideosIncrements[i], KVcxMediaMyVideosCategoryItemCount,
   286             UpdateVideosCountL( *category, aVideosIncrements[i],
   287                     EVcxMyVideosListNoInfo );
   287                     KVcxMediaMyVideosCategoryItemCount, EVcxMyVideosListNoInfo );
   288 
   288 
   289             modified = ETrue;
   289             modified = ETrue;
   290             }
   290             }
   291 
   291 
   292         //codescanner warning: aNewVideosIncrements count is same as aCategoryArray count, so the range is checked
   292         //codescanner warning: aNewVideosIncrements count is same as aCategoryArray count, so the range is checked
   293         if ( aNewVideosIncrements[i] != 0 )
   293         if ( aNewVideosIncrements[i] != 0 )
   294             {
   294             {
   295             category = aCategoryArray.AtL( i );
   295             category = aCategoryArray.AtL( i );
   296 
   296 
   297             UpdateVideosCountL( *category, aNewVideosIncrements[i], KVcxMediaMyVideosCategoryNewItemCount,
   297             UpdateVideosCountL( *category, aNewVideosIncrements[i],
   298                     EVcxMyVideosListNoInfo );
   298                     KVcxMediaMyVideosCategoryNewItemCount, EVcxMyVideosListNoInfo );
   299 
   299 
   300             modified = ETrue;
   300             modified = ETrue;
   301             }
   301             }
   302 
   302 
   303         }
   303         }
   689     TInt categoryIndex = CategoryIndex( aOrigin );
   689     TInt categoryIndex = CategoryIndex( aOrigin );
   690      
   690      
   691     prevNewVideoName.Set( iListArray->AtL( categoryIndex )->ValueText(
   691     prevNewVideoName.Set( iListArray->AtL( categoryIndex )->ValueText(
   692             KVcxMediaMyVideosCategoryNewItemName ) );
   692             KVcxMediaMyVideosCategoryNewItemName ) );
   693     CMPXMedia* newVideo;
   693     CMPXMedia* newVideo;
   694     currentNewVideoName.Set( CalculateNewVideoNameL( *videoList, aOrigin, aIgnoredIds, newVideo ) );
   694     currentNewVideoName.Set( CalculateNewVideoNameL(
       
   695             *videoList, aOrigin, aIgnoredIds, newVideo ) );
   695     if ( currentNewVideoName.CompareF( prevNewVideoName ) != 0 )
   696     if ( currentNewVideoName.CompareF( prevNewVideoName ) != 0 )
   696         {
   697         {
   697         iListArray->AtL( categoryIndex )->SetTextValueL(
   698         iListArray->AtL( categoryIndex )->SetTextValueL(
   698                 KVcxMediaMyVideosCategoryNewItemName, currentNewVideoName );
   699                 KVcxMediaMyVideosCategoryNewItemName, currentNewVideoName );
   699         MPX_DEBUG3("CVcxMyVideosCategories:: Category[%d] New Video Name changed to %S",
   700         MPX_DEBUG3("CVcxMyVideosCategories:: Category[%d] New Video Name changed to %S",