summaryrefslogtreecommitdiff
path: root/FreeFileSync/Source/base/algorithm.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <shieldwed@outlook.com>2019-12-14 15:52:53 +0000
committerDaniel Wilhelm <shieldwed@outlook.com>2019-12-14 15:52:53 +0000
commitcc75e50ca861529d50601d247fd66f806fcb23a8 (patch)
treee2c5c7b1f98e64011b1ee8ca4e9bb9157510dfe7 /FreeFileSync/Source/base/algorithm.h
parentMerge branch '10.17' into 'master' (diff)
parentadd upstream 10.18 (diff)
downloadFreeFileSync-cc75e50ca861529d50601d247fd66f806fcb23a8.tar.gz
FreeFileSync-cc75e50ca861529d50601d247fd66f806fcb23a8.tar.bz2
FreeFileSync-cc75e50ca861529d50601d247fd66f806fcb23a8.zip
Merge branch '10.18' into 'master'10.18
add upstream 10.18 See merge request opensource-tracking/FreeFileSync!15
Diffstat (limited to 'FreeFileSync/Source/base/algorithm.h')
-rw-r--r--FreeFileSync/Source/base/algorithm.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/FreeFileSync/Source/base/algorithm.h b/FreeFileSync/Source/base/algorithm.h
index afb4303c..299a97a0 100644
--- a/FreeFileSync/Source/base/algorithm.h
+++ b/FreeFileSync/Source/base/algorithm.h
@@ -21,17 +21,13 @@ void recursiveObjectVisitor(FileSystemObject& fsObj,
std::function<void (FilePair& file)> onFile,
std::function<void (SymlinkPair& symlink)> onSymlink);
-void swapGrids(const MainConfiguration& mainCfg, FolderComparison& folderCmp); //throw FileError
+void swapGrids(const MainConfiguration& mainCfg, FolderComparison& folderCmp,
+ PhaseCallback& callback /*throw X*/); //throw X
-std::vector<DirectionConfig> extractDirectionCfg(const MainConfiguration& mainCfg);
+std::vector<std::pair<BaseFolderPair*, DirectionConfig>> extractDirectionCfg(FolderComparison& folderCmp, const MainConfiguration& mainCfg);
-void redetermineSyncDirection(const DirectionConfig& directConfig, //throw FileError
- BaseFolderPair& baseFolder,
- const std::function<void(const std::wstring& msg)>& notifyStatus);
-
-void redetermineSyncDirection(const std::vector<DirectionConfig>& directCfgs, //throw FileError
- FolderComparison& folderCmp,
- const std::function<void(const std::wstring& msg)>& notifyStatus);
+void redetermineSyncDirection(const std::vector<std::pair<BaseFolderPair*, DirectionConfig>>& directCfgs,
+ PhaseCallback& callback /*throw X*/); //throw X
void setSyncDirectionRec(SyncDirection newDirection, FileSystemObject& fsObj); //set new direction (recursively)
@@ -72,8 +68,7 @@ void copyToAlternateFolder(std::span<const FileSystemObject* const> rowsToCopyOn
//manual deletion of files on main grid
void deleteFromGridAndHD(const std::vector<FileSystemObject*>& rowsToDeleteOnLeft, //refresh GUI grid after deletion to remove invalid rows
const std::vector<FileSystemObject*>& rowsToDeleteOnRight, //all pointers need to be bound!
- FolderComparison& folderCmp, //attention: rows will be physically deleted!
- const std::vector<DirectionConfig>& directCfgs,
+ const std::vector<std::pair<BaseFolderPair*, DirectionConfig>>& directCfgs, //attention: rows will be physically deleted!
bool useRecycleBin,
//global warnings:
bool& warnRecyclerMissing,
bgstack15