~ubuntu-core-dev/synaptic/ubuntu

« back to all changes in this revision

Viewing changes to common/rpackageview.cc

Tags: 0.62.7
releasing version 0.62.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
235
235
   //_view[searchString].push_back(NULL);
236
236
}
237
237
 
238
 
int RPackageViewSearch::setSearch(string aSearchName, int type, 
239
 
                                  string searchString)
 
238
int RPackageViewSearch::setSearch(string aSearchName, 
 
239
                                  int type, 
 
240
                                  string searchString, 
 
241
                                  OpProgress &searchProgress)
240
242
{
241
243
   found = 0;
242
244
   searchType = type;
253
255
      searchStrings.push_back(s);
254
256
   }
255
257
 
256
 
   // reapply search when a new search strng is giben
 
258
   // setup search progress (0 done, _all.size() in total, 1 subtask)
 
259
   searchProgress.OverallProgress(0, _all.size(), 1, _("Searching"));
 
260
   // reapply search when a new search strng is given
257
261
   for(unsigned int i=0;i<_all.size();i++) 
258
 
      if(_all[i]) 
259
 
         addPackage(_all[i]);
260
 
 
 
262
     if(_all[i]) {
 
263
       searchProgress.Progress(i);
 
264
       addPackage(_all[i]);
 
265
     }
 
266
   searchProgress.Done();
261
267
   return found;
262
268
}
263
269