summaryrefslogtreecommitdiffstats
path: root/control/zone.hpp
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2017-08-04 12:58:02 -0500
committerMatthew Barth <msbarth@us.ibm.com>2017-08-07 15:30:10 -0500
commitf6b76d8e8fbe71dbecad2189c28265ddff73c9ba (patch)
tree739d374f66620df2aa7da84df3bfc977562165ef /control/zone.hpp
parent604329ef36d8ba2cd324f7132427d7e5724c074e (diff)
downloadphosphor-fan-presence-f6b76d8e8fbe71dbecad2189c28265ddff73c9ba.tar.gz
phosphor-fan-presence-f6b76d8e8fbe71dbecad2189c28265ddff73c9ba.zip
Remove set speed event
Allows the complete removal of a set speed event from the zone. This is done when any precondition defined for the event to be active is not met any longer. Change-Id: Idbec357f76f0fd7db9107e8c9d3e00461872c528 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'control/zone.hpp')
-rw-r--r--control/zone.hpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/control/zone.hpp b/control/zone.hpp
index f618c10..32707cb 100644
--- a/control/zone.hpp
+++ b/control/zone.hpp
@@ -3,7 +3,6 @@
#include <vector>
#include <algorithm>
#include <sdbusplus/bus.hpp>
-#include <sdbusplus/server.hpp>
#include "fan.hpp"
#include "types.hpp"
#include "timer.hpp"
@@ -142,6 +141,13 @@ class Zone
void initEvent(const SetSpeedEvent& event);
/**
+ * @brief Removes all the set speed event properties and actions
+ *
+ * @param[in] event - Set speed event
+ */
+ void removeEvent(const SetSpeedEvent& event);
+
+ /**
* @brief Get the default floor speed
*
* @return - The defined default floor speed
@@ -342,14 +348,9 @@ class Zone
std::map<const Group*, bool> _active;
/**
- * @brief List of signal event arguments
- */
- std::vector<std::unique_ptr<EventData>> _signalEvents;
-
- /**
- * @brief list of Dbus matches for callbacks
+ * @brief List of signal event arguments and Dbus matches for callbacks
*/
- std::vector<sdbusplus::server::match::match> _matches;
+ std::vector<SignalEvent> _signalEvents;
/**
* @brief Refresh the given property's cached value
OpenPOWER on IntegriCloud