Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryIPartService.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 BERRYIPARTSERVICE_H_
18 #define BERRYIPARTSERVICE_H_
19 
21 
22 #include "berryIWorkbenchPart.h"
24 #include "berryIPartListener.h"
25 
26 namespace berry {
27 
40 
41  virtual ~IPartService();
42 
55  virtual void AddPartListener(IPartListener* listener) = 0;
56 
62  virtual IWorkbenchPart::Pointer GetActivePart() = 0;
63 
70  virtual IWorkbenchPartReference::Pointer GetActivePartReference() = 0;
71 
78  virtual void RemovePartListener(IPartListener* listener) = 0;
79 
80 };
81 
82 } // namespace berry
83 
84 Q_DECLARE_INTERFACE(berry::IPartService, "org.blueberry.ui.IPartService")
85 
86 #endif /*BERRYIPARTSERVICE_H_*/
#define BERRY_UI_QT