summaryrefslogtreecommitdiff
path: root/lib/process_xml.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:28:01 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:28:01 +0200
commitfe9eb89ebc1b3c33cbac00a3fa095a14faef9113 (patch)
tree8a3bb620a9acb83fe0057061a86e8f2cb91a9fe1 /lib/process_xml.h
parent5.21 (diff)
downloadFreeFileSync-fe9eb89ebc1b3c33cbac00a3fa095a14faef9113.tar.gz
FreeFileSync-fe9eb89ebc1b3c33cbac00a3fa095a14faef9113.tar.bz2
FreeFileSync-fe9eb89ebc1b3c33cbac00a3fa095a14faef9113.zip
5.22
Diffstat (limited to 'lib/process_xml.h')
-rw-r--r--lib/process_xml.h33
1 files changed, 19 insertions, 14 deletions
diff --git a/lib/process_xml.h b/lib/process_xml.h
index 85f2d461..4092c072 100644
--- a/lib/process_xml.h
+++ b/lib/process_xml.h
@@ -12,6 +12,7 @@
#include "xml_base.h"
#include "localization.h"
#include "../ui/column_attr.h"
+#include "../ui/folder_history_types.h"
//#include "ffs_paths.h"
namespace xmlAccess
@@ -31,7 +32,7 @@ enum OnError
{
ON_ERROR_IGNORE,
ON_ERROR_POPUP,
- ON_ERROR_ABORT
+ ON_ERROR_STOP
};
enum OnGuiError
@@ -42,7 +43,7 @@ enum OnGuiError
typedef std::wstring Description;
typedef std::wstring Commandline;
-typedef std::vector<std::pair<Description, Commandline> > ExternalApps;
+typedef std::vector<std::pair<Description, Commandline>> ExternalApps;
//---------------------------------------------------------------------
struct XmlGuiConfig
@@ -135,26 +136,30 @@ struct XmlGlobalSettings
//Shared (GUI/BATCH) settings
XmlGlobalSettings() :
programLanguage(zen::retrieveSystemLanguage()),
+ failsafeFileCopy(true),
copyLockedFiles(true),
copyFilePermissions(false),
- runWithBackgroundPriority(false),
+ automaticRetryCount(0),
+ automaticRetryDelay(5),
fileTimeTolerance(2), //default 2s: FAT vs NTFS
- lastSyncsLogFileSizeMax(100000), //maximum size for LastSyncs.log: use a human-readable number
+ runWithBackgroundPriority(false),
+ createLockFile(true),
verifyFileCopy(false),
- transactionalFileCopy(true),
- createLockFile(true) {}
+ lastSyncsLogFileSizeMax(100000) //maximum size for LastSyncs.log: use a human-readable number
+ {}
int programLanguage;
- bool copyLockedFiles; //VSS usage
+ bool failsafeFileCopy;
+ bool copyLockedFiles;
bool copyFilePermissions;
-
- bool runWithBackgroundPriority;
+ size_t automaticRetryCount;
+ size_t automaticRetryDelay; //unit: [sec]
size_t fileTimeTolerance; //max. allowed file time deviation
- size_t lastSyncsLogFileSizeMax;
- bool verifyFileCopy; //verify copied files
- bool transactionalFileCopy;
+ bool runWithBackgroundPriority;
bool createLockFile;
+ bool verifyFileCopy; //verify copied files
+ size_t lastSyncsLogFileSizeMax;
OptionalDialogs optDialogs;
@@ -238,7 +243,7 @@ struct XmlGlobalSettings
ExternalApps externelApplications;
- std::vector<Zstring> cfgFileHistory;
+ std::vector<zen::ConfigHistoryItem> cfgFileHistory;
size_t cfgFileHistMax;
std::vector<Zstring> lastUsedConfigFiles;
@@ -259,7 +264,7 @@ struct XmlGlobalSettings
bool showIcons;
FileIconSize iconSize;
- long lastUpdateCheck; //time of last update check
+ long lastUpdateCheck; //time of last update check
ViewFilterDefault viewFilterDefault;
wxString guiPerspectiveLast; //used by wxAuiManager
bgstack15