2020-06-19 17:54:41 -05:00
|
|
|
#ifndef PROTOCOL_LISTENER_H
|
|
|
|
#define PROTOCOL_LISTENER_H
|
|
|
|
|
|
|
|
#include <UrlProtocolListener.h>
|
|
|
|
#include <Url.h>
|
|
|
|
|
|
|
|
class ProtocolListener : public BUrlProtocolListener
|
|
|
|
{
|
|
|
|
public:
|
2020-07-13 12:31:52 -05:00
|
|
|
ProtocolListener ( bool );
|
2020-06-19 17:54:41 -05:00
|
|
|
|
|
|
|
virtual ~ProtocolListener();
|
|
|
|
virtual void DataReceived(BUrlRequest*, const char*, off_t, ssize_t);
|
|
|
|
void SetDownloadIO ( BDataIO* );
|
|
|
|
BDataIO* GetDownloadIO ( );
|
|
|
|
|
|
|
|
private:
|
|
|
|
BDataIO* fDownloadIO;
|
|
|
|
bool fTraceLogging;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|