Deepsolver
|
The abstract interface for continuous process interruption. More...
Public Member Functions | |
AbstractOperationContinueRequest () | |
The default constructor. | |
virtual bool | onContinueOperationRequest () const =0 |
Confirms a process should be continued or signals it must be cancelled. | |
virtual | ~AbstractOperationContinueRequest () |
The destructor. |
Various continuous processes (such as downloading) ask external object to be sure user does not want to interrupt the task being performed. This class declares the interface for objects to provide such information. It is called multiple times during the work. Any negative answer causes immediate process cancelling.
virtual bool AbstractOperationContinueRequest::onContinueOperationRequest | ( | ) | const [pure virtual] |
Implement this method for proper interruption of continuous tasks.
Implemented in AlwaysTrueContinueRequest.