mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-11 18:45:17 -04:00
Tweaked dbase functions for ftSearch functionality.
(made a bunch of functions "const") git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@674 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
de2956637b
commit
d7e1a90c28
8 changed files with 64 additions and 46 deletions
|
@ -72,7 +72,7 @@ class FileIndexMonitor: public CacheSource, public RsThread
|
|||
virtual ~FileIndexMonitor();
|
||||
|
||||
/* external interface for filetransfer */
|
||||
bool findLocalFile(std::string hash, std::string &fullpath, uint64_t &size);
|
||||
bool findLocalFile(std::string hash, std::string &fullpath, uint64_t &size) const;
|
||||
|
||||
/* external interface for local access to files */
|
||||
bool convertSharedFilePath(std::string path, std::string &fullpath);
|
||||
|
@ -89,6 +89,8 @@ virtual void run(); /* overloaded from RsThread */
|
|||
void updateCycle();
|
||||
|
||||
void setSharedDirectories(std::list<std::string> dirs);
|
||||
void getSharedDirectories(std::list<std::string> &dirs);
|
||||
|
||||
void setPeriod(int insecs);
|
||||
void forceDirectoryCheck();
|
||||
bool inDirectoryCheck();
|
||||
|
@ -97,12 +99,12 @@ bool inDirectoryCheck();
|
|||
private:
|
||||
|
||||
/* the mutex should be locked before calling... these. */
|
||||
std::string findRealRoot(std::string base); /* To Implement */
|
||||
std::string locked_findRealRoot(std::string base) const;
|
||||
bool hashFile(std::string path, FileEntry &fi); /* To Implement */
|
||||
|
||||
/* data */
|
||||
|
||||
RsMutex fiMutex;
|
||||
mutable RsMutex fiMutex;
|
||||
|
||||
FileIndex fi;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue