blob: 258a6126d9dc815369fff79e8b1e27d40d817c14 [file] [log] [blame]
Lei YUb53425d2019-02-22 11:38:40 +08001#pragma once
2
3#include "activation.hpp"
4
Lei YU2b2d2292019-03-18 15:22:56 +08005#include <filesystem>
6
Lei YUb53425d2019-02-22 11:38:40 +08007namespace openpower
8{
9namespace software
10{
11namespace updater
12{
13
Lei YU2b2d2292019-03-18 15:22:56 +080014namespace fs = std::filesystem;
15
Lei YUb53425d2019-02-22 11:38:40 +080016/** @class ActivationStatic
17 * @brief Implementation for static PNOR layout
18 */
19class ActivationStatic : public Activation
20{
21 public:
22 using Activation::Activation;
23 ~ActivationStatic() = default;
Lei YUa2e67162019-02-22 17:35:24 +080024 Activations activation(Activations value) override;
Lei YUb53425d2019-02-22 11:38:40 +080025
26 private:
27 void unitStateChange(sdbusplus::message::message& msg) override;
28 void startActivation() override;
29 void finishActivation() override;
Lei YUa2e67162019-02-22 17:35:24 +080030
31 std::string pnorUpdateUnit;
Lei YU2b2d2292019-03-18 15:22:56 +080032
33 fs::path pnorFilePath;
Lei YUb53425d2019-02-22 11:38:40 +080034};
35
36} // namespace updater
37} // namespace software
38} // namespace openpower