blob: 93dfb2610a59a2390a1de093e6ded96996e58e37 [file] [log] [blame]
Vishwanatha Subbanna506aa0f2017-01-24 14:58:25 +05301#pragma once
2
3#include <sdbusplus/bus.hpp>
4#include <sdbusplus/server/object.hpp>
5#include <xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.hpp>
6namespace phosphor
7{
8namespace ipmi
9{
10
11namespace Base = sdbusplus::xyz::openbmc_project::Ipmi::Internal::server;
12
13/** @class SoftPowerOff
14 * @brief Responsible for coordinating Host SoftPowerOff operation
15 */
16class SoftPowerOff : public sdbusplus::server::object::object<
17 Base::SoftPowerOff>
18{
19 public:
20 /** @brief Constructs SoftPowerOff object.
21 *
22 * @param[in] bus - system dbus handler
23 * @param[in] objPath - The Dbus path that hosts SoftPowerOff function
24 */
25 SoftPowerOff(sdbusplus::bus::bus& bus,
26 const char* objPath) :
27 sdbusplus::server::object::object<Base::SoftPowerOff>(bus, objPath)
28 {
29 // Nothing to do here
30 }
31};
32} // namespace ipmi
33} // namespace phosphor