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> |
| 6 | |
Lei YU | b53425d | 2019-02-22 11:38:40 +0800 | [diff] [blame] | 7 | namespace openpower |
| 8 | { |
| 9 | namespace software |
| 10 | { |
| 11 | namespace updater |
| 12 | { |
| 13 | |
Lei YU | 2b2d229 | 2019-03-18 15:22:56 +0800 | [diff] [blame] | 14 | namespace fs = std::filesystem; |
| 15 | |
Lei YU | b53425d | 2019-02-22 11:38:40 +0800 | [diff] [blame] | 16 | /** @class ActivationStatic |
| 17 | * @brief Implementation for static PNOR layout |
| 18 | */ |
| 19 | class ActivationStatic : public Activation |
| 20 | { |
| 21 | public: |
| 22 | using Activation::Activation; |
| 23 | ~ActivationStatic() = default; |
Lei YU | a2e6716 | 2019-02-22 17:35:24 +0800 | [diff] [blame] | 24 | Activations activation(Activations value) override; |
Lei YU | b53425d | 2019-02-22 11:38:40 +0800 | [diff] [blame] | 25 | |
| 26 | private: |
| 27 | void unitStateChange(sdbusplus::message::message& msg) override; |
| 28 | void startActivation() override; |
| 29 | void finishActivation() override; |
Lei YU | a2e6716 | 2019-02-22 17:35:24 +0800 | [diff] [blame] | 30 | |
| 31 | std::string pnorUpdateUnit; |
Lei YU | 2b2d229 | 2019-03-18 15:22:56 +0800 | [diff] [blame] | 32 | |
| 33 | fs::path pnorFilePath; |
Lei YU | b53425d | 2019-02-22 11:38:40 +0800 | [diff] [blame] | 34 | }; |
| 35 | |
| 36 | } // namespace updater |
| 37 | } // namespace software |
| 38 | } // namespace openpower |