1 #ifndef AKTUALIZR_SECONDARY_UPDATE_AGENT_FILE_H
2 #define AKTUALIZR_SECONDARY_UPDATE_AGENT_FILE_H
4 #include "update_agent.h"
8 FileUpdateAgent(boost::filesystem::path target_filepath, std::string target_name)
9 : target_filepath_{std::move(target_filepath)},
10 new_target_filepath_{target_filepath_.string() +
".newtarget"},
11 current_target_name_{std::move(target_name)} {}
14 bool isTargetSupported(
const Uptane::Target& target)
const override;
20 void completeInstall()
override;
27 const boost::filesystem::path target_filepath_;
28 const boost::filesystem::path new_target_filepath_;
29 std::string current_target_name_;
30 std::shared_ptr<MultiPartHasher> new_target_hasher_;
33 #endif // AKTUALIZR_SECONDARY_UPDATE_AGENT_FILE_H