mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-22 07:41:20 -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
|
@ -40,9 +40,10 @@ LocalDirectoryUpdater::LocalDirectoryUpdater(HashStorage *hc,LocalDirectoryStora
|
|||
, mLastSweepTime(0), mLastTSUpdateTime(0)
|
||||
, mDelayBetweenDirectoryUpdates(DELAY_BETWEEN_DIRECTORY_UPDATES)
|
||||
, mIsEnabled(false), mFollowSymLinks(FOLLOW_SYMLINKS_DEFAULT)
|
||||
, mIgnoreDuplicates(true)
|
||||
/* Can be left to false, but setting it to true will force to re-hash any file that has been left unhashed in the last session.*/
|
||||
, mNeedsFullRecheck(true)
|
||||
, mIsChecking(false), mForceUpdate(false), mIgnoreFlags (0)
|
||||
, mIsChecking(false), mForceUpdate(false), mIgnoreFlags (0), mMaxShareDepth(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -344,4 +345,25 @@ bool LocalDirectoryUpdater::getIgnoreLists(std::list<std::string>& ignored_prefi
|
|||
return true;
|
||||
}
|
||||
|
||||
int LocalDirectoryUpdater::maxShareDepth() const
|
||||
{
|
||||
return mMaxShareDepth ;
|
||||
}
|
||||
|
||||
void LocalDirectoryUpdater::setMaxShareDepth(int d)
|
||||
{
|
||||
if(d != mMaxShareDepth)
|
||||
mNeedsFullRecheck = true ;
|
||||
|
||||
mMaxShareDepth = d ;
|
||||
}
|
||||
|
||||
bool LocalDirectoryUpdater::ignoreDuplicates() const
|
||||
{
|
||||
return mIgnoreDuplicates;
|
||||
}
|
||||
|
||||
void LocalDirectoryUpdater::setIgnoreDuplicates(bool b)
|
||||
{
|
||||
mIgnoreDuplicates = b ;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue