xref: /openbmc/phosphor-psu-code-mgmt/src/activation_listener.hpp (revision 66a54ad41b40d019f52ff15866d249962b5c3f88)
1 #pragma once
2 
3 #include <string>
4 
5 class ActivationListener
6 {
7   public:
8     ActivationListener() = default;
9     ActivationListener(const ActivationListener&) = delete;
10     ActivationListener& operator=(const ActivationListener&) = delete;
11     ActivationListener(ActivationListener&&) = delete;
12     ActivationListener& operator=(ActivationListener&&) = delete;
13 
14     virtual ~ActivationListener() = default;
15 
16     /** @brief Notify a PSU is updated
17      *
18      * @param[in]  versionId - The versionId of the activation
19      * @param[in]  psuInventoryPath - The PSU inventory path that is updated
20      */
21     virtual void onUpdateDone(const std::string& versionId,
22                               const std::string& psuInventoryPath) = 0;
23 };
24