RemoteDrawingEngine: Reduce RP_READ_BITMAP result timeout.
[haiku.git] / src / apps / serialconnect / FileSender.h
blobb5ef82636464ca2f802513289a8b829feecd2b2b
1 /*
2 * Copyright 2017, Adrien Destugues, pulkomandy@pulkomandy.tk
3 * Distributed under terms of the MIT license.
4 */
7 #ifndef FILESENDER_H
8 #define FILESENDER_H
11 #include <stdint.h>
12 #include <string.h>
15 class BDataIO;
16 class BHandler;
17 class BSerialPort;
20 class FileSender {
21 public:
22 virtual ~FileSender();
23 virtual bool BytesReceived(const uint8_t* data,
24 size_t length) = 0;
28 class RawSender: public FileSender {
29 public:
30 RawSender(BDataIO* source, BSerialPort* sink,
31 BHandler* listener);
32 virtual ~RawSender();
34 virtual bool BytesReceived(const uint8_t* data,
35 size_t length);
40 #endif /* !FILESENDER_H */