Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryIMenuService.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 
18 #ifndef BERRYIMENUSERVICE_H_
19 #define BERRYIMENUSERVICE_H_
20 
22 
23 namespace berry {
24 
25 class AbstractContributionFactory;
26 class ContributionManager;
27 struct IEvaluationContext;
28 
49 {
50 
52 
53 
67  virtual void AddContributionFactory(const SmartPointer<AbstractContributionFactory>& factory) = 0;
68 
78 
93  const QString& location) = 0;
94 
105  virtual void ReleaseContributions(ContributionManager* mgr) = 0;
106 
116 };
117 
118 }
119 
120 Q_DECLARE_INTERFACE(berry::IMenuService, "org.blueberry.ui.IMenuService")
121 
122 #endif /* BERRYIMENUSERVICE_H_ */
virtual void ReleaseContributions(ContributionManager *mgr)=0
virtual void PopulateContributionManager(ContributionManager *mgr, const QString &location)=0
Implements transparent reference counting.
virtual void RemoveContributionFactory(const SmartPointer< AbstractContributionFactory > &factory)=0
berryObjectMacro(berry::IMenuService) virtual void AddContributionFactory(const SmartPointer< AbstractContributionFactory > &factory)=0
virtual SmartPointer< IEvaluationContext > GetCurrentState() const =0