summaryrefslogtreecommitdiff
path: root/synchronization.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:04:59 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:04:59 +0200
commitf570e2f2685aa43aa518c2f8578391c1847cddbe (patch)
treeb9376b3a7e807c5e0c4cf3d5615c14034d9675d6 /synchronization.h
parent3.2 (diff)
downloadFreeFileSync-f570e2f2685aa43aa518c2f8578391c1847cddbe.tar.gz
FreeFileSync-f570e2f2685aa43aa518c2f8578391c1847cddbe.tar.bz2
FreeFileSync-f570e2f2685aa43aa518c2f8578391c1847cddbe.zip
3.3
Diffstat (limited to 'synchronization.h')
-rw-r--r--synchronization.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/synchronization.h b/synchronization.h
index 53b17091..9db4d112 100644
--- a/synchronization.h
+++ b/synchronization.h
@@ -20,6 +20,10 @@ public:
int getOverwrite(bool inclLeft = true, bool inclRight = true) const;
int getDelete( bool inclLeft = true, bool inclRight = true) const;
int getConflict() const;
+
+ typedef std::vector<std::pair<Zstring, wxString> > ConflictTexts; // Pair(filename/conflict text)
+ const ConflictTexts& getFirstConflicts() const; //get first few sync conflicts
+
wxULongLong getDataToProcess() const;
int getRowCount() const;
@@ -35,6 +39,7 @@ private:
int overwriteLeft, overwriteRight;
int deleteLeft, deleteRight;
int conflict;
+ ConflictTexts firstConflicts; //save the first few conflict texts to display as a warning message
wxULongLong dataToProcess;
int rowsTotal;
};
@@ -45,14 +50,14 @@ class SyncRecursively;
struct FolderPairSyncCfg
{
- FolderPairSyncCfg(bool inAutomaticMode,
+ FolderPairSyncCfg(bool automaticMode,
const DeletionPolicy handleDel,
const Zstring& custDelDir) :
- updateSyncDB(inAutomaticMode),
+ inAutomaticMode(automaticMode),
handleDeletion(handleDel),
custDelFolder(custDelDir) {}
- bool updateSyncDB; //update database if in automatic mode
+ bool inAutomaticMode; //update database if in automatic mode
DeletionPolicy handleDeletion;
Zstring custDelFolder;
};
bgstack15