#include <file.hpp>
Public Types | |
enum | Status { Status_Idle, Status_Running, Status_Finished, Status_Failed, Status_Canceled } |
Public Member Functions | |
virtual bool | isRunning () const =0 |
virtual void | notifyCanceled ()=0 |
virtual void | notifyFailed ()=0 |
virtual void | notifyFinished ()=0 |
virtual void | notifyProgressed (double newProgress)=0 |
virtual void | notifyRunning ()=0 |
QI_API_DEPRECATED_MSG (Use 'notifyCanceled' instead) virtual void _notifyCanceled()=0 | |
QI_API_DEPRECATED_MSG (Use 'notifyFailed' instead) virtual void _notifyFailed()=0 | |
QI_API_DEPRECATED_MSG (Use 'notifyFinished' instead) virtual void _notifyFinished()=0 | |
QI_API_DEPRECATED_MSG (Use 'notifyProgressed' instead) virtual void _notifyProgressed(double new Progress)=0 | |
QI_API_DEPRECATED_MSG (Use 'notifyRunning' instead) virtual void _notifyRunning()=0 | |
QI_API_DEPRECATED_MSG (Use 'reset' instead) virtual void _reset()=0 | |
virtual void | reset ()=0 |
virtual Future< void > | waitForFinished ()=0 |
virtual | ~ProgressNotifier ()=default |
Public Attributes | |
Property< double > | progress |
Property< Status > | status |
Protected Member Functions | |
ProgressNotifier ()=default | |
Provide information about the state of a potentially long remote or async operation. @includename{qicore/file.hpp}
Describe the status of an associated operation.
|
protecteddefault |
|
virtualdefault |
|
pure virtual |
Implemented in qi::ProgressNotifierImpl, and qi::ProgressNotifierProxy.
|
pure virtual |
Notify the observers that the operation has been canceled by the user.
Implemented in qi::ProgressNotifierImpl, and qi::ProgressNotifierProxy.
|
pure virtual |
Notify the observers that the operation has failed.
Implemented in qi::ProgressNotifierImpl, and qi::ProgressNotifierProxy.
|
pure virtual |
Notify the observers that the operation has successfully ended.
Implemented in qi::ProgressNotifierImpl, and qi::ProgressNotifierProxy.
|
pure virtual |
Notify the observers that the operation progressed.
newProgress | New value representing the total progress of the operation. By default, uses a range from 0.0 (no work has been done yet) to 1.0 (all work is done). The operation implementation is free to use another range if necessary but should clarify the meaning of this value in its documentation. |
Implemented in qi::ProgressNotifierImpl, and qi::ProgressNotifierProxy.
|
pure virtual |
Notify the observers that the operation associated with this notifier is now running.
Implemented in qi::ProgressNotifierImpl, and qi::ProgressNotifierProxy.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
newpure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Reset the status of the algorithm to the idle state with no progress.
Implemented in qi::ProgressNotifierImpl, and qi::ProgressNotifierProxy.
|
pure virtual |
Implemented in qi::ProgressNotifierImpl, and qi::ProgressNotifierProxy.
Property<double> qi::ProgressNotifier::progress |
Progress state of the operation associated with this notifier. By default you can assume a normalized value ranging between 0.0 (no work is done) to 1.0 (all work is done). The semantic of this value is defined by the operation implementation and could be different from the default but should then be documented.
Property<Status> qi::ProgressNotifier::status |
Current status of the operation associated to this notifier.