Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
berryIJobManager.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_IJOBMANAGER_H
14 #define _BERRY_IJOBMANAGER_H
15 
16 #include<string>
17 
18 #include <org_blueberry_core_jobs_Export.h>
19 
20 #include "berryJob.h"
21 #include "berryProgressProvider.h"
22 #include "berryIProgressMonitor.h"
24 
25 #include<Poco/Thread.h>
26 
27 namespace berry
28 {
29 
54 struct BERRY_JOBS IJobManager: public Object
55 {
56 
58 
67  static const std::string PROP_USE_DAEMON_THREADS ;
68 
77  virtual void AddJobChangeListener(IJobChangeListener* listener) = 0;
78 
109  virtual IProgressMonitor::Pointer CreateProgressGroup() = 0;
110 
119  virtual bool IsIdle()= 0;
120 
128  virtual bool IsSuspended() = 0;
129 
138  virtual void RemoveJobChangeListener(IJobChangeListener* listener) = 0;
139 
151  virtual void SetProgressProvider(ProgressProvider::Pointer provider) = 0;
152 
153 };
154 
155 }
156 #endif /* IJOBMANAGER */
berry::SmartPointer< Self >
berry::Object
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
berry::IJobChangeListener
Definition: berryIJobChangeListener.h:43
berry::IJobManager::PROP_USE_DAEMON_THREADS
static const std::string PROP_USE_DAEMON_THREADS
Definition: berryIJobManager.h:67
berryJob.h
berry::IJobManager
Definition: berryIJobManager.h:54
berryProgressProvider.h
berryIJobChangeListener.h
berryObjectMacro
#define berryObjectMacro(...)
Definition: berryMacros.h:33
berryIProgressMonitor.h
berry
Definition: QmitkPropertyItemModel.h:24