summaryrefslogtreecommitdiff
path: root/ui/batchStatusHandler.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:00:17 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:00:17 +0200
commitfd0853d2623dd278b08288331ed42e3be59252fb (patch)
treea7645daeaef8bdbed064faf4eb88e72cee58726c /ui/batchStatusHandler.h
parent2.1 (diff)
downloadFreeFileSync-fd0853d2623dd278b08288331ed42e3be59252fb.tar.gz
FreeFileSync-fd0853d2623dd278b08288331ed42e3be59252fb.tar.bz2
FreeFileSync-fd0853d2623dd278b08288331ed42e3be59252fb.zip
2.2
Diffstat (limited to 'ui/batchStatusHandler.h')
-rw-r--r--ui/batchStatusHandler.h31
1 files changed, 14 insertions, 17 deletions
diff --git a/ui/batchStatusHandler.h b/ui/batchStatusHandler.h
index 7087d3c9..a075d7d7 100644
--- a/ui/batchStatusHandler.h
+++ b/ui/batchStatusHandler.h
@@ -4,7 +4,7 @@
#include "../library/statusHandler.h"
#include <memory>
#include "../library/processXml.h"
-#include <wx/arrstr.h>
+#include "../library/errorLogging.h"
class LogFile;
class FfsTrayIcon;
@@ -14,10 +14,7 @@ class SyncStatus;
class BatchStatusHandler : public StatusHandler
{
public:
- BatchStatusHandler() {}
- virtual ~BatchStatusHandler() {}
-
- virtual void addFinalInfo(const Zstring& infoMessage) = 0;
+ virtual void addFinalInfo(const wxString& infoMessage) = 0;
};
@@ -30,19 +27,19 @@ public:
virtual void updateStatusText(const Zstring& text);
virtual void initNewProcess(int objectsTotal, wxLongLong dataTotal, Process processID);
- virtual void updateProcessedData(int objectsProcessed, wxLongLong dataProcessed) {}
+ virtual void updateProcessedData(int objectsProcessed, wxLongLong dataProcessed);
virtual void forceUiRefresh();
- virtual ErrorHandler::Response reportError(const Zstring& errorMessage);
- virtual void reportFatalError(const Zstring& errorMessage);
- virtual void reportWarning(const Zstring& warningMessage, bool& dontShowAgain);
- virtual void addFinalInfo(const Zstring& infoMessage);
+ virtual ErrorHandler::Response reportError(const wxString& errorMessage);
+ virtual void reportFatalError(const wxString& errorMessage);
+ virtual void reportWarning(const wxString& warningMessage, bool& warningActive);
+ virtual void addFinalInfo(const wxString& infoMessage);
private:
virtual void abortThisProcess();
xmlAccess::OnError m_handleError;
- wxArrayString unhandledErrors; //list of non-resolved errors
+
Process currentProcess;
int& returnValue;
std::auto_ptr<FfsTrayIcon> trayIcon;
@@ -62,16 +59,16 @@ public:
virtual void updateProcessedData(int objectsProcessed, wxLongLong dataProcessed);
virtual void forceUiRefresh();
- virtual ErrorHandler::Response reportError(const Zstring& errorMessage);
- virtual void reportFatalError(const Zstring& errorMessage);
- virtual void reportWarning(const Zstring& warningMessage, bool& dontShowAgain);
- virtual void addFinalInfo(const Zstring& infoMessage);
+ virtual ErrorHandler::Response reportError(const wxString& errorMessage);
+ virtual void reportFatalError(const wxString& errorMessage);
+ virtual void reportWarning(const wxString& warningMessage, bool& warningActive);
+ virtual void addFinalInfo(const wxString& infoMessage);
private:
virtual void abortThisProcess();
- xmlAccess::OnError m_handleError;
- wxArrayString unhandledErrors; //list of non-resolved errors
+ bool showPopups;
+ FreeFileSync::ErrorLogging errorLog; //list of non-resolved errors and warnings
Process currentProcess;
int& returnValue;
bgstack15