diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 16:58:10 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 16:58:10 +0200 |
commit | fefe20351d0720683990b666584b6879c90bd37d (patch) | |
tree | 8ab90520ae2123ac84293b0f9cec006317e5fc01 /synchronization.h | |
parent | 1.18 (diff) | |
download | FreeFileSync-fefe20351d0720683990b666584b6879c90bd37d.tar.gz FreeFileSync-fefe20351d0720683990b666584b6879c90bd37d.tar.bz2 FreeFileSync-fefe20351d0720683990b666584b6879c90bd37d.zip |
1.19
Diffstat (limited to 'synchronization.h')
-rw-r--r-- | synchronization.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/synchronization.h b/synchronization.h index c8ce10cd..47052fac 100644 --- a/synchronization.h +++ b/synchronization.h @@ -9,13 +9,15 @@ class StatusHandler; namespace FreeFileSync { void calcTotalBytesToSync(const FolderComparison& folderCmp, - const SyncConfiguration& config, int& objectsToCreate, int& objectsToOverwrite, int& objectsToDelete, + int& conflicts, wxULongLong& dataToProcess); - bool synchronizationNeeded(const FolderComparison& folderCmp, const SyncConfiguration& config); + bool synchronizationNeeded(const FolderComparison& folderCmp); + + void redetermineSyncDirection(const SyncConfiguration& config, FolderComparison& folderCmp); //class handling synchronization process class SyncProcess @@ -26,21 +28,26 @@ namespace FreeFileSync const bool traverseDirSymLinks, bool& warningSignificantDifference, bool& warningNotEnoughDiskSpace, + bool& warningUnresolvedConflict, StatusHandler* handler); - void startSynchronizationProcess(FolderComparison& folderCmp, const SyncConfiguration& config); + void startSynchronizationProcess(FolderComparison& folderCmp); private: - bool synchronizeFile(const FileCompareLine& cmpLine, const SyncConfiguration& config, const FolderPair& folderPair); //false if nothing was done - bool synchronizeFolder(const FileCompareLine& cmpLine, const SyncConfiguration& config, const FolderPair& folderPair); //false if nothing was done + bool synchronizeFile(const FileCompareLine& cmpLine, const FolderPair& folderPair); //false if nothing was done + bool synchronizeFolder(const FileCompareLine& cmpLine, const FolderPair& folderPair); //false if nothing was done void copyFileUpdating(const Zstring& source, const Zstring& target, const wxULongLong& sourceFileSize); const bool m_useRecycleBin; const bool m_copyFileSymLinks; const bool m_traverseDirSymLinks; + + //warnings bool& m_warningSignificantDifference; bool& m_warningNotEnoughDiskSpace; + bool& m_warningUnresolvedConflict; + StatusHandler* statusUpdater; //preload status texts |