Gunnar Mills | ec1b41c | 2017-05-02 12:20:36 -0500 | [diff] [blame^] | 1 | #pragma once |
| 2 | |
| 3 | #include <sdbusplus/bus.hpp> |
| 4 | #include <xyz/openbmc_project/Software/Activation/server.hpp> |
| 5 | |
| 6 | namespace phosphor |
| 7 | { |
| 8 | namespace software |
| 9 | { |
| 10 | namespace updater |
| 11 | { |
| 12 | |
| 13 | using ActivationInherit = sdbusplus::server::object::object< |
| 14 | sdbusplus::xyz::openbmc_project::Software::server::Activation>; |
| 15 | |
| 16 | /** @class Activation |
| 17 | * @brief OpenBMC activation software management implementation. |
| 18 | * @details A concrete implementation for |
| 19 | * xyz.openbmc_project.Software.Activation DBus API. |
| 20 | */ |
| 21 | class Activation : public ActivationInherit |
| 22 | { |
| 23 | public: |
| 24 | /** @brief Constructs Activation Software Manager |
| 25 | * |
| 26 | * @param[in] bus - The Dbus bus object |
| 27 | * @param[in] path - The Dbus object path |
| 28 | */ |
| 29 | Activation(sdbusplus::bus::bus& bus, const std::string& path) : |
| 30 | ActivationInherit(bus, path.c_str()) {}; |
| 31 | }; |
| 32 | |
| 33 | } // namespace updater |
| 34 | } // namespace software |
| 35 | } // namespace phosphor |