summaryrefslogtreecommitdiffstats
path: root/src/event_manager.hpp
blob: 3d1f8d194e54bd48c7a2bea316d5706bfca8ee60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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