fw4spl
SExportSeries.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 __UIMEDDATAQT_ACTION_SEXPORTSERIES_HPP__
8 #define __UIMEDDATAQT_ACTION_SEXPORTSERIES_HPP__
9 
10 #include "uiMedDataQt/config.hpp"
11 
12 #include <fwCom/Slots.hpp>
13 
14 #include <fwGui/IActionSrv.hpp>
15 
16 #include <fwMedData/Series.hpp>
17 #include <fwMedData/SeriesDB.hpp>
18 
19 namespace uiMedDataQt
20 {
21 namespace action
22 {
23 
48 class UIMEDDATAQT_CLASS_API SExportSeries : public ::fwGui::IActionSrv
49 {
50 public:
52 
54  UIMEDDATAQT_API SExportSeries();
55 
57  UIMEDDATAQT_API virtual ~SExportSeries() noexcept;
58 
66  UIMEDDATAQT_API virtual KeyConnectionsMap getAutoConnections() const override;
67 
68 protected:
69 
71  virtual void configuring() override;
72 
74  virtual void starting() override;
75 
77  virtual void stopping() override;
78 
80  virtual void updating() override;
81 
82  virtual void info( std::ostream& _sstream ) override;
83 
84 private:
85 
90  static const ::fwCom::Slots::SlotKeyType s_CHECK_ADDED_SERIES_SLOT;
91  static const ::fwCom::Slots::SlotKeyType s_CHECK_REMOVED_SERIES_SLOT;
92 
94  void checkAddedSeries(::fwMedData::SeriesDB::ContainerType addedSeries);
95 
97  void checkRemovedSeries(::fwMedData::SeriesDB::ContainerType removedSeries);
98 
103  ::fwMedData::Series::sptr getSeries();
105 
108  std::string m_seriesId;
109 };
110 } // namespace action
111 } // namespace uiMedDataQt
112 
113 #endif // __UIMEDDATAQT_ACTION_SEXPORTSERIES_HPP__
114 
The namespace uiMedDataQt contains editors for medical data.
This class is a helper to define the connections of a service and its data.
Definition: IService.hpp:454
Namespace containing medical data.
Namespace containing fw4spl communication tools.
Definition: DumpEditor.hpp:30
STL namespace.
This action allows to export the series specified in config to the SeriesDB. The export is performed ...
Defines the service interface managing the menu items.
Definition: IActionSrv.hpp:24
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.