summaryrefslogtreecommitdiff
path: root/ui/guiStatusHandler.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/guiStatusHandler.h
parent2.1 (diff)
downloadFreeFileSync-fd0853d2623dd278b08288331ed42e3be59252fb.tar.gz
FreeFileSync-fd0853d2623dd278b08288331ed42e3be59252fb.tar.bz2
FreeFileSync-fd0853d2623dd278b08288331ed42e3be59252fb.zip
2.2
Diffstat (limited to 'ui/guiStatusHandler.h')
-rw-r--r--ui/guiStatusHandler.h22
1 files changed, 13 insertions, 9 deletions
diff --git a/ui/guiStatusHandler.h b/ui/guiStatusHandler.h
index 51a87c98..eb067102 100644
--- a/ui/guiStatusHandler.h
+++ b/ui/guiStatusHandler.h
@@ -2,14 +2,17 @@
#define GUISTATUSHANDLER_H_INCLUDED
#include "../library/statusHandler.h"
-#include <wx/arrstr.h>
+#include <wx/event.h>
+#include "../library/errorLogging.h"
class SyncStatus;
class MainDialog;
class wxWindow;
+class wxCommandEvent;
+
//classes handling sync and compare error as well as status information
-class CompareStatusHandler : public StatusHandler
+class CompareStatusHandler : private wxEvtHandler, public StatusHandler
{
public:
CompareStatusHandler(MainDialog* dlg);
@@ -20,11 +23,12 @@ public:
virtual void updateProcessedData(int objectsProcessed, wxLongLong dataProcessed);
virtual void forceUiRefresh();
- virtual ErrorHandler::Response reportError(const Zstring& text);
- virtual void reportFatalError(const Zstring& errorMessage);
- virtual void reportWarning(const Zstring& warningMessage, bool& dontShowAgain);
+ virtual ErrorHandler::Response reportError(const wxString& text);
+ virtual void reportFatalError(const wxString& errorMessage);
+ virtual void reportWarning(const wxString& warningMessage, bool& warningActive);
private:
+ void OnAbortCompare(wxCommandEvent& event); //handle abort button click
virtual void abortThisProcess();
MainDialog* mainDialog;
@@ -44,16 +48,16 @@ public:
virtual void updateProcessedData(int objectsProcessed, wxLongLong dataProcessed);
virtual void forceUiRefresh();
- virtual ErrorHandler::Response reportError(const Zstring& text);
- virtual void reportFatalError(const Zstring& errorMessage);
- virtual void reportWarning(const Zstring& warningMessage, bool& dontShowAgain);
+ virtual ErrorHandler::Response reportError(const wxString& text);
+ virtual void reportFatalError(const wxString& errorMessage);
+ virtual void reportWarning(const wxString& warningMessage, bool& warningActive);
private:
virtual void abortThisProcess();
SyncStatus* syncStatusFrame;
bool ignoreErrors;
- wxArrayString unhandledErrors; //list of non-resolved errors
+ FreeFileSync::ErrorLogging errorLog;
};
bgstack15