fw4spl
LaunchBrowserActionService.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 __UIGENERICQT_ACTION_LAUNCHBROWSERACTIONSERVICE_HPP__
8 #define __UIGENERICQT_ACTION_LAUNCHBROWSERACTIONSERVICE_HPP__
9 
10 #include "uiGenericQt/config.hpp"
11 
12 #include <fwGui/IActionSrv.hpp>
13 
14 #include <fwTools/Failed.hpp>
15 
16 namespace uiGenericQt
17 {
18 
19 namespace action
20 {
21 
25 class UIGENERICQT_CLASS_API LaunchBrowserActionService : public ::fwGui::IActionSrv
26 {
27 
28 public:
29 
31 
33  UIGENERICQT_API LaunchBrowserActionService() noexcept;
34 
36  UIGENERICQT_API virtual ~LaunchBrowserActionService() noexcept;
37 
38 protected:
39 
48  void configuring() override;
49 
51  void starting() override;
52 
54  void updating() override;
55 
57  void stopping() override;
58 
59  void info( std::ostream& _sstream ) override;
60 
61  typedef ::fwRuntime::ConfigurationElement::sptr Configuration;
62 
63 private:
64 
65  std::string m_url;
66 
67 };
68 
69 } // action
70 
71 } // uiGenericQt
72 
73 #endif /*__UIGENERICQT_ACTION_LAUNCHBROWSERACTIONSERVICE_HPP__*/
74 
This action launch a browser on the url given in configuration.
The namespace uiGenericQt contains actions to show help, acknowledgments and about frame...
STL namespace.
Defines the service interface managing the menu items.
Definition: IActionSrv.hpp:24
The namespace fwRuntime contains classes to manage bundle, configuration element, extension point in ...
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.