Patrick Venture | af69625 | 2018-12-11 10:22:14 -0800 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Patrick Venture | 0088759 | 2018-12-11 10:57:06 -0800 | [diff] [blame] | 3 | #include "blob_interface.hpp" |
Patrick Venture | af69625 | 2018-12-11 10:22:14 -0800 | [diff] [blame] | 4 | #include "interface.hpp" |
| 5 | |
Patrick Venture | 9b534f0 | 2018-12-13 16:10:02 -0800 | [diff] [blame^] | 6 | namespace host_tool |
| 7 | { |
| 8 | |
Patrick Venture | af69625 | 2018-12-11 10:22:14 -0800 | [diff] [blame] | 9 | class BtDataHandler : public DataInterface |
| 10 | { |
| 11 | public: |
Patrick Venture | 0088759 | 2018-12-11 10:57:06 -0800 | [diff] [blame] | 12 | explicit BtDataHandler(BlobInterface* blob) : blob(blob){}; |
Patrick Venture | af69625 | 2018-12-11 10:22:14 -0800 | [diff] [blame] | 13 | |
| 14 | bool sendContents(const std::string& input, std::uint16_t session) override; |
Patrick Venture | 8a55dcb | 2018-12-12 21:12:58 -0800 | [diff] [blame] | 15 | blobs::FirmwareBlobHandler::UpdateFlags supportedType() const override |
| 16 | { |
| 17 | return flags; |
| 18 | } |
Patrick Venture | 0088759 | 2018-12-11 10:57:06 -0800 | [diff] [blame] | 19 | |
| 20 | private: |
| 21 | BlobInterface* blob; |
Patrick Venture | 8a55dcb | 2018-12-12 21:12:58 -0800 | [diff] [blame] | 22 | blobs::FirmwareBlobHandler::UpdateFlags flags = |
| 23 | blobs::FirmwareBlobHandler::UpdateFlags::ipmi; |
Patrick Venture | af69625 | 2018-12-11 10:22:14 -0800 | [diff] [blame] | 24 | }; |
Patrick Venture | 9b534f0 | 2018-12-13 16:10:02 -0800 | [diff] [blame^] | 25 | |
| 26 | } // namespace host_tool |