summaryrefslogtreecommitdiff
path: root/Application.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 16:55:14 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 16:55:14 +0200
commit222024f07e505617aec93dc4837be2be27d18856 (patch)
treec40f400baa6cf1d047205359f80c2b8f74a2b507 /Application.h
parent1.12 (diff)
downloadFreeFileSync-222024f07e505617aec93dc4837be2be27d18856.tar.gz
FreeFileSync-222024f07e505617aec93dc4837be2be27d18856.tar.bz2
FreeFileSync-222024f07e505617aec93dc4837be2be27d18856.zip
1.13
Diffstat (limited to 'Application.h')
-rw-r--r--Application.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/Application.h b/Application.h
index 220c81a1..42c425a7 100644
--- a/Application.h
+++ b/Application.h
@@ -12,7 +12,6 @@
#include <wx/app.h>
#include <wx/cmdline.h>
-#include "FreeFileSync.h"
#include "ui/smallDialogs.h"
#include "library/misc.h"
#include "library/processXml.h"
@@ -43,28 +42,31 @@ class LogFile;
class BatchStatusUpdater : public StatusHandler
{
public:
- BatchStatusUpdater(bool continueOnError, bool silent, LogFile* log);
+ BatchStatusUpdater(bool ignoreAllErrors, bool silent, LogFile* log);
~BatchStatusUpdater();
- void updateStatusText(const wxString& text);
- void initNewProcess(int objectsTotal, double dataTotal, Process processID);
- void updateProcessedData(int objectsProcessed, double dataProcessed);
- ErrorHandler::Response reportError(const wxString& text);
- void forceUiRefresh();
+ virtual void updateStatusText(const wxString& text);
+ virtual void initNewProcess(int objectsTotal, double dataTotal, Process processID);
+ virtual void updateProcessedData(int objectsProcessed, double dataProcessed);
+ virtual ErrorHandler::Response reportError(const wxString& text);
+ virtual void forceUiRefresh();
- void noSynchronizationNeeded();
+ wxWindow* getWindow();
+ void setFinalStatus(const wxString& message, SyncStatus::SyncStatusID id); //overwrite final status message text
private:
- void abortThisProcess();
+ virtual void abortThisProcess();
LogFile* m_log;
SyncStatus* syncStatusFrame;
- bool continueErrors;
+ bool ignoreErrors;
bool silentMode;
wxArrayString unhandledErrors; //list of non-resolved errors
Process currentProcess;
- bool synchronizationNeeded;
+
+ wxString customStatusMessage; //final status message written by service consumer
+ SyncStatus::SyncStatusID customStatusId;
};
bgstack15