This commit is contained in:
dockes 2009-11-10 17:39:34 +00:00
parent 0c20602867
commit 3a047f189a

View File

@ -96,12 +96,12 @@ Single file(s) indexing: no database purging or stem db updating.
*/ */
class DbIndexer : public FsTreeWalkerCB { class DbIndexer : public FsTreeWalkerCB {
public: public:
/** Constructor does nothing but store parameters */ /** Constructor does nothing but store parameters
DbIndexer(RclConfig *cnf, // Configuration data *
// Db dir not used anymore, rcl::db gets it from the cfg * @param cnf Configuration data
const string &, * @param updfunc Status updater callback
DbIxStatusUpdater *updfunc = 0 // status updater callback */
) DbIndexer(RclConfig *cnf, DbIxStatusUpdater *updfunc = 0)
: m_config(cnf), m_db(cnf), m_updater(updfunc) : m_config(cnf), m_db(cnf), m_updater(updfunc)
{ {
m_havelocalfields = m_config->hasNameAnywhere("localfields"); m_havelocalfields = m_config->hasNameAnywhere("localfields");
@ -138,8 +138,7 @@ class DbIndexer : public FsTreeWalkerCB {
/** Tree walker callback method */ /** Tree walker callback method */
FsTreeWalker::Status FsTreeWalker::Status
processone(const string &, const struct stat *, processone(const string &, const struct stat *, FsTreeWalker::CbFlag);
FsTreeWalker::CbFlag);
/** Return my db dir */ /** Return my db dir */
string getDbDir() {return m_config->getDbDir();} string getDbDir() {return m_config->getDbDir();}