Lei YU | b53425d | 2019-02-22 11:38:40 +0800 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include "activation.hpp" |
| 4 | |
Lei YU | 2b2d229 | 2019-03-18 15:22:56 +0800 | [diff] [blame] | 5 | #include <filesystem> |
Andrew Geissler | ab139ce | 2020-05-16 13:22:09 -0500 | [diff] [blame] | 6 | #include <string> |
Lei YU | 2b2d229 | 2019-03-18 15:22:56 +0800 | [diff] [blame] | 7 | |
Lei YU | b53425d | 2019-02-22 11:38:40 +0800 | [diff] [blame] | 8 | namespace openpower |
| 9 | { |
| 10 | namespace software |
| 11 | { |
| 12 | namespace updater |
| 13 | { |
| 14 | |
Lei YU | 2b2d229 | 2019-03-18 15:22:56 +0800 | [diff] [blame] | 15 | namespace fs = std::filesystem; |
| 16 | |
Lei YU | b53425d | 2019-02-22 11:38:40 +0800 | [diff] [blame] | 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; |
Lei YU | a2e6716 | 2019-02-22 17:35:24 +0800 | [diff] [blame] | 25 | Activations activation(Activations value) override; |
Lei YU | b53425d | 2019-02-22 11:38:40 +0800 | [diff] [blame] | 26 | |
| 27 | private: |
Patrick Williams | 0dea199 | 2022-07-22 19:26:52 -0500 | [diff] [blame] | 28 | void unitStateChange(sdbusplus::message_t& msg) override; |
Lei YU | b53425d | 2019-02-22 11:38:40 +0800 | [diff] [blame] | 29 | void startActivation() override; |
| 30 | void finishActivation() override; |
Lei YU | a2e6716 | 2019-02-22 17:35:24 +0800 | [diff] [blame] | 31 | |
| 32 | std::string pnorUpdateUnit; |
Lei YU | 2b2d229 | 2019-03-18 15:22:56 +0800 | [diff] [blame] | 33 | |
| 34 | fs::path pnorFilePath; |
Lei YU | b53425d | 2019-02-22 11:38:40 +0800 | [diff] [blame] | 35 | }; |
| 36 | |
| 37 | } // namespace updater |
| 38 | } // namespace software |
| 39 | } // namespace openpower |