diff options
Diffstat (limited to 'comparison.h')
-rw-r--r-- | comparison.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/comparison.h b/comparison.h new file mode 100644 index 00000000..cc80ea29 --- /dev/null +++ b/comparison.h @@ -0,0 +1,32 @@ +#ifndef COMPARISON_H_INCLUDED +#define COMPARISON_H_INCLUDED + +#include "FreeFileSync.h" + + +namespace FreeFileSync +{ + bool foldersAreValidForComparison(const vector<FolderPair>& folderPairs, wxString& errorMessage); + bool foldersHaveDependencies(const vector<FolderPair>& folderPairs, wxString& warningMessage); + + //class handling comparison process + class CompareProcess + { + public: + CompareProcess(bool lineBreakOnMessages, StatusHandler* handler); + + void startCompareProcess(const vector<FolderPair>& directoryPairsFormatted, + const CompareVariant cmpVar, + FileCompareResult& output) throw(AbortThisProcess); + + private: + //create comparison result table and fill relation except for files existing on both sides + void performBaseComparison(const vector<FolderPair>& directoryPairsFormatted, + FileCompareResult& output); + + StatusHandler* statusUpdater; + wxString optionalLineBreak; //optional line break for status messages (used by GUI mode only) + }; +} + +#endif // COMPARISON_H_INCLUDED |