|
a/src/qtgui/advshist.h |
|
b/src/qtgui/advshist.h |
|
... |
|
... |
31 |
* calling SearchData::asXML().
|
31 |
* calling SearchData::asXML().
|
32 |
* When reading, we use a QXmlSimpleReader and QXmlDefaultHandler to
|
32 |
* When reading, we use a QXmlSimpleReader and QXmlDefaultHandler to
|
33 |
* turn the XML back into a SearchData object, which is then passed 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
|
34 |
* the advanced search object fromSearch() method to rebuild the
|
35 |
* window state.
|
35 |
* window state.
|
|
|
36 |
*
|
|
|
37 |
* XML generation is performed by ../rcldb/searchdataxml.cpp.
|
|
|
38 |
* See xmltosd.h for a schema description
|
36 |
*/
|
39 |
*/
|
37 |
class AdvSearchHist {
|
40 |
class AdvSearchHist {
|
38 |
public:
|
41 |
public:
|
39 |
AdvSearchHist();
|
42 |
AdvSearchHist();
|
40 |
~AdvSearchHist();
|
43 |
~AdvSearchHist();
|
|
|
44 |
|
|
|
45 |
// Add entry
|
|
|
46 |
bool push(RefCntr<Rcl::SearchData>);
|
|
|
47 |
|
|
|
48 |
// Get latest. does not change state
|
|
|
49 |
RefCntr<Rcl::SearchData> getnewest();
|
|
|
50 |
|
|
|
51 |
// Cursor
|
41 |
RefCntr<Rcl::SearchData> getolder();
|
52 |
RefCntr<Rcl::SearchData> getolder();
|
42 |
RefCntr<Rcl::SearchData> getnewer();
|
53 |
RefCntr<Rcl::SearchData> getnewer();
|
43 |
bool push(RefCntr<Rcl::SearchData>);
|
54 |
|
44 |
void clear();
|
55 |
void clear();
|
45 |
|
56 |
|
46 |
private:
|
57 |
private:
|
47 |
bool read();
|
58 |
bool read();
|
48 |
|
59 |
|