Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
berryIMenuService.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 BERRYIMENUSERVICE_H_
15 #define BERRYIMENUSERVICE_H_
16 
18 
19 namespace berry {
20 
21 class AbstractContributionFactory;
22 class ContributionManager;
23 struct IEvaluationContext;
24 
45 {
46 
48 
49 
63  virtual void AddContributionFactory(const SmartPointer<AbstractContributionFactory>& factory) = 0;
64 
74 
89  const QString& location) = 0;
90 
101  virtual void ReleaseContributions(ContributionManager* mgr) = 0;
102 
112 };
113 
114 }
115 
116 Q_DECLARE_INTERFACE(berry::IMenuService, "org.blueberry.ui.IMenuService")
117 
118 #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