OpenWalnut  1.5.0dev
WModuleConnectorEvent.h
1 //---------------------------------------------------------------------------
2 //
3 // Project: OpenWalnut ( http://www.openwalnut.org )
4 //
5 // Copyright 2009 OpenWalnut Community, BSV@Uni-Leipzig and CNCF@MPI-CBS
6 // For more information see http://www.openwalnut.org/copying
7 //
8 // This file is part of OpenWalnut.
9 //
10 // OpenWalnut is free software: you can redistribute it and/or modify
11 // it under the terms of the GNU Lesser General Public License as published by
12 // the Free Software Foundation, either version 3 of the License, or
13 // (at your option) any later version.
14 //
15 // OpenWalnut is distributed in the hope that it will be useful,
16 // but WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 // GNU Lesser General Public License for more details.
19 //
20 // You should have received a copy of the GNU Lesser General Public License
21 // along with OpenWalnut. If not, see <http://www.gnu.org/licenses/>.
22 //
23 //---------------------------------------------------------------------------
24 
25 #ifndef WMODULECONNECTOREVENT_H
26 #define WMODULECONNECTOREVENT_H
27 
28 #include <memory>
29 
30 #include <QtCore/QEvent>
31 
32 #include "core/kernel/WModule.h"
33 #include "core/kernel/WModuleConnector.h"
34 
35 /**
36  * Event signalling a module connector changed its data.
37  */
39 {
40 public:
41  /**
42  * Creates a new event denoting the updated connector of a module.
43  *
44  * \param module the module
45  * \param connector the output changed
46  */
48 
49  /**
50  * Destructor.
51  */
52  virtual ~WModuleConnectorEvent();
53 
54  /**
55  * Gets the connector that has changed.
56  *
57  * \return the connector.
58  */
60 
61  /**
62  * Gets the module (owner) of the connector.
63  *
64  * \return the module.
65  */
66  WModule::SPtr getModule() const;
67 
68 protected:
69  /**
70  * The module.
71  */
73 
74  /**
75  * The connector.
76  */
78 
79 private:
80 };
81 
82 #endif // WMODULECONNECTOREVENT_H
83 
84 
Event signalling a module connector changed its data.
WModuleConnector::SPtr m_connector
The connector.
WModuleConnectorEvent(WModule::SPtr module, WModuleConnector::SPtr connector)
Creates a new event denoting the updated connector of a module.
virtual ~WModuleConnectorEvent()
Destructor.
WModule::SPtr m_module
The module.
WModuleConnector::SPtr getConnector() const
Gets the connector that has changed.
WModule::SPtr getModule() const
Gets the module (owner) of the connector.
std::shared_ptr< WModuleConnector > SPtr
Shared pointer to this class.
std::shared_ptr< WModule > SPtr
Shared pointer to a WModule.
Definition: WModule.h:106