mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
added UI and parameters for two new options in shared files: max share depth and ignore duplicates
This commit is contained in:
parent
a2ccf97b82
commit
2a99df4d48
11 changed files with 233 additions and 70 deletions
|
@ -839,10 +839,14 @@ void ftServer::setIgnoreLists(const std::list<std::string>& ignored_prefixes, co
|
|||
bool ftServer::watchEnabled() { return mFileDatabase->watchEnabled() ; }
|
||||
int ftServer::watchPeriod() const { return mFileDatabase->watchPeriod()/60 ; }
|
||||
bool ftServer::followSymLinks() const { return mFileDatabase->followSymLinks() ; }
|
||||
bool ftServer::ignoreDuplicates() { return mFileDatabase->ignoreDuplicates() ; }
|
||||
int ftServer::maxShareDepth() const { return mFileDatabase->maxShareDepth() ; }
|
||||
|
||||
void ftServer::setWatchEnabled(bool b) { mFileDatabase->setWatchEnabled(b) ; }
|
||||
void ftServer::setWatchPeriod(int minutes) { mFileDatabase->setWatchPeriod(minutes*60) ; }
|
||||
void ftServer::setFollowSymLinks(bool b) { mFileDatabase->setFollowSymLinks(b) ; }
|
||||
void ftServer::setIgnoreDuplicates(bool ignore) { mFileDatabase->setIgnoreDuplicates(ignore); }
|
||||
void ftServer::setMaxShareDepth(int depth) { mFileDatabase->setMaxShareDepth(depth) ; }
|
||||
|
||||
void ftServer::togglePauseHashingProcess() { mFileDatabase->togglePauseHashingProcess() ; }
|
||||
bool ftServer::hashingProcessPaused() { return mFileDatabase->hashingProcessPaused() ; }
|
||||
|
|
|
@ -228,6 +228,12 @@ public:
|
|||
virtual void togglePauseHashingProcess();
|
||||
virtual bool hashingProcessPaused();
|
||||
|
||||
virtual void setMaxShareDepth(int depth) ;
|
||||
virtual int maxShareDepth() const;
|
||||
|
||||
virtual bool ignoreDuplicates() ;
|
||||
virtual void setIgnoreDuplicates(bool ignore) ;
|
||||
|
||||
/***************************************************************/
|
||||
/*************** Data Transfer Interface ***********************/
|
||||
/***************************************************************/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue