|
a/src/qtgui/advshist.h |
|
b/src/qtgui/advshist.h |
|
... |
|
... |
21 |
|
21 |
|
22 |
#include "recoll.h"
|
22 |
#include "recoll.h"
|
23 |
#include "refcntr.h"
|
23 |
#include "refcntr.h"
|
24 |
#include "searchdata.h"
|
24 |
#include "searchdata.h"
|
25 |
|
25 |
|
|
|
26 |
/** Advanced search history.
|
|
|
27 |
*
|
|
|
28 |
* We store previous searches using the "dynconf" mechanism, as string
|
|
|
29 |
* entries under the "advSearchHist" key. The strings are generated by
|
|
|
30 |
* translating the SearchData structure to XML, which is done by
|
|
|
31 |
* calling SearchData::asXML().
|
|
|
32 |
* When reading, we use a QXmlSimpleReader and QXmlDefaultHandler to
|
|
|
33 |
* turn the XML back into a SearchData object, which is then passed to
|
|
|
34 |
* the advanced search object fromSearch() method to rebuild the
|
|
|
35 |
* window state.
|
|
|
36 |
*/
|
26 |
class AdvSearchHist {
|
37 |
class AdvSearchHist {
|
27 |
public:
|
38 |
public:
|
28 |
AdvSearchHist();
|
39 |
AdvSearchHist();
|
29 |
~AdvSearchHist();
|
40 |
~AdvSearchHist();
|
30 |
RefCntr<Rcl::SearchData> getolder();
|
41 |
RefCntr<Rcl::SearchData> getolder();
|
|
... |
|
... |
37 |
|
48 |
|
38 |
int m_current;
|
49 |
int m_current;
|
39 |
std::vector<RefCntr<Rcl::SearchData> > m_entries;
|
50 |
std::vector<RefCntr<Rcl::SearchData> > m_entries;
|
40 |
};
|
51 |
};
|
41 |
|
52 |
|
42 |
|
|
|
43 |
#endif // _ADVSHIST_H_INCLUDED_
|
53 |
#endif // _ADVSHIST_H_INCLUDED_
|