blob: 3d1f8d194e54bd48c7a2bea316d5706bfca8ee60 [file] [log] [blame]
Ratan Guptacd227862017-10-06 21:27:13 +05301#pragma once
2
3#include <sdbusplus/bus.hpp>
4
5namespace phosphor
6{
7namespace events
8{
9
10/** @class Manager
11 * @brief OpenBMC Event manager implementation.
12 */
13class Manager
14{
15 public:
16 Manager() = default;
17 Manager(const Manager&) = delete;
18 Manager& operator=(const Manager&) = delete;
19 Manager(Manager&&) = default;
20 Manager& operator=(Manager&&) = default;
21 virtual ~Manager() = default;
22
23 /** @brief Create the D-Bus Event object.
24 * @detail Add the objectPath,propertyName, propertyValue
25 * as additional data of the event object.
26 * @param[in] eventName - Name of the event.
27 * @param[in] objectPath - Path of the D-Bus object.
28 * @param[in] propertyName - Name of the property.
29 * @param[in] propertyValue - Value of the property.
30 */
31 void create(
32 const std::string& eventName,
33 const std::string& objectPath,
34 const std::string& propertyName,
35 const std::string& propertyValue);
36
37};
38
39Manager& getManager();
40
41} // namespace events
42} // namespace phosphor