fw4spl
SConfigLauncher.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2018.
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 #pragma once
8 
9 #include "gui/config.hpp"
10 
11 #include <fwCom/Signal.hpp>
12 #include <fwCom/Signals.hpp>
13 
14 #include <fwGui/IActionSrv.hpp>
15 
16 #include <fwRuntime/ConfigurationElement.hpp>
17 #include <fwRuntime/EConfigurationElement.hpp>
18 
19 #include <fwServices/helper/ConfigLauncher.hpp>
20 
21 #include <fwTools/Failed.hpp>
22 
23 namespace gui
24 {
25 namespace action
26 {
27 
62 class GUI_CLASS_API SConfigLauncher : public ::fwGui::IActionSrv
63 {
64 
65 public:
66 
68 
70  GUI_API SConfigLauncher() noexcept;
71 
73  GUI_API virtual ~SConfigLauncher() noexcept;
74 
76  GUI_API virtual void setIsActive(bool isActive) override;
77 
78  // Launched signal key
79  GUI_API static const ::fwCom::Signals::SignalKeyType s_LAUNCHED_SIG;
80 
81 protected:
82 
86  typedef ::fwCom::Signal< void () > LaunchedSignalType;
87  LaunchedSignalType::sptr m_sigLaunched;
90  virtual void starting() override;
92 
94  virtual void stopping() override;
95 
99  virtual void updating() override;
100 
120  virtual void configuring() override;
121 
126  void stopConfig();
132  ::fwServices::helper::ConfigLauncher::uptr m_configLauncher;
133  std::string m_proxychannel;
134 };
135 
136 } // action
137 } // gui
Namespace containing fw4spl communication tools.
Definition: DumpEditor.hpp:30
The namespace gui contains the basic services to build the application IHM.
STL namespace.
Namespace fwServices is dedicated to (mimic) the dynamic affectation of methods to (pure data) object...
This action starts/stops a template configuration.
Defines the service interface managing the menu items.
Definition: IActionSrv.hpp:24
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.