1 #pragma once
2 
3 #include "activation.hpp"
4 
5 #include <filesystem>
6 #include <string>
7 
8 namespace openpower
9 {
10 namespace software
11 {
12 namespace updater
13 {
14 
15 namespace fs = std::filesystem;
16 
17 /** @class ActivationStatic
18  *  @brief Implementation for static PNOR layout
19  */
20 class ActivationStatic : public Activation
21 {
22   public:
23     using Activation::Activation;
24     ~ActivationStatic() = default;
25     Activations activation(Activations value) override;
26 
27   private:
28     void unitStateChange(sdbusplus::message_t& msg) override;
29     void startActivation() override;
30     void finishActivation() override;
31 
32     std::string pnorUpdateUnit;
33 
34     fs::path pnorFilePath;
35 };
36 
37 } // namespace updater
38 } // namespace software
39 } // namespace openpower
40