Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryIProgressMonitor.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef BERRY_IPROGRESS_MONITOR_H
18 #define BERRY_IPROGRESS_MONITOR_H
19 
20 #include <org_blueberry_core_jobs_Export.h>
21 #include "berryObject.h"
22 #include <string>
23 
24 namespace berry
25 {
26 
27 struct IProgressMonitor: public Object
28 {
29 
31 
32 
34  static const int UNKNOWN = -1;
35 
46  virtual void BeginTask(const std::string& name, int totalWork) = 0;
47 
53  virtual void Done() = 0;
54 
62  virtual void InternalWorked(double work) = 0;
63 
73  virtual bool IsCanceled() = 0;
74 
83  virtual void SetCanceled(bool value) = 0;
84 
93  virtual void SetTaskName(const std::string& name) = 0;
94 
101  virtual void SubTask(const std::string& name) = 0;
102 
111  virtual void Worked(int work) = 0;
112 
113 };
114 
115 }
116 
117 #endif /* _BERRY_IPROGRESS_MONITOR_H */
virtual bool IsCanceled()=0
virtual void SetCanceled(bool value)=0
virtual void InternalWorked(double work)=0
virtual void SetTaskName(const std::string &name)=0
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
virtual void Done()=0
virtual void BeginTask(const std::string &name, int totalWork)=0
virtual void Worked(int work)=0
virtual void SubTask(const std::string &name)=0
berryObjectMacro(berry::IProgressMonitor) static const int UNKNOWN