xref: /openbmc/pldm/host-bmc/dbus/panel.hpp (revision 765cf03dfed4da20ea0418a509c49b033fcbef3a)
1 #pragma once
2 
3 #include <sdbusplus/bus.hpp>
4 #include <sdbusplus/server.hpp>
5 #include <sdbusplus/server/object.hpp>
6 #include <xyz/openbmc_project/Inventory/Item/Panel/server.hpp>
7 
8 #include <string>
9 
10 namespace pldm
11 {
12 namespace dbus
13 {
14 using ItemPanel = sdbusplus::server::object_t<
15     sdbusplus::xyz::openbmc_project::Inventory::Item::server::Panel>;
16 
17 class Panel : public ItemPanel
18 {
19   public:
20     Panel() = delete;
21     ~Panel() = default;
22     Panel(const Panel&) = delete;
23     Panel& operator=(const Panel&) = delete;
24     Panel(Panel&&) = delete;
25     Panel& operator=(Panel&&) = delete;
26 
Panel(sdbusplus::bus_t & bus,const std::string & objPath)27     Panel(sdbusplus::bus_t& bus, const std::string& objPath) :
28         ItemPanel(bus, objPath.c_str()), path(objPath)
29     {}
30 
31   private:
32     std::string path;
33 };
34 
35 } // namespace dbus
36 } // namespace pldm
37