Adriana Kobylak | 9f89e2e | 2018-05-30 13:16:20 -0500 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <sdbusplus/bus.hpp> |
| 4 | |
| 5 | namespace phosphor |
| 6 | { |
| 7 | namespace software |
| 8 | { |
| 9 | namespace updater |
| 10 | { |
| 11 | |
| 12 | /** |
| 13 | * @class Flash |
| 14 | * @brief Contains flash management functions. |
| 15 | * @details The software class that contains functions to interact |
| 16 | * with the flash. |
| 17 | */ |
| 18 | class Flash |
| 19 | { |
| 20 | public: |
Adriana Kobylak | 292159f | 2020-05-05 09:25:55 -0500 | [diff] [blame] | 21 | /* Destructor */ |
| 22 | virtual ~Flash() = default; |
| 23 | |
Adriana Kobylak | 9f89e2e | 2018-05-30 13:16:20 -0500 | [diff] [blame] | 24 | /** |
| 25 | * @brief Writes the image file(s) to flash |
| 26 | */ |
| 27 | virtual void flashWrite() = 0; |
Adriana Kobylak | 3ce563a | 2018-06-06 16:41:15 -0500 | [diff] [blame] | 28 | |
| 29 | /** |
| 30 | * @brief Takes action when the state of the activation service file changes |
| 31 | */ |
Patrick Williams | bf2bb2b | 2022-07-22 19:26:52 -0500 | [diff] [blame] | 32 | virtual void onStateChanges(sdbusplus::message_t& msg) = 0; |
Adriana Kobylak | 9f89e2e | 2018-05-30 13:16:20 -0500 | [diff] [blame] | 33 | }; |
| 34 | |
| 35 | } // namespace updater |
| 36 | } // namespace software |
| 37 | } // namespace phosphor |