Switch to unified view

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
#include <time.h>
19
20
20
#include "docseq.h"
21
#include "docseq.h"
21
#include "dynconf.h"
22
#include "dynconf.h"
22
23
23
namespace Rcl {
24
namespace Rcl {
...
...
26
27
27
/** DynConf Document history entry */
28
/** DynConf Document history entry */
28
class RclDHistoryEntry : public DynConfEntry {
29
class RclDHistoryEntry : public DynConfEntry {
29
 public:
30
 public:
30
    RclDHistoryEntry() : unixtime(0) {}
31
    RclDHistoryEntry() : unixtime(0) {}
31
    RclDHistoryEntry(long t, const string& u) 
32
    RclDHistoryEntry(time_t t, const string& u) 
32
    : unixtime(t), udi(u) {}
33
    : unixtime(t), udi(u) {}
33
    virtual ~RclDHistoryEntry() {}
34
    virtual ~RclDHistoryEntry() {}
34
    virtual bool decode(const string &value);
35
    virtual bool decode(const string &value);
35
    virtual bool encode(string& value);
36
    virtual bool encode(string& value);
36
    virtual bool equal(const DynConfEntry& other);
37
    virtual bool equal(const DynConfEntry& other);
37
    long unixtime;
38
    time_t unixtime;
38
    string udi;
39
    string udi;
39
};
40
};
40
41
41
/** A DocSequence coming from the history file. 
42
/** A DocSequence coming from the history file. 
42
 *  History is kept as a list of urls. This queries the db to fetch
43
 *  History is kept as a list of urls. This queries the db to fetch
...
...
55
    virtual Rcl::Db *getDb();
56
    virtual Rcl::Db *getDb();
56
private:
57
private:
57
    Rcl::Db    *m_db;
58
    Rcl::Db    *m_db;
58
    RclDynConf *m_hist;
59
    RclDynConf *m_hist;
59
    int         m_prevnum;
60
    int         m_prevnum;
60
    long        m_prevtime;
61
    time_t      m_prevtime;
61
    std::string m_description; // This is just an nls translated 'doc history'
62
    std::string m_description; // This is just an nls translated 'doc history'
62
    std::list<RclDHistoryEntry> m_hlist;
63
    std::list<RclDHistoryEntry> m_hlist;
63
    std::list<RclDHistoryEntry>::const_iterator m_it;
64
    std::list<RclDHistoryEntry>::const_iterator m_it;
64
};
65
};
65
66