summaryrefslogtreecommitdiff
path: root/comparison.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:11:56 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:11:56 +0200
commit98ecf620f7de377dc8ae9ad7fbd1e3b24477e138 (patch)
treefaadc6d8822c20cd3bc6f50b2a98e6c580585949 /comparison.h
parent3.16 (diff)
downloadFreeFileSync-98ecf620f7de377dc8ae9ad7fbd1e3b24477e138.tar.gz
FreeFileSync-98ecf620f7de377dc8ae9ad7fbd1e3b24477e138.tar.bz2
FreeFileSync-98ecf620f7de377dc8ae9ad7fbd1e3b24477e138.zip
3.17
Diffstat (limited to 'comparison.h')
-rw-r--r--comparison.h29
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;
};
}
bgstack15