1
0

BackgroundDownloader.h 340 B

12345678910111213141516171819
  1. #pragma once
  2. #include <bfc/platform/types.h>
  3. class api_httpreceiver;
  4. class Downloader
  5. {
  6. public:
  7. class DownloadCallback
  8. {
  9. public:
  10. virtual int OnConnect(api_httpreceiver *http)=0;
  11. virtual int OnData(void *buffer, size_t bufferSize)=0;
  12. };
  13. bool Download(const char *url, DownloadCallback *callback, uint64_t startPosition = 0);
  14. };