|
a/src/query/docseqhist.h |
|
b/src/query/docseqhist.h |
|
... |
|
... |
14 |
* Free Software Foundation, Inc.,
|
14 |
* Free Software Foundation, Inc.,
|
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
16 |
*/
|
16 |
*/
|
17 |
#ifndef _DOCSEQHIST_H_INCLUDED_
|
17 |
#ifndef _DOCSEQHIST_H_INCLUDED_
|
18 |
#define _DOCSEQHIST_H_INCLUDED_
|
18 |
#define _DOCSEQHIST_H_INCLUDED_
|
19 |
/* @(#$Id: docseqhist.h,v 1.2 2007-01-19 15:22:50 dockes Exp $ (C) 2004 J.F.Dockes */
|
19 |
/* @(#$Id: docseqhist.h,v 1.3 2008-09-29 08:59:20 dockes Exp $ (C) 2004 J.F.Dockes */
|
20 |
|
20 |
|
21 |
#include "docseq.h"
|
21 |
#include "docseq.h"
|
22 |
#include "history.h"
|
22 |
#include "history.h"
|
23 |
|
23 |
|
24 |
namespace Rcl {
|
24 |
namespace Rcl {
|
|
... |
|
... |
32 |
public:
|
32 |
public:
|
33 |
DocSequenceHistory(Rcl::Db *d, RclHistory *h, const string &t)
|
33 |
DocSequenceHistory(Rcl::Db *d, RclHistory *h, const string &t)
|
34 |
: DocSequence(t), m_db(d), m_hist(h), m_prevnum(-1), m_prevtime(-1) {}
|
34 |
: DocSequence(t), m_db(d), m_hist(h), m_prevnum(-1), m_prevtime(-1) {}
|
35 |
virtual ~DocSequenceHistory() {}
|
35 |
virtual ~DocSequenceHistory() {}
|
36 |
|
36 |
|
37 |
virtual bool getDoc(int num, Rcl::Doc &doc, int *percent, string *sh = 0);
|
37 |
virtual bool getDoc(int num, Rcl::Doc &doc, string *sh = 0);
|
38 |
virtual int getResCnt();
|
38 |
virtual int getResCnt();
|
39 |
virtual string getDescription() {return m_description;}
|
39 |
virtual string getDescription() {return m_description;}
|
40 |
void setDescription(const string& desc) {m_description = desc;}
|
40 |
void setDescription(const string& desc) {m_description = desc;}
|
41 |
private:
|
41 |
private:
|
42 |
Rcl::Db *m_db;
|
42 |
Rcl::Db *m_db;
|