Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
berryILog.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 BERRYILOG_H
18 #define BERRYILOG_H
19 
20 template<class T> class QSharedPointer;
21 class ctkPlugin;
22 
23 namespace berry {
24 
25 template<class T> class SmartPointer;
26 struct ILogListener;
27 struct IStatus;
28 
40 struct ILog
41 {
42  virtual ~ILog();
43 
52  virtual void AddLogListener(ILogListener* listener) = 0;
53 
59  virtual QSharedPointer<ctkPlugin> GetBundle() const = 0;
60 
67  virtual void Log(const SmartPointer<IStatus>& status) = 0;
68 
77  virtual void RemoveLogListener(ILogListener* listener) = 0;
78 };
79 
80 }
81 
82 #endif // BERRYILOG_H
virtual ~ILog()
Definition: berryILog.cpp:21
Implements transparent reference counting.
virtual void RemoveLogListener(ILogListener *listener)=0
virtual QSharedPointer< ctkPlugin > GetBundle() const =0
virtual void AddLogListener(ILogListener *listener)=0
virtual void Log(const SmartPointer< IStatus > &status)=0