--- a/src/query/docseqhist.h
+++ b/src/query/docseqhist.h
@@ -31,14 +31,15 @@
class RclDHistoryEntry : public DynConfEntry {
public:
RclDHistoryEntry() : unixtime(0) {}
- RclDHistoryEntry(time_t t, const string& u)
- : unixtime(t), udi(u) {}
+ RclDHistoryEntry(time_t t, const std::string& u, const std::string& d)
+ : unixtime(t), udi(u), dbdir(d) {}
virtual ~RclDHistoryEntry() {}
- virtual bool decode(const string &value);
- virtual bool encode(string& value);
+ virtual bool decode(const std::string &value);
+ virtual bool encode(std::string& value);
virtual bool equal(const DynConfEntry& other);
time_t unixtime;
- string udi;
+ std::string udi;
+ std::string dbdir;
};
/** A DocSequence coming from the history file.
@@ -46,14 +47,14 @@
* metadata for an url key */
class DocSequenceHistory : public DocSequence {
public:
- DocSequenceHistory(Rcl::Db *d, RclDynConf *h, const string &t)
+ DocSequenceHistory(Rcl::Db *d, RclDynConf *h, const std::string &t)
: DocSequence(t), m_db(d), m_hist(h) {}
virtual ~DocSequenceHistory() {}
- virtual bool getDoc(int num, Rcl::Doc &doc, string *sh = 0);
+ virtual bool getDoc(int num, Rcl::Doc &doc, std::string *sh = 0);
virtual int getResCnt();
- virtual string getDescription() {return m_description;}
- void setDescription(const string& desc) {m_description = desc;}
+ virtual std::string getDescription() {return m_description;}
+ void setDescription(const std::string& desc) {m_description = desc;}
protected:
virtual Rcl::Db *getDb();
private:
@@ -64,6 +65,6 @@
std::vector<RclDHistoryEntry> m_history;
};
-extern bool historyEnterDoc(RclDynConf *dncf, const string& udi);
+extern bool historyEnterDoc(Rcl::Db *db, RclDynConf *dncf, const Rcl::Doc& doc);
#endif /* _DOCSEQ_H_INCLUDED_ */