diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:11:56 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:11:56 +0200 |
commit | 98ecf620f7de377dc8ae9ad7fbd1e3b24477e138 (patch) | |
tree | faadc6d8822c20cd3bc6f50b2a98e6c580585949 /comparison.h | |
parent | 3.16 (diff) | |
download | FreeFileSync-98ecf620f7de377dc8ae9ad7fbd1e3b24477e138.tar.gz FreeFileSync-98ecf620f7de377dc8ae9ad7fbd1e3b24477e138.tar.bz2 FreeFileSync-98ecf620f7de377dc8ae9ad7fbd1e3b24477e138.zip |
3.17
Diffstat (limited to 'comparison.h')
-rw-r--r-- | comparison.h | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/comparison.h b/comparison.h index 792f813c..02d3944d 100644 --- a/comparison.h +++ b/comparison.h @@ -12,30 +12,29 @@ #include "library/status_handler.h" #include "structures.h" #include "shared/disable_standby.h" +#include "library/norm_filter.h" -namespace ffs3 +namespace zen { - struct FolderPairCfg { - FolderPairCfg(const Zstring& leftDir, + FolderPairCfg(const Zstring& leftDir, //must be formatted folder pairs! const Zstring& rightDir, - const BaseFilter::FilterRef& filterIn, - const SyncConfiguration& syncCfg) : - leftDirectory(leftDir), - rightDirectory(rightDir), + const NormalizedFilter& filterIn, + const SyncConfig& syncCfg) : + leftDirectoryFmt(leftDir), + rightDirectoryFmt(rightDir), filter(filterIn), syncConfiguration(syncCfg) {} - Zstring leftDirectory; - Zstring rightDirectory; - - BaseFilter::FilterRef filter; //filter interface: always bound by design! - SyncConfiguration syncConfiguration; + Zstring leftDirectoryFmt; //resolved folder pairs!!! + Zstring rightDirectoryFmt; // + NormalizedFilter filter; + SyncConfig syncConfiguration; }; -std::vector<FolderPairCfg> extractCompareCfg(const MainConfiguration& mainCfg); +std::vector<FolderPairCfg> extractCompareCfg(const MainConfiguration& mainCfg); //fill FolderPairCfg and resolve folder pairs //class handling comparison process @@ -45,7 +44,7 @@ public: CompareProcess(SymLinkHandling handleSymlinks, size_t fileTimeTol, xmlAccess::OptionalDialogs& warnings, - StatusHandler* handler); + ProcessCallback& handler); void startCompareProcess(const std::vector<FolderPairCfg>& directoryPairs, const CompareVariant cmpVar, @@ -69,7 +68,7 @@ private: xmlAccess::OptionalDialogs& m_warnings; - StatusHandler* const statusUpdater; + ProcessCallback& procCallback; const Zstring txtComparingContentOfFiles; }; } |