Medical Imaging Interaction Toolkit  2023.12.99-0ad8945f
Medical Imaging Interaction Toolkit
berryILog.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 BERRYILOG_H
14 #define BERRYILOG_H
15 
16 template<class T> class QSharedPointer;
17 class ctkPlugin;
18 
19 namespace berry {
20 
21 template<class T> class SmartPointer;
22 struct ILogListener;
23 struct IStatus;
24 
36 struct ILog
37 {
38  virtual ~ILog();
39 
48  virtual void AddLogListener(ILogListener* listener) = 0;
49 
55  virtual QSharedPointer<ctkPlugin> GetBundle() const = 0;
56 
63  virtual void Log(const SmartPointer<IStatus>& status) = 0;
64 
73  virtual void RemoveLogListener(ILogListener* listener) = 0;
74 };
75 
76 }
77 
78 #endif // BERRYILOG_H
berry::ILog::~ILog
virtual ~ILog()
berry::ILog::AddLogListener
virtual void AddLogListener(ILogListener *listener)=0
berry::ILog::GetBundle
virtual QSharedPointer< ctkPlugin > GetBundle() const =0
berry::SmartPointer
Implements transparent reference counting.
Definition: berryICommandCategoryListener.h:21
QSharedPointer
Definition: berryILog.h:16
berry::ILog
Definition: berryILog.h:36
berry::ILog::Log
virtual void Log(const SmartPointer< IStatus > &status)=0
berry::ILog::RemoveLogListener
virtual void RemoveLogListener(ILogListener *listener)=0
berry
Definition: QmitkPropertyItemModel.h:24