Switch to unified view

a/src/qtgui/advshist.h b/src/qtgui/advshist.h
...
...
18
#define _ADVSHIST_H_INCLUDED_
18
#define _ADVSHIST_H_INCLUDED_
19
19
20
#include <vector>
20
#include <vector>
21
21
22
#include "recoll.h"
22
#include "recoll.h"
23
#include "refcntr.h"
23
#include MEMORY_INCLUDE
24
#include "searchdata.h"
24
#include "searchdata.h"
25
25
26
/** Advanced search history. 
26
/** Advanced search history. 
27
 *
27
 *
28
 * We store previous searches using the "dynconf" mechanism, as string
28
 * We store previous searches using the "dynconf" mechanism, as string
...
...
41
public:
41
public:
42
    AdvSearchHist();
42
    AdvSearchHist();
43
    ~AdvSearchHist();
43
    ~AdvSearchHist();
44
44
45
    // Add entry
45
    // Add entry
46
    bool push(RefCntr<Rcl::SearchData>);
46
    bool push(STD_SHARED_PTR<Rcl::SearchData>);
47
47
48
    // Get latest. does not change state
48
    // Get latest. does not change state
49
    RefCntr<Rcl::SearchData> getnewest();
49
    STD_SHARED_PTR<Rcl::SearchData> getnewest();
50
50
51
    // Cursor
51
    // Cursor
52
    RefCntr<Rcl::SearchData> getolder();
52
    STD_SHARED_PTR<Rcl::SearchData> getolder();
53
    RefCntr<Rcl::SearchData> getnewer();
53
    STD_SHARED_PTR<Rcl::SearchData> getnewer();
54
54
55
    void clear();
55
    void clear();
56
56
57
private:
57
private:
58
    bool read();
58
    bool read();
59
59
60
    int m_current;
60
    int m_current;
61
    std::vector<RefCntr<Rcl::SearchData> > m_entries;
61
    std::vector<STD_SHARED_PTR<Rcl::SearchData> > m_entries;
62
};
62
};
63
63
64
#endif // _ADVSHIST_H_INCLUDED_
64
#endif // _ADVSHIST_H_INCLUDED_