blob: 4b53f26f6f46af71a1c2fb93ea1285601f6c5283 [file] [log] [blame]
Patrick Ventureaf696252018-12-11 10:22:14 -08001#pragma once
2
Patrick Venture00887592018-12-11 10:57:06 -08003#include "blob_interface.hpp"
Patrick Ventureaf696252018-12-11 10:22:14 -08004#include "interface.hpp"
5
6class LpcDataHandler : public DataInterface
7{
8 public:
Patrick Venture00887592018-12-11 10:57:06 -08009 explicit LpcDataHandler(BlobInterface* blob) : blob(blob){};
Patrick Ventureaf696252018-12-11 10:22:14 -080010
11 bool sendContents(const std::string& input, std::uint16_t session) override;
Patrick Venture8a55dcb2018-12-12 21:12:58 -080012 blobs::FirmwareBlobHandler::UpdateFlags supportedType() const override
13 {
14 return flags;
15 }
Patrick Venture00887592018-12-11 10:57:06 -080016
17 private:
18 BlobInterface* blob;
Patrick Venture8a55dcb2018-12-12 21:12:58 -080019 blobs::FirmwareBlobHandler::UpdateFlags flags =
20 blobs::FirmwareBlobHandler::UpdateFlags::lpc;
Patrick Ventureaf696252018-12-11 10:22:14 -080021};