summaryrefslogtreecommitdiff
path: root/ui/gui_status_handler.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:19:49 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:19:49 +0200
commitc8e0e909b4a8d18319fc65434a10dc446434817c (patch)
treeeee91e7d2ce229dd043811eae8f1e2bd78061916 /ui/gui_status_handler.h
parent5.2 (diff)
downloadFreeFileSync-c8e0e909b4a8d18319fc65434a10dc446434817c.tar.gz
FreeFileSync-c8e0e909b4a8d18319fc65434a10dc446434817c.tar.bz2
FreeFileSync-c8e0e909b4a8d18319fc65434a10dc446434817c.zip
5.3
Diffstat (limited to 'ui/gui_status_handler.h')
-rw-r--r--ui/gui_status_handler.h19
1 files changed, 6 insertions, 13 deletions
diff --git a/ui/gui_status_handler.h b/ui/gui_status_handler.h
index 4e289648..ebc59473 100644
--- a/ui/gui_status_handler.h
+++ b/ui/gui_status_handler.h
@@ -21,17 +21,13 @@ class wxCommandEvent;
class GuiAbortProcess {};
//classes handling sync and compare error as well as status information
-class CompareStatusHandler : private wxEvtHandler, public StatusHandler
+class CompareStatusHandler : private wxEvtHandler, public zen::StatusHandler
{
public:
CompareStatusHandler(MainDialog& dlg);
~CompareStatusHandler();
- virtual void initNewProcess (int objectsTotal, zen::Int64 dataTotal, Process processID);
- virtual void updateProcessedData(int objectsDelta, zen::Int64 dataDelta);
- virtual void updateTotalData (int objectsDelta, zen::Int64 dataDelta);
- virtual void reportStatus(const std::wstring& text);
- virtual void reportInfo(const std::wstring& text);
+ virtual void initNewPhase (int objectsTotal, zen::Int64 dataTotal, Phase phaseID);
virtual void forceUiRefresh();
virtual Response reportError(const std::wstring& text);
@@ -41,15 +37,14 @@ public:
private:
void OnKeyPressed(wxKeyEvent& event);
void OnAbortCompare(wxCommandEvent& event); //handle abort button click
- virtual void abortThisProcess();
+ virtual void abortThisProcess(); //throw GuiAbortProcess
MainDialog& mainDlg;
bool ignoreErrors;
- Process currentProcess;
};
-class SyncStatusHandler : public StatusHandler
+class SyncStatusHandler : public zen::StatusHandler
{
public:
SyncStatusHandler(MainDialog* parentDlg,
@@ -59,10 +54,8 @@ public:
std::vector<std::wstring>& execFinishedHistory);
~SyncStatusHandler();
- virtual void initNewProcess (int objectsTotal, zen::Int64 dataTotal, Process processID);
+ virtual void initNewPhase (int objectsTotal, zen::Int64 dataTotal, Phase phaseID);
virtual void updateProcessedData(int objectsDelta, zen::Int64 dataDelta);
- virtual void updateTotalData (int objectsDelta, zen::Int64 dataDelta);
- virtual void reportStatus(const std::wstring& text);
virtual void reportInfo(const std::wstring& text);
virtual void forceUiRefresh();
@@ -71,7 +64,7 @@ public:
virtual void reportWarning(const std::wstring& warningMessage, bool& warningActive);
private:
- virtual void abortThisProcess();
+ virtual void abortThisProcess(); //throw GuiAbortProcess
MainDialog* parentDlg_;
SyncStatus syncStatusFrame; //the window managed by SyncStatus has longer lifetime than this handler!
bgstack15