GUI: perform up to date check before previewing a subdoc. This is for example to avoid showing the wrong message if a mail folder has been compacted

This commit is contained in:
Jean-Francois Dockes
2012-01-20 17:48:55 +01:00
parent 036937e8bf
commit 516863b5d6
6 changed files with 83 additions and 14 deletions
+1 -1
View File
@@ -282,7 +282,7 @@ void FsIndexer::setlocalfields(Rcl::Doc& doc)
}
}
static void makesig(const struct stat *stp, string& out)
void FsIndexer::makesig(const struct stat *stp, string& out)
{
char cbuf[100];
sprintf(cbuf, OFFTPC "%ld", stp->st_size, (long)stp->RCL_STTIME);
+4 -1
View File
@@ -24,10 +24,10 @@ using std::list;
#include "indexer.h"
#include "fstreewalk.h"
#include "rcldb.h"
class DbIxStatusUpdater;
class FIMissingStore;
struct stat;
/** Index selected parts of the file system
@@ -69,6 +69,9 @@ class FsIndexer : public FsTreeWalkerCB {
FsTreeWalker::Status
processone(const string &fn, const struct stat *, FsTreeWalker::CbFlag);
/** Make signature for file up to date checks */
static void makesig(const struct stat *stp, string& out);
private:
FsTreeWalker m_walker;
RclConfig *m_config;