blob: 10050b67f1569044a616e3b99981c0b881ee17f6 [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 BtDataHandler : public DataInterface
7{
8 public:
Patrick Venture00887592018-12-11 10:57:06 -08009 explicit BtDataHandler(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::ipmi;
Patrick Ventureaf696252018-12-11 10:22:14 -080021};