~synaptic-developers/synaptic/trunk

« back to all changes in this revision

Viewing changes to common/rpackagelister.h

  • Committer: Michael Vogt
  • Date: 2010-07-29 13:13:09 UTC
  • mfrom: (1529.2.106 ubuntu)
  • Revision ID: michael.vogt@ubuntu.com-20100729131309-0gdmwd09phcr1gc0
merged from the synaptic ubuntu branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
#include <apt-pkg/depcache.h>
37
37
#include <apt-pkg/acquire.h>
38
38
 
 
39
#ifdef WITH_EPT
 
40
#include <ept/axi/axi.h>
 
41
#endif
 
42
 
39
43
#include "rpackagecache.h"
40
44
#include "rpackage.h"
41
45
#include "rpackagestatus.h"
102
106
   pkgRecords *_records;
103
107
   OpProgress *_progMeter;
104
108
 
 
109
#ifdef WITH_EPT
 
110
   Xapian::Database *_xapianDatabase;
 
111
#endif
 
112
 
 
113
 
105
114
   // Other members.
106
115
   vector<RPackage *> _packages;
107
116
   vector<int> _packagesIndex;
123
132
 
124
133
   RPackageViewFilter *_filterView; // the package view that does the filtering
125
134
   RPackageViewSearch *_searchView; // the package view that does the (simple) search
126
 
   
 
135
 
 
136
   // helper for the limitBySearch() code
 
137
   bool xapianSearch(string searchString);
 
138
 
127
139
   public:
128
140
 
129
141
   unsigned int _viewMode;
130
142
 
131
143
   typedef enum {
 
144
      LIST_SORT_DEFAULT,
132
145
      LIST_SORT_NAME_ASC,
133
146
      LIST_SORT_NAME_DES,
134
147
      LIST_SORT_SIZE_ASC,
190
203
   list<pkgState> redoStack;
191
204
 
192
205
   public:
 
206
   // limit what the current view displays
 
207
   bool limitBySearch(string searchString);
 
208
 
193
209
   // clean files older than "Synaptic::delHistory"
194
210
   void cleanCommitLog();
195
211
 
322
338
   bool writeSelections(ostream &out, bool fullState);
323
339
 
324
340
   RPackageCache* getCache() { return _cache; };
 
341
#ifdef WITH_EPT
 
342
   Xapian::Database* xapiandatabase() { return _xapianDatabase; }
 
343
   bool xapianIndexNeedsUpdate();
 
344
   bool openXapianIndex();
 
345
#endif
325
346
 
326
347
   RPackageLister();
327
348
   ~RPackageLister();