Switch to unified view

a/src/query/docseq.h b/src/query/docseq.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 _DOCSEQ_H_INCLUDED_
17
#ifndef _DOCSEQ_H_INCLUDED_
18
#define _DOCSEQ_H_INCLUDED_
18
#define _DOCSEQ_H_INCLUDED_
19
/* @(#$Id: docseq.h,v 1.6 2006-02-07 10:26:49 dockes Exp $  (C) 2004 J.F.Dockes */
19
/* @(#$Id: docseq.h,v 1.7 2006-02-21 12:52:48 dockes Exp $  (C) 2004 J.F.Dockes */
20
20
21
#include "rcldb.h"
21
#include "rcldb.h"
22
#include "history.h"
22
#include "history.h"
23
23
24
/** Interface for a list of documents coming from some source.
24
/** Interface for a list of documents coming from some source.
25
25
26
    The result list display data may come from different sources (ie:
26
    The result list display data may come from different sources (ie:
27
    history or Db query). We have an interface to make things cleaner.
27
    history or Db query). We have an interface to make things cleaner.
28
*/
28
*/
29
class DocSequence {
29
class DocSequence {
30
    std::string m_title;
31
 public:
30
 public:
32
    DocSequence(const std::string &t) : m_title(t) {}
31
    DocSequence(const std::string &t) : m_title(t) {}
33
    virtual ~DocSequence() {}
32
    virtual ~DocSequence() {}
34
    /** Get document at given rank 
33
    /** Get document at given rank 
35
     *
34
     *
...
...
46
     */
45
     */
47
    virtual bool getDoc(int num, Rcl::Doc &doc, int *percent, string *sh = 0) 
46
    virtual bool getDoc(int num, Rcl::Doc &doc, int *percent, string *sh = 0) 
48
    = 0;
47
    = 0;
49
    virtual int getResCnt() = 0;
48
    virtual int getResCnt() = 0;
50
    virtual std::string title() {return m_title;}
49
    virtual std::string title() {return m_title;}
50
51
 private:
52
    std::string m_title;
51
};
53
};
52
54
53
55
54
/** A DocSequence from a Db query (there should be one active for this
56
/** A DocSequence from a Db query (there should be one active for this
55
    to make sense */
57
    to make sense */