1af69625fSPatrick Venture #pragma once 2af69625fSPatrick Venture 3af69625fSPatrick Venture #include "interface.hpp" 4c181ebafSPatrick Venture #include "internal/sys.hpp" 5*cf9b2195SPatrick Venture #include "progress.hpp" 6af69625fSPatrick Venture 7664c5bc7SPatrick Venture #include <ipmiblob/blob_interface.hpp> 8664c5bc7SPatrick Venture 99b534f06SPatrick Venture namespace host_tool 109b534f06SPatrick Venture { 119b534f06SPatrick Venture 12af69625fSPatrick Venture class BtDataHandler : public DataInterface 13af69625fSPatrick Venture { 14af69625fSPatrick Venture public: 15*cf9b2195SPatrick Venture BtDataHandler(ipmiblob::BlobInterface* blob, ProgressInterface* progress, 16c181ebafSPatrick Venture const internal::Sys* sys = &internal::sys_impl) : 17c181ebafSPatrick Venture blob(blob), 18*cf9b2195SPatrick Venture progress(progress), sys(sys){}; 19af69625fSPatrick Venture 20af69625fSPatrick Venture bool sendContents(const std::string& input, std::uint16_t session) override; 2184778b8dSPatrick Venture ipmi_flash::FirmwareFlags::UpdateFlags supportedType() const override 228a55dcbdSPatrick Venture { 2384778b8dSPatrick Venture return ipmi_flash::FirmwareFlags::UpdateFlags::ipmi; 248a55dcbdSPatrick Venture } 2500887597SPatrick Venture 2600887597SPatrick Venture private: 27664c5bc7SPatrick Venture ipmiblob::BlobInterface* blob; 28*cf9b2195SPatrick Venture ProgressInterface* progress; 29c181ebafSPatrick Venture const internal::Sys* sys; 30af69625fSPatrick Venture }; 319b534f06SPatrick Venture 329b534f06SPatrick Venture } // namespace host_tool 33