Medical Imaging Interaction Toolkit
2023.04.00
Medical Imaging Interaction Toolkit
|
#include <berryProgressProvider.h>
Public Member Functions | |
berryObjectMacro (ProgressProvider) | |
virtual IProgressMonitor::Pointer | CreateMonitor (Job::Pointer job)=0 |
virtual IProgressMonitor::Pointer | CreateProgressGroup () |
virtual IProgressMonitor::Pointer | CreateMonitor (Job::Pointer sptr_job, IProgressMonitor::Pointer sptr_group, int ticks) |
virtual IProgressMonitor::Pointer | GetDefaultMonitor () |
Public Member Functions inherited from berry::Object | |
virtual QString | GetClassName () const |
virtual Reflection::TypeInfo | GetTypeInfo () const |
virtual QList< Reflection::TypeInfo > | GetSuperclasses () const |
virtual void | Delete () |
QDebug | Print (QDebug os, Indent Indent=0) const |
virtual QString | ToString () const |
virtual uint | HashCode () const |
virtual bool | operator< (const Object *) const |
void | Register () const |
void | UnRegister (bool del=true) const |
int | GetReferenceCount () const |
void | SetReferenceCount (int) |
void | AddDestroyListener (const MessageAbstractDelegate<> &delegate) const |
void | RemoveDestroyListener (const MessageAbstractDelegate<> &delegate) const |
virtual bool | operator== (const Object *) const |
Additional Inherited Members | |
Public Types inherited from berry::Object | |
typedef Object | Self |
typedef berry::SmartPointer< Self > | Pointer |
typedef berry::SmartPointer< const Self > | ConstPointer |
typedef berry::WeakPointer< Self > | WeakPtr |
typedef berry::WeakPointer< const Self > | ConstWeakPtr |
Static Public Member Functions inherited from berry::Object | |
static const char * | GetStaticClassName () |
static Reflection::TypeInfo | GetStaticTypeInfo () |
static QList< Reflection::TypeInfo > | GetStaticSuperclasses () |
Protected Member Functions inherited from berry::Object | |
Object () | |
virtual | ~Object () |
virtual QDebug | PrintSelf (QDebug os, Indent indent) const |
virtual QDebug | PrintHeader (QDebug os, Indent indent) const |
virtual QDebug | PrintTrailer (QDebug os, Indent indent) const |
Protected Attributes inherited from berry::Object | |
QAtomicInt | m_ReferenceCount |
QMutex | m_ReferenceCountLock |
The progress provider supplies the job manager with progress monitors for running jobs. There can only be one progress provider at any given time.
This class is intended for use by the currently executing Eclipse application. Plug-ins outside the currently running application should not reference or subclass this class.
Definition at line 34 of file berryProgressProvider.h.
berry::ProgressProvider::berryObjectMacro | ( | ProgressProvider | ) |
|
pure virtual |
Provides a new progress monitor instance to be used by the given job. This method is called prior to running any job that does not belong to a progress group. The returned monitor will be supplied to the job's Run
method.
job | the job to create a progress monitor for |
null
if no progress monitoring is needed.
|
virtual |
Returns a progress monitor that can be used by a running job to report progress in the context of a progress group. This method implements Job.setProgressGroup
. One of the two createMonitor
methods will be invoked prior to each execution of a job, depending on whether a progress group was specified for the job.
The provided monitor must be a monitor returned by the method createProgressGroup
. This method is responsible for asserting this and throwing an appropriate runtime exception if an invalid monitor is provided.
This default implementation returns a new SubProgressMonitor
. Subclasses may override.
sptr_job | the job to create a progress monitor for |
sptr_group | the progress monitor group that this job belongs to |
ticks | the number of ticks of work for the progress monitor |
null
if no progress monitoring is needed.
|
virtual |
Returns a progress monitor that can be used to provide aggregated progress feedback on a set of running jobs. This method implements IJobManager.createProgressGroup
, and must obey all rules specified in that contract.
This default implementation returns a new NullProgressMonitor
Subclasses may override.
|
virtual |
Returns a progress monitor to use when none has been provided by the client running the job.
This default implementation returns a new NullProgressMonitor
Subclasses may override.