fw4spl
ILoggerDialog.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2016.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #ifndef __FWGUI_DIALOG_ILOGGERDIALOG_HPP__
8 #define __FWGUI_DIALOG_ILOGGERDIALOG_HPP__
9 
10 #include <string>
11 #include <vector>
12 
13 #include <fwGui/GuiBaseObject.hpp>
14 #include <fwLog/Logger.hpp>
15 
16 #include "fwGui/config.hpp"
17 
18 namespace fwGui
19 {
20 namespace dialog
21 {
22 
26 class FWGUI_CLASS_API ILoggerDialog : public ::fwGui::GuiBaseObject
27 {
28 
29 public:
30 
32 
33  typedef std::string FactoryRegistryKeyType;
34 
36  FWGUI_API static const FactoryRegistryKeyType REGISTRY_KEY;
37 
41  FWGUI_API ILoggerDialog();
42 
44  FWGUI_API virtual ~ILoggerDialog();
45 
50  FWGUI_API virtual void setTitle(const std::string& title) = 0;
51 
56  FWGUI_API virtual void setMessage(const std::string& message) = 0;
57 
62  FWGUI_API virtual void setLogger(const ::fwLog::Logger::sptr& logger) = 0;
63 
67  FWGUI_API virtual bool show() = 0;
68 };
69 
70 } //namespace dialog
71 } //namespace fwGui
72 
73 #endif /*__FWGUI_DIALOG_ILOGGERDIALOG_HPP__*/
#define fwCoreNonInstanciableClassDefinitionsMacro(_classinfo_)
Generate common code for Non Instanciable classes (Interfaces, Abstract classes, ...)
ILoggerDialog is used to display a dialog message and a set of logs.
The namespace fwGui contains the base interface for IHM services.
Definition: SJobBar.hpp:23
static FWGUI_API const FactoryRegistryKeyType REGISTRY_KEY
This unique key should be used for all factory for specific Selector(qt,wx,...)
Base class for all fwGui&#39;s classes.