summaryrefslogtreecommitdiff
path: root/library/statusHandler.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 16:55:14 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 16:55:14 +0200
commit222024f07e505617aec93dc4837be2be27d18856 (patch)
treec40f400baa6cf1d047205359f80c2b8f74a2b507 /library/statusHandler.h
parent1.12 (diff)
downloadFreeFileSync-222024f07e505617aec93dc4837be2be27d18856.tar.gz
FreeFileSync-222024f07e505617aec93dc4837be2be27d18856.tar.bz2
FreeFileSync-222024f07e505617aec93dc4837be2be27d18856.zip
1.13
Diffstat (limited to 'library/statusHandler.h')
-rw-r--r--library/statusHandler.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/library/statusHandler.h b/library/statusHandler.h
index ad4cb3a0..70f8c2d8 100644
--- a/library/statusHandler.h
+++ b/library/statusHandler.h
@@ -21,8 +21,8 @@ public:
enum Response
{
- CONTINUE_NEXT = -1,
- RETRY = -2
+ CONTINUE_NEXT = 10,
+ RETRY
};
virtual Response reportError(const wxString& text) = 0;
};
@@ -32,7 +32,7 @@ class StatusHandler
{
public:
StatusHandler() :
- abortionRequested(false) {}
+ abortRequested(false) {}
virtual ~StatusHandler() {}
//identifiers of different processes
@@ -47,7 +47,7 @@ public:
//these methods have to be implemented in the derived classes to handle error and status information
virtual void updateStatusText(const wxString& text) = 0;
virtual void initNewProcess(int objectsTotal, double dataTotal, Process processID) = 0; //informs about the total amount of data that will be processed from now on
- virtual void updateProcessedData(int objectsProcessed, double dataProcessed) = 0; //called periodically after data was processed
+ virtual void updateProcessedData(int objectsProcessed, double dataProcessed) = 0; //called periodically after data was processed
virtual ErrorHandler::Response reportError(const wxString& text) = 0;
//this method is triggered repeatedly by requestUiRefresh() and can be used to refresh the ui by dispatching pending events
@@ -57,19 +57,19 @@ public:
if (updateUiIsAllowed()) //test if specific time span between ui updates is over
forceUiRefresh();
- if (abortionRequested && !asyncProcessActive)
+ if (abortRequested && !asyncProcessActive)
abortThisProcess(); //abort can be triggered by requestAbortion()
}
void requestAbortion() //opportunity to abort must be implemented in a frequently executed method like requestUiRefresh()
{ //currently used by the UI status information screen, when button "Abort is pressed"
- abortionRequested = true;
+ abortRequested = true;
}
protected:
virtual void abortThisProcess() = 0;
- bool abortionRequested;
+ bool abortRequested;
};
bgstack15