fw4spl
SSignal.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2017.
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 __GUI_ACTION_SSIGNAL_HPP__
8 #define __GUI_ACTION_SSIGNAL_HPP__
9 
10 #include "gui/config.hpp"
11 
12 #include <fwGui/IActionSrv.hpp>
13 
14 namespace gui
15 {
16 namespace action
17 {
18 
36 class GUI_CLASS_API SSignal : public ::fwGui::IActionSrv
37 {
38 
39 public:
40 
42  typedef ::fwRuntime::ConfigurationElement::sptr ConfigurationType;
43 
45  typedef ::fwCom::Signal< void (bool) > TriggeredSignalType;
46 
50  GUI_API SSignal() noexcept;
51 
55  GUI_API virtual ~SSignal() noexcept;
56 
57 protected:
58 
60  GUI_API void configuring() override;
61 
63  GUI_API virtual void starting() override;
64 
66  GUI_API virtual void stopping() override;
67 
69  GUI_API void updating() override;
70 
72  GUI_API virtual void info(std::ostream& _sstream ) override;
73 
75  SPTR(TriggeredSignalType) m_sigTriggered;
77  SPTR(TriggeredSignalType) m_sigCancelled;
78 };
79 
80 } // namespace action
81 } // namespace gui
82 
83 #endif /* __GUI_ACTION_SSIGNAL_HPP__ */
84 
#define SPTR(_cls_)
::fwCom::Signal< void(bool) > TriggeredSignalType
Type of triggered signal.
Definition: SSignal.hpp:45
The namespace gui contains the basic services to build the application IHM.
Action that sends a signal when it is triggered.
Definition: SSignal.hpp:36
STL namespace.
Defines the service interface managing the menu items.
Definition: IActionSrv.hpp:24
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.