|
a/src/index/fsindexer.h |
|
b/src/index/fsindexer.h |
|
... |
|
... |
24 |
|
24 |
|
25 |
#include "fstreewalk.h"
|
25 |
#include "fstreewalk.h"
|
26 |
#include "rcldb.h"
|
26 |
#include "rcldb.h"
|
27 |
|
27 |
|
28 |
class DbIxStatusUpdater;
|
28 |
class DbIxStatusUpdater;
|
|
|
29 |
class FIMissingStore;
|
29 |
|
30 |
|
30 |
/** Index selected parts of the file system
|
31 |
/** Index selected parts of the file system
|
31 |
|
32 |
|
32 |
Tree indexing: we inherits FsTreeWalkerCB so that, the processone()
|
33 |
Tree indexing: we inherits FsTreeWalkerCB so that, the processone()
|
33 |
method is called by the file-system tree walk code for each file and
|
34 |
method is called by the file-system tree walk code for each file and
|
|
... |
|
... |
43 |
/** Constructor does nothing but store parameters
|
44 |
/** Constructor does nothing but store parameters
|
44 |
*
|
45 |
*
|
45 |
* @param cnf Configuration data
|
46 |
* @param cnf Configuration data
|
46 |
* @param updfunc Status updater callback
|
47 |
* @param updfunc Status updater callback
|
47 |
*/
|
48 |
*/
|
48 |
FsIndexer(RclConfig *cnf, Rcl::Db *db, DbIxStatusUpdater *updfunc = 0)
|
49 |
FsIndexer(RclConfig *cnf, Rcl::Db *db, DbIxStatusUpdater *updfunc = 0);
|
49 |
: m_config(cnf), m_db(db), m_updater(updfunc)
|
|
|
50 |
{
|
|
|
51 |
m_havelocalfields = m_config->hasNameAnywhere("localfields");
|
|
|
52 |
}
|
|
|
53 |
|
|
|
54 |
virtual ~FsIndexer();
|
50 |
virtual ~FsIndexer();
|
55 |
|
51 |
|
56 |
/**
|
52 |
/**
|
57 |
* Top level file system tree index method for updating a given database.
|
53 |
* Top level file system tree index method for updating a given database.
|
58 |
*
|
54 |
*
|
|
... |
|
... |
77 |
Rcl::Db *m_db;
|
73 |
Rcl::Db *m_db;
|
78 |
TempDir m_tmpdir;
|
74 |
TempDir m_tmpdir;
|
79 |
string m_reason;
|
75 |
string m_reason;
|
80 |
DbIxStatusUpdater *m_updater;
|
76 |
DbIxStatusUpdater *m_updater;
|
81 |
list<string> m_tdl;
|
77 |
list<string> m_tdl;
|
|
|
78 |
FIMissingStore *m_missing;
|
82 |
|
79 |
|
83 |
// The configuration can set attribute fields to be inherited by
|
80 |
// The configuration can set attribute fields to be inherited by
|
84 |
// all files in a file system area. Ie: set "rclaptg = thunderbird"
|
81 |
// all files in a file system area. Ie: set "rclaptg = thunderbird"
|
85 |
// inside ~/.thunderbird. The boolean is set at init to avoid
|
82 |
// inside ~/.thunderbird. The boolean is set at init to avoid
|
86 |
// further wasteful processing if no local fields are set.
|
83 |
// further wasteful processing if no local fields are set.
|