summaryrefslogtreecommitdiff
path: root/ui/progress_indicator.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:17:51 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:17:51 +0200
commit237aedc590b58c0e69d7dfcac92b5f767b7c004a (patch)
tree83f361a82ba483f2daf83b677e8685cd953812d9 /ui/progress_indicator.h
parent4.5 (diff)
downloadFreeFileSync-237aedc590b58c0e69d7dfcac92b5f767b7c004a.tar.gz
FreeFileSync-237aedc590b58c0e69d7dfcac92b5f767b7c004a.tar.bz2
FreeFileSync-237aedc590b58c0e69d7dfcac92b5f767b7c004a.zip
4.6
Diffstat (limited to 'ui/progress_indicator.h')
-rw-r--r--ui/progress_indicator.h31
1 files changed, 25 insertions, 6 deletions
diff --git a/ui/progress_indicator.h b/ui/progress_indicator.h
index a9e5f64b..db580936 100644
--- a/ui/progress_indicator.h
+++ b/ui/progress_indicator.h
@@ -31,7 +31,8 @@ public:
void switchToCompareBytewise(int totalObjectsToProcess, zen::Int64 totalDataToProcess);
void incScannedObjects_NoUpdate(int number);
- void incProcessedCmpData_NoUpdate(int objectsProcessed, zen::Int64 dataProcessed);
+ void incProcessedCmpData_NoUpdate(int objectsDelta, zen::Int64 dataDelta);
+ void incTotalCmpData_NoUpdate (int objectsDelta, zen::Int64 dataDelta);
void setStatusText_NoUpdate(const wxString& text);
void updateStatusPanelNow();
@@ -58,19 +59,26 @@ public:
SyncStatus(AbortCallback& abortCb,
MainDialog* parentWindow, //may be NULL
SyncStatusID startStatus,
- bool startSilent,
- const wxString& jobName);
+ bool showProgress,
+ const wxString& jobName,
+ const std::wstring& execWhenFinished,
+ std::vector<std::wstring>& execFinishedHistory); //changing parameter!
~SyncStatus();
wxWindow* getAsWindow(); //convenience! don't abuse!
- void resetGauge(int totalObjectsToProcess, zen::Int64 totalDataToProcess);
+ void initNewProcess(SyncStatusID id, int totalObjectsToProcess, zen::Int64 totalDataToProcess);
+
void incScannedObjects_NoUpdate(int number);
- void incProgressIndicator_NoUpdate(int objectsProcessed, zen::Int64 dataProcessed);
+ void incProcessedData_NoUpdate(int objectsDelta, zen::Int64 dataDelta);
+ void incTotalData_NoUpdate (int objectsDelta, zen::Int64 dataDelta);
void setStatusText_NoUpdate(const wxString& text);
void updateStatusDialogNow();
- void setCurrentStatus(SyncStatusID id);
+ std::wstring getExecWhenFinishedCommand() const; //final value (after possible user modification)
+
+ void stopTimer(); //halt all internal counters!
+ void resumeTimer(); //
//essential to call one of these two methods in StatusUpdater derived class destructor at the LATEST(!)
//to prevent access to callback to updater (e.g. request abort)
@@ -82,4 +90,15 @@ private:
SyncStatusImpl* const pimpl;
};
+
+class PauseTimers
+{
+public:
+ PauseTimers(SyncStatus& ss) : ss_(ss) { ss_.stopTimer(); }
+ ~PauseTimers() { ss_.resumeTimer(); }
+private:
+ SyncStatus& ss_;
+};
+
+
#endif // PROGRESSINDICATOR_H_INCLUDED
bgstack15