Medical Imaging Interaction Toolkit  2023.12.99-1652ac8d
Medical Imaging Interaction Toolkit
berryIEvaluationService.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 
14 #ifndef BERRYIEVALUATIONSERVICE_H
15 #define BERRYIEVALUATIONSERVICE_H
16 
18 
20 
21 namespace berry {
22 
23 struct IEvaluationContext;
24 struct IEvaluationReference;
25 struct IPropertyChangeListener;
26 
27 class Expression;
28 
77 {
79 
83  static const QString RESULT; // = "org.blueberry.ui.services.result";
84 
88  static const QString PROP_NOTIFYING; // = "org.blueberry.ui.services.notifying";
89 
105  virtual void AddServiceListener(IPropertyChangeListener* listener) = 0;
106 
114  virtual void RemoveServiceListener(IPropertyChangeListener* listener) = 0;
115 
134  virtual SmartPointer<IEvaluationReference> AddEvaluationListener(
135  const SmartPointer<Expression>& expression,
136  IPropertyChangeListener* listener,
137  const QString& property) = 0;
138 
156  virtual void AddEvaluationReference(const SmartPointer<IEvaluationReference>& ref) = 0;
157 
164  virtual void RemoveEvaluationListener(const SmartPointer<IEvaluationReference>& ref) = 0;
165 
177  virtual SmartPointer<IEvaluationContext> GetCurrentState() const = 0;
178 
200  virtual void RequestEvaluation(const QString& propertyName) = 0;
201 };
202 
203 }
204 
205 Q_DECLARE_INTERFACE(berry::IEvaluationService, "org.blueberry.ui.IEvaluationService")
206 
207 #endif // BERRYIEVALUATIONSERVICE_H
berry::IPropertyChangeListener
Definition: berryIPropertyChangeListener.h:42
org_blueberry_ui_qt_Export.h
berry::IServiceWithSources
Definition: berryIServiceWithSources.h:34
berry::SmartPointer
Implements transparent reference counting.
Definition: berryICommandCategoryListener.h:21
berry::IEvaluationService::PROP_NOTIFYING
static const QString PROP_NOTIFYING
Definition: berryIEvaluationService.h:88
berryIServiceWithSources.h
berry::IEvaluationService::RESULT
static const QString RESULT
Definition: berryIEvaluationService.h:83
BERRY_UI_QT
#define BERRY_UI_QT
Definition: org_blueberry_ui_qt_Export.h:26
berry::IEvaluationService
Definition: berryIEvaluationService.h:76
berryObjectMacro
#define berryObjectMacro(...)
Definition: berryMacros.h:31
berry
Definition: QmitkPropertyItemModel.h:24