diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 16:56:34 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 16:56:34 +0200 |
commit | 9084fa27f0f43cfa31dbc3a7ef87e2600c2dc3ca (patch) | |
tree | 61e2edc315a164d6fa3940b7de4b14dda0a9838c /comparison.h | |
parent | 1.15 (diff) | |
download | FreeFileSync-9084fa27f0f43cfa31dbc3a7ef87e2600c2dc3ca.tar.gz FreeFileSync-9084fa27f0f43cfa31dbc3a7ef87e2600c2dc3ca.tar.bz2 FreeFileSync-9084fa27f0f43cfa31dbc3a7ef87e2600c2dc3ca.zip |
1.16
Diffstat (limited to 'comparison.h')
-rw-r--r-- | comparison.h | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/comparison.h b/comparison.h index bbd93f9a..8e6bb9d3 100644 --- a/comparison.h +++ b/comparison.h @@ -4,20 +4,22 @@ #include "FreeFileSync.h" #include "library/statusHandler.h" -class DirectoryDescrBuffer; - namespace FreeFileSync { - bool foldersAreValidForComparison(const std::vector<FolderPair>& folderPairs, wxString& errorMessage); - bool foldersHaveDependencies( const std::vector<FolderPair>& folderPairs, wxString& warningMessage); + class DirectoryDescrBuffer; //class handling comparison process class CompareProcess { public: - CompareProcess(bool lineBreakOnMessages, bool handleDstOnFat32Drives, StatusHandler* handler); + CompareProcess(const bool traverseSymLinks, + const bool handleDstOnFat32Drives, + bool& warningDependentFolders, + StatusHandler* handler); + + ~CompareProcess(); - void startCompareProcess(const std::vector<FolderPair>& directoryPairsFormatted, + void startCompareProcess(const std::vector<FolderPair>& directoryPairs, const CompareVariant cmpVar, FileCompareResult& output) throw(AbortThisProcess); @@ -27,12 +29,15 @@ namespace FreeFileSync void compareByContent(const std::vector<FolderPair>& directoryPairsFormatted, FileCompareResult& output); //create comparison result table and fill relation except for files existing on both sides - void performBaseComparison(const FolderPair& pair, - DirectoryDescrBuffer& descriptionBuffer, - FileCompareResult& output); + void performBaseComparison(const FolderPair& pair, FileCompareResult& output); - const bool includeLineBreak; //optional line break for status messages (used by GUI mode only) + //buffer accesses to the same directories; useful when multiple folder pairs are used + DirectoryDescrBuffer* descriptionBuffer; + + const bool traverseSymbolicLinks; const bool handleDstOnFat32; + bool& m_warningDependentFolders; + StatusHandler* statusUpdater; Zstring txtComparingContentOfFiles; }; |