summaryrefslogtreecommitdiffstats
path: root/static/activation_static.hpp
blob: 258a6126d9dc815369fff79e8b1e27d40d817c14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#pragma once

#include "activation.hpp"

#include <filesystem>

namespace openpower
{
namespace software
{
namespace updater
{

namespace fs = std::filesystem;

/** @class ActivationStatic
 *  @brief Implementation for static PNOR layout
 */
class ActivationStatic : public Activation
{
  public:
    using Activation::Activation;
    ~ActivationStatic() = default;
    Activations activation(Activations value) override;

  private:
    void unitStateChange(sdbusplus::message::message& msg) override;
    void startActivation() override;
    void finishActivation() override;

    std::string pnorUpdateUnit;

    fs::path pnorFilePath;
};

} // namespace updater
} // namespace software
} // namespace openpower
OpenPOWER on IntegriCloud