|
a/src/index/indexer.h |
|
b/src/index/indexer.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 _INDEXER_H_INCLUDED_
|
17 |
#ifndef _INDEXER_H_INCLUDED_
|
18 |
#define _INDEXER_H_INCLUDED_
|
18 |
#define _INDEXER_H_INCLUDED_
|
19 |
/* @(#$Id: indexer.h,v 1.18 2006-10-12 14:46:02 dockes Exp $ (C) 2004 J.F.Dockes */
|
19 |
/* @(#$Id: indexer.h,v 1.19 2006-10-16 15:33:08 dockes Exp $ (C) 2004 J.F.Dockes */
|
20 |
|
20 |
|
21 |
#include <string>
|
21 |
#include <string>
|
22 |
#include <list>
|
22 |
#include <list>
|
23 |
|
23 |
|
24 |
#ifndef NO_NAMESPACES
|
24 |
#ifndef NO_NAMESPACES
|
|
... |
|
... |
125 |
/** Tree walker callback method */
|
125 |
/** Tree walker callback method */
|
126 |
FsTreeWalker::Status
|
126 |
FsTreeWalker::Status
|
127 |
processone(const string &, const struct stat *,
|
127 |
processone(const string &, const struct stat *,
|
128 |
FsTreeWalker::CbFlag);
|
128 |
FsTreeWalker::CbFlag);
|
129 |
|
129 |
|
|
|
130 |
/** Return my db dir */
|
|
|
131 |
string getDbDir() {return m_dbdir;}
|
|
|
132 |
|
130 |
private:
|
133 |
private:
|
131 |
FsTreeWalker m_walker;
|
134 |
FsTreeWalker m_walker;
|
132 |
RclConfig *m_config;
|
135 |
RclConfig *m_config;
|
133 |
string m_dbdir;
|
136 |
string m_dbdir;
|
134 |
Rcl::Db m_db;
|
137 |
Rcl::Db m_db;
|
135 |
string m_tmpdir;
|
138 |
string m_tmpdir;
|
136 |
DbIxStatusUpdater *m_updater;
|
139 |
DbIxStatusUpdater *m_updater;
|
137 |
|
140 |
|
138 |
bool init(bool rst = false);
|
141 |
bool init(bool rst = false);
|
139 |
};
|
142 |
};
|
140 |
|
143 |
|
141 |
/** utility function to turn topdirs into a proper list */
|
144 |
/** Helper method in recollindex.cpp for initial checks/setup to index
|
142 |
list<string> topdirsToList(RclConfig *conf);
|
145 |
* a list of files (either from the monitor or the command line) */
|
|
|
146 |
extern bool indexfiles(RclConfig *config, const list<string> &filenames);
|
143 |
|
147 |
|
144 |
#endif /* _INDEXER_H_INCLUDED_ */
|
148 |
#endif /* _INDEXER_H_INCLUDED_ */
|