xref: /openbmc/phosphor-ipmi-flash/tools/bt.hpp (revision 8a55dcbd14941f57a050313bd8dd606d28e1e1d0)
1af69625fSPatrick Venture #pragma once
2af69625fSPatrick Venture 
300887597SPatrick Venture #include "blob_interface.hpp"
4af69625fSPatrick Venture #include "interface.hpp"
5af69625fSPatrick Venture 
6af69625fSPatrick Venture class BtDataHandler : public DataInterface
7af69625fSPatrick Venture {
8af69625fSPatrick Venture   public:
900887597SPatrick Venture     explicit BtDataHandler(BlobInterface* blob) : blob(blob){};
10af69625fSPatrick Venture 
11af69625fSPatrick Venture     bool sendContents(const std::string& input, std::uint16_t session) override;
12*8a55dcbdSPatrick Venture     blobs::FirmwareBlobHandler::UpdateFlags supportedType() const override
13*8a55dcbdSPatrick Venture     {
14*8a55dcbdSPatrick Venture         return flags;
15*8a55dcbdSPatrick Venture     }
1600887597SPatrick Venture 
1700887597SPatrick Venture   private:
1800887597SPatrick Venture     BlobInterface* blob;
19*8a55dcbdSPatrick Venture     blobs::FirmwareBlobHandler::UpdateFlags flags =
20*8a55dcbdSPatrick Venture         blobs::FirmwareBlobHandler::UpdateFlags::ipmi;
21af69625fSPatrick Venture };
22