Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
berryIProgressMonitor.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef BERRY_IPROGRESS_MONITOR_H
14 #define BERRY_IPROGRESS_MONITOR_H
15 
16 #include <org_blueberry_core_jobs_Export.h>
17 #include "berryObject.h"
18 #include <string>
19 
20 namespace berry
21 {
22 
23 struct IProgressMonitor: public Object
24 {
25 
27 
30  static const int UNKNOWN = -1;
31 
42  virtual void BeginTask(const std::string& name, int totalWork) = 0;
43 
49  virtual void Done() = 0;
50 
58  virtual void InternalWorked(double work) = 0;
59 
69  virtual bool IsCanceled() = 0;
70 
79  virtual void SetCanceled(bool value) = 0;
80 
89  virtual void SetTaskName(const std::string& name) = 0;
90 
97  virtual void SubTask(const std::string& name) = 0;
98 
107  virtual void Worked(int work) = 0;
108 
109 };
110 
111 }
112 
113 #endif /* _BERRY_IPROGRESS_MONITOR_H */
berry::IProgressMonitor::Worked
virtual void Worked(int work)=0
berry::IProgressMonitor::InternalWorked
virtual void InternalWorked(double work)=0
berry::Object
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
berry::IProgressMonitor::IsCanceled
virtual bool IsCanceled()=0
berry::IProgressMonitor::SubTask
virtual void SubTask(const std::string &name)=0
berry::IProgressMonitor::SetCanceled
virtual void SetCanceled(bool value)=0
berry::IProgressMonitor::berryObjectMacro
berryObjectMacro(berry::IProgressMonitor)
berry::IProgressMonitor::UNKNOWN
static const int UNKNOWN
Definition: berryIProgressMonitor.h:30
berry::IProgressMonitor::SetTaskName
virtual void SetTaskName(const std::string &name)=0
berryObject.h
berry::IProgressMonitor
Definition: berryIProgressMonitor.h:23
berry::IProgressMonitor::BeginTask
virtual void BeginTask(const std::string &name, int totalWork)=0
berry::IProgressMonitor::Done
virtual void Done()=0
berry
Definition: QmitkPropertyItemModel.h:24