diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:24:35 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:24:35 +0200 |
commit | 460091fb0b2ff114cc741372f15bb43b702ea3b1 (patch) | |
tree | 0562c2eda4c66969c6e6d0910080db9f5b0def3e /ui/batch_status_handler.h | |
parent | 5.15 (diff) | |
download | FreeFileSync-460091fb0b2ff114cc741372f15bb43b702ea3b1.tar.gz FreeFileSync-460091fb0b2ff114cc741372f15bb43b702ea3b1.tar.bz2 FreeFileSync-460091fb0b2ff114cc741372f15bb43b702ea3b1.zip |
5.16
Diffstat (limited to 'ui/batch_status_handler.h')
-rw-r--r-- | ui/batch_status_handler.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/batch_status_handler.h b/ui/batch_status_handler.h index dff2f7b3..7a77785b 100644 --- a/ui/batch_status_handler.h +++ b/ui/batch_status_handler.h @@ -21,6 +21,7 @@ class BatchAbortProcess {}; +//BatchStatusHandler(SyncProgressDialog) will internally process Window messages! disable GUI controls to avoid unexpected callbacks! class BatchStatusHandler : public zen::StatusHandler //throw BatchAbortProcess { public: @@ -37,7 +38,7 @@ public: std::vector<std::wstring>& execFinishedHistory); ~BatchStatusHandler(); - virtual void initNewPhase (int objectsTotal, zen::Int64 dataTotal, Phase phaseID); + virtual void initNewPhase (int objectsTotal, zen::Int64 dataTotal, Phase phaseID); virtual void updateProcessedData(int objectsDelta, zen::Int64 dataDelta); virtual void reportInfo(const std::wstring& text); virtual void forceUiRefresh(); @@ -48,6 +49,7 @@ public: private: virtual void abortThisProcess(); //throw BatchAbortProcess + void onProgressDialogTerminate(); const zen::SwitchToGui& switchBatchToGui_; //functionality to change from batch mode to GUI mode bool showFinalResults; @@ -57,7 +59,7 @@ private: zen::ErrorLog errorLog; //list of non-resolved errors and warnings zen::FfsReturnCode& returnCode_; - SyncProgressDialog syncStatusFrame; //the window managed by SyncStatus has longer lifetime than this handler! + SyncProgressDialog* progressDlg; //managed to have shorter lifetime than this handler! std::unique_ptr<zen::FileOutput> logFile; //optional! const std::wstring jobName_; |