summaryrefslogtreecommitdiff
path: root/Application.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 16:54:32 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 16:54:32 +0200
commitcbb59ba3fb48fb87065469eaa1b4a34a18851b9e (patch)
tree6f43ab99e0f22a33fccb941ab0441d1bee38adf9 /Application.h
parent1.11 (diff)
downloadFreeFileSync-cbb59ba3fb48fb87065469eaa1b4a34a18851b9e.tar.gz
FreeFileSync-cbb59ba3fb48fb87065469eaa1b4a34a18851b9e.tar.bz2
FreeFileSync-cbb59ba3fb48fb87065469eaa1b4a34a18851b9e.zip
1.12
Diffstat (limited to 'Application.h')
-rw-r--r--Application.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/Application.h b/Application.h
index e240a762..220c81a1 100644
--- a/Application.h
+++ b/Application.h
@@ -15,6 +15,7 @@
#include "FreeFileSync.h"
#include "ui/smallDialogs.h"
#include "library/misc.h"
+#include "library/processXml.h"
class Application : public wxApp
{
@@ -22,31 +23,33 @@ public:
bool OnInit();
int OnRun();
int OnExit();
+ bool OnExceptionInMainLoop();
void initialize();
bool ProcessIdle(); //virtual method!
private:
- void runBatchMode(const wxString& filename);
+ void runBatchMode(const wxString& filename, xmlAccess::XmlGlobalSettings& globalSettings);
bool applicationRunsInBatchWithoutWindows;
CustomLocale programLanguage;
int returnValue;
+ xmlAccess::XmlGlobalSettings globalSettings; //settings used by GUI, batch mode or both
};
class LogFile;
-class BatchStatusUpdater : public StatusUpdater
+class BatchStatusUpdater : public StatusHandler
{
public:
BatchStatusUpdater(bool continueOnError, bool silent, LogFile* log);
~BatchStatusUpdater();
void updateStatusText(const wxString& text);
- void initNewProcess(int objectsTotal, double dataTotal, int processID);
+ void initNewProcess(int objectsTotal, double dataTotal, Process processID);
void updateProcessedData(int objectsProcessed, double dataProcessed);
- int reportError(const wxString& text);
+ ErrorHandler::Response reportError(const wxString& text);
void forceUiRefresh();
void noSynchronizationNeeded();
@@ -60,7 +63,7 @@ private:
bool silentMode;
wxArrayString unhandledErrors; //list of non-resolved errors
- int currentProcess;
+ Process currentProcess;
bool synchronizationNeeded;
};
bgstack15