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 | |
| 6 | class LpcDataHandler : public DataInterface |
| 7 | { |
| 8 | public: |
Patrick Venture | 0088759 | 2018-12-11 10:57:06 -0800 | [diff] [blame] | 9 | explicit LpcDataHandler(BlobInterface* blob) : blob(blob){}; |
Patrick Venture | af69625 | 2018-12-11 10:22:14 -0800 | [diff] [blame] | 10 | |
| 11 | bool sendContents(const std::string& input, std::uint16_t session) override; |
Patrick Venture | 8a55dcb | 2018-12-12 21:12:58 -0800 | [diff] [blame] | 12 | blobs::FirmwareBlobHandler::UpdateFlags supportedType() const override |
| 13 | { |
| 14 | return flags; |
| 15 | } |
Patrick Venture | 0088759 | 2018-12-11 10:57:06 -0800 | [diff] [blame] | 16 | |
| 17 | private: |
| 18 | BlobInterface* blob; |
Patrick Venture | 8a55dcb | 2018-12-12 21:12:58 -0800 | [diff] [blame] | 19 | blobs::FirmwareBlobHandler::UpdateFlags flags = |
| 20 | blobs::FirmwareBlobHandler::UpdateFlags::lpc; |
Patrick Venture | af69625 | 2018-12-11 10:22:14 -0800 | [diff] [blame] | 21 | }; |