| #pragma once |
| |
| #include "interface.hpp" |
| #include "internal/sys.hpp" |
| #include "progress.hpp" |
| |
| #include <ipmiblob/blob_interface.hpp> |
| |
| namespace host_tool |
| { |
| |
| class BtDataHandler : public DataInterface |
| { |
| public: |
| BtDataHandler(ipmiblob::BlobInterface* blob, ProgressInterface* progress, |
| const internal::Sys* sys = &internal::sys_impl) : |
| blob(blob), |
| progress(progress), sys(sys){}; |
| |
| bool sendContents(const std::string& input, std::uint16_t session) override; |
| ipmi_flash::FirmwareFlags::UpdateFlags supportedType() const override |
| { |
| return ipmi_flash::FirmwareFlags::UpdateFlags::ipmi; |
| } |
| |
| private: |
| ipmiblob::BlobInterface* blob; |
| ProgressInterface* progress; |
| const internal::Sys* sys; |
| }; |
| |
| } // namespace host_tool |