summaryrefslogtreecommitdiff
path: root/ui/gui_status_handler.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:11:56 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:11:56 +0200
commit98ecf620f7de377dc8ae9ad7fbd1e3b24477e138 (patch)
treefaadc6d8822c20cd3bc6f50b2a98e6c580585949 /ui/gui_status_handler.h
parent3.16 (diff)
downloadFreeFileSync-98ecf620f7de377dc8ae9ad7fbd1e3b24477e138.tar.gz
FreeFileSync-98ecf620f7de377dc8ae9ad7fbd1e3b24477e138.tar.bz2
FreeFileSync-98ecf620f7de377dc8ae9ad7fbd1e3b24477e138.zip
3.17
Diffstat (limited to 'ui/gui_status_handler.h')
-rw-r--r--ui/gui_status_handler.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/ui/gui_status_handler.h b/ui/gui_status_handler.h
index c0e75a8d..bd5b061a 100644
--- a/ui/gui_status_handler.h
+++ b/ui/gui_status_handler.h
@@ -11,10 +11,10 @@
#include <wx/event.h>
#include "../library/error_log.h"
#include "progress_indicator.h"
+#include "../library/process_xml.h"
+#include "main_dlg.h"
class SyncStatus;
-class MainDialog;
-class wxWindow;
class wxCommandEvent;
@@ -22,11 +22,11 @@ class wxCommandEvent;
class CompareStatusHandler : private wxEvtHandler, public StatusHandler
{
public:
- CompareStatusHandler(MainDialog* dlg);
+ CompareStatusHandler(MainDialog& dlg);
~CompareStatusHandler();
- virtual void initNewProcess(int objectsTotal, wxLongLong dataTotal, Process processID);
- virtual void updateProcessedData(int objectsProcessed, wxLongLong dataProcessed);
+ virtual void initNewProcess(int objectsTotal, zen::Int64 dataTotal, Process processID);
+ virtual void updateProcessedData(int objectsProcessed, zen::Int64 dataProcessed);
virtual void reportInfo(const Zstring& text);
virtual void forceUiRefresh();
@@ -39,7 +39,7 @@ private:
void OnAbortCompare(wxCommandEvent& event); //handle abort button click
virtual void abortThisProcess();
- MainDialog* mainDialog;
+ MainDialog& mainDlg;
bool ignoreErrors;
Process currentProcess;
};
@@ -48,11 +48,11 @@ private:
class SyncStatusHandler : public StatusHandler
{
public:
- SyncStatusHandler(MainDialog* parentDlg, bool ignoreAllErrors, const wxString& jobName);
+ SyncStatusHandler(MainDialog* parentDlg, xmlAccess::OnGuiError handleError, const wxString& jobName);
~SyncStatusHandler();
- virtual void initNewProcess(int objectsTotal, wxLongLong dataTotal, Process processID);
- virtual void updateProcessedData(int objectsProcessed, wxLongLong dataProcessed);
+ virtual void initNewProcess(int objectsTotal, zen::Int64 dataTotal, Process processID);
+ virtual void updateProcessedData(int objectsProcessed, zen::Int64 dataProcessed);
virtual void reportInfo(const Zstring& text);
virtual void forceUiRefresh();
@@ -63,10 +63,10 @@ public:
private:
virtual void abortThisProcess();
- MainDialog* mainDialog; //optional
+ MainDialog* parentDlg_;
SyncStatus syncStatusFrame; //the window managed by SyncStatus has longer lifetime than this handler!
- bool ignoreErrors;
- ffs3::ErrorLogging errorLog;
+ xmlAccess::OnGuiError handleError_;
+ zen::ErrorLogging errorLog;
};
bgstack15