summaryrefslogtreecommitdiffstats
path: root/src/event_manager.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/event_manager.hpp')
-rw-r--r--src/event_manager.hpp42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/event_manager.hpp b/src/event_manager.hpp
new file mode 100644
index 0000000..3d1f8d1
--- /dev/null
+++ b/src/event_manager.hpp
@@ -0,0 +1,42 @@
+#pragma once
+
+#include <sdbusplus/bus.hpp>
+
+namespace phosphor
+{
+namespace events
+{
+
+/** @class Manager
+ * @brief OpenBMC Event manager implementation.
+ */
+class Manager
+{
+ public:
+ Manager() = default;
+ Manager(const Manager&) = delete;
+ Manager& operator=(const Manager&) = delete;
+ Manager(Manager&&) = default;
+ Manager& operator=(Manager&&) = default;
+ virtual ~Manager() = default;
+
+ /** @brief Create the D-Bus Event object.
+ * @detail Add the objectPath,propertyName, propertyValue
+ * as additional data of the event object.
+ * @param[in] eventName - Name of the event.
+ * @param[in] objectPath - Path of the D-Bus object.
+ * @param[in] propertyName - Name of the property.
+ * @param[in] propertyValue - Value of the property.
+ */
+ void create(
+ const std::string& eventName,
+ const std::string& objectPath,
+ const std::string& propertyName,
+ const std::string& propertyValue);
+
+};
+
+Manager& getManager();
+
+} // namespace events
+} // namespace phosphor
OpenPOWER on IntegriCloud