fw4spl
IApplication.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2015.
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_IAPPLICATION_HPP__
8 #define __FWGUI_IAPPLICATION_HPP__
9 
10 #include "fwGui/GuiBaseObject.hpp"
11 #include "fwGui/config.hpp"
12 
13 namespace fwGui
14 {
15 
23 class FWGUI_CLASS_API IApplication : public ::fwGui::GuiBaseObject
24 {
25 public:
27 
28 
29  FWGUI_API IApplication();
31  FWGUI_API virtual ~IApplication();
32 
34  FWGUI_API virtual void exit( int returncode ) = 0;
35 
37  void setConfirm(bool confirm)
38  {
39  m_confirm = confirm;
40  }
41 
42  typedef std::string FactoryRegistryKeyType;
43  FWGUI_API static const FactoryRegistryKeyType REGISTRY_KEY;
44 
45 protected:
47  bool m_confirm;
48 };
49 
50 } // namespace fwGui
51 
52 #endif /*__FWGUI_IAPPLICATION_HPP__*/
53 
#define fwCoreNonInstanciableClassDefinitionsMacro(_classinfo_)
Generate common code for Non Instanciable classes (Interfaces, Abstract classes, ...)
The namespace fwGui contains the base interface for IHM services.
Definition: SJobBar.hpp:23
Base class for all fwGui's classes.
bool m_confirm
Asks confirmation before exiting application.
Defines the application manipulation API.