ipsservices/ipssossettings/src/ipssetuifinder.cpp
changeset 1 12c456ceeff2
parent 0 8466d47a6819
equal deleted inserted replaced
0:8466d47a6819 1:12c456ceeff2
   237         return EFalse;
   237         return EFalse;
   238         }
   238         }
   239 
   239 
   240     // Check if the item is found, and that it's enough
   240     // Check if the item is found, and that it's enough
   241     if ( iSearchFlags & EFinderItemFound &&
   241     if ( iSearchFlags & EFinderItemFound &&
   242          !iSearchFlags & EFinderSearchAll &&
   242          !( iSearchFlags & EFinderSearchAll ) &&
   243          !iSearchFlags & EFinderResourceSearch )
   243          !( iSearchFlags & EFinderResourceSearch ) )
   244         {
   244         {
   245         return EFalse;
   245         return EFalse;
   246         }
   246         }
   247 
   247 
   248     // Set the current item
   248     // Set the current item
   249     iCurrentItem = aCurrentItem;
   249     iCurrentItem = aCurrentItem;
   250 
   250 
   251     // Check if the last item is in progress
   251     // Check if the last item is in progress
   252     if ( iCurrentItem >= aMaxItems )
   252     if ( iCurrentItem >= aMaxItems )
   253         {
   253         {
   254         if ( !iSearchFlags & EFinderItemFound )
   254         if ( !( iSearchFlags & EFinderItemFound ) )
   255             {
   255             {
   256             iSearchFlags |= EFinderItemFindError;
   256             iSearchFlags |= EFinderItemFindError;
   257             }
   257             }
   258 
   258 
   259         iSearchFlags |= EFinderExit;
   259         iSearchFlags |= EFinderExit;
   409         {
   409         {
   410         return EFalse;
   410         return EFalse;
   411         }
   411         }
   412 
   412 
   413     // Check if the subfolders need to be searched
   413     // Check if the subfolders need to be searched
   414     if ( !iSearchFlags & EFinderSearchSubFolders )
   414     if ( !( iSearchFlags & EFinderSearchSubFolders ) )
   415         {
   415         {
   416         return EFalse;
   416         return EFalse;
   417         }
   417         }
   418 
   418 
   419     // Check if the item is subarray item
   419     // Check if the item is subarray item