added a checkbox in settings for tuning auto-check of shared directories

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4107 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2011-03-28 21:52:21 +00:00
parent 5492f405c3
commit 7c6682b89f
10 changed files with 151 additions and 23 deletions

View file

@ -142,7 +142,6 @@ class FileIndexMonitor: public CacheSource, public RsThread
void getSharedDirectories(std::list<SharedDirInfo>& dirs);
void updateShareFlags(const SharedDirInfo& info) ;
void setPeriod(int insecs);
void forceDirectoryCheck();
bool inDirectoryCheck();
@ -157,6 +156,10 @@ class FileIndexMonitor: public CacheSource, public RsThread
bool rememberHashFiles() ;
// Remove any memory of formerly hashed files that are not shared anymore
void clearHashFiles() ;
void setPeriod(uint32_t insecs);
uint32_t getPeriod() const;
bool autoCheckEnabled() const ;
private:
/* the mutex should be locked before calling these 3. */