diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 16:55:14 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 16:55:14 +0200 |
commit | 222024f07e505617aec93dc4837be2be27d18856 (patch) | |
tree | c40f400baa6cf1d047205359f80c2b8f74a2b507 /synchronization.h | |
parent | 1.12 (diff) | |
download | FreeFileSync-222024f07e505617aec93dc4837be2be27d18856.tar.gz FreeFileSync-222024f07e505617aec93dc4837be2be27d18856.tar.bz2 FreeFileSync-222024f07e505617aec93dc4837be2be27d18856.zip |
1.13
Diffstat (limited to 'synchronization.h')
-rw-r--r-- | synchronization.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/synchronization.h b/synchronization.h new file mode 100644 index 00000000..7bd3d216 --- /dev/null +++ b/synchronization.h @@ -0,0 +1,34 @@ +#ifndef SYNCHRONIZATION_H_INCLUDED +#define SYNCHRONIZATION_H_INCLUDED + +#include "FreeFileSync.h" + + +namespace FreeFileSync +{ + void calcTotalBytesToSync(int& objectsToCreate, + int& objectsToOverwrite, + int& objectsToDelete, + double& dataToProcess, + const FileCompareResult& fileCmpResult, + const SyncConfiguration& config); + + //class handling synchronization process + class SyncProcess + { + public: + SyncProcess(bool useRecycler, bool lineBreakOnMessages, StatusHandler* handler); + + void startSynchronizationProcess(FileCompareResult& grid, const SyncConfiguration& config) throw(AbortThisProcess); + + private: + bool synchronizeFile(const FileCompareLine& cmpLine, const SyncConfiguration& config); //false if nothing had to be done + bool synchronizeFolder(const FileCompareLine& cmpLine, const SyncConfiguration& config); //false if nothing had to be done + + const bool useRecycleBin; + StatusHandler* statusUpdater; + wxString optionalLineBreak; //optional line break for status messages (used by GUI mode only) + }; +} + +#endif // SYNCHRONIZATION_H_INCLUDED |