From fefe20351d0720683990b666584b6879c90bd37d Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 16:58:10 +0200 Subject: 1.19 --- synchronization.h | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'synchronization.h') 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 -- cgit