profilesservices/MediaFileList/Src/mediafilehandler.cpp
branchRCL_3
changeset 51 8bda91a87a00
parent 50 673fb3e04649
equal deleted inserted replaced
50:673fb3e04649 51:8bda91a87a00
  1534         }
  1534         }
  1535     
  1535     
  1536     return iSearchList->Count();
  1536     return iSearchList->Count();
  1537     }
  1537     }
  1538 
  1538 
       
  1539 // -----------------------------------------------------------------------------
       
  1540 // CMediaFileHandler::Remove
       
  1541 // Remove an item from list of search reuslt
       
  1542 // -----------------------------------------------------------------------------
       
  1543 //
       
  1544 void CMediaFileHandler::Remove( TInt aIndex )
       
  1545     {
       
  1546     if( aIndex >= ResultCount() )
       
  1547         {
       
  1548         // Invalid index
       
  1549         return;
       
  1550         }
       
  1551     iSearchList->Remove( aIndex );    
       
  1552     }
  1539     
  1553     
  1540 // -----------------------------------------------------------------------------
  1554 // -----------------------------------------------------------------------------
  1541 // CMediaFileHandler::UnknownArtistCount
  1555 // CMediaFileHandler::UnknownArtistCount
  1542 // 
  1556 // 
  1543 // Returns 1 if artist has at least one music file without album attribute,
  1557 // Returns 1 if artist has at least one music file without album attribute,
  2937 TInt CSearchList::SearchId()
  2951 TInt CSearchList::SearchId()
  2938     {
  2952     {
  2939     return iSearchId;
  2953     return iSearchId;
  2940     }
  2954     }
  2941 
  2955 
       
  2956 // -----------------------------------------------------------------------------
       
  2957 // CSearchList::Remove
       
  2958 // Remove an item from the list of search results
       
  2959 // -----------------------------------------------------------------------------
       
  2960 //
       
  2961 void CSearchList::Remove( TInt aIndex )
       
  2962     {
       
  2963     iList.Remove( aIndex );
       
  2964     }
  2942 
  2965 
  2943 // -----------------------------------------------------------------------------
  2966 // -----------------------------------------------------------------------------
  2944 // CSearchList::TakeResultL
  2967 // CSearchList::TakeResultL
  2945 // 
  2968 // 
  2946 // -----------------------------------------------------------------------------
  2969 // -----------------------------------------------------------------------------