BackgroundDownloader.h 449 B

1234567891011121314
  1. #ifndef NULLSOFT_WAC_DOWNLOAD_MANAGER_BACKGROUND_DOWNLOADER_H
  2. #define NULLSOFT_WAC_DOWNLOAD_MANAGER_BACKGROUND_DOWNLOADER_H
  3. #include "bfc/platform/types.h"
  4. class Downloader
  5. {
  6. public:
  7. typedef int ( *DownloadCallback )( void *userdata, void *buffer, size_t bufferSize );
  8. bool Download( const char *url, DownloadCallback &callback, void *userdata, uint64_t startPosition = 0 );
  9. };
  10. #endif // !NULLSOFT_WAC_DOWNLOAD_MANAGER_BACKGROUND_DOWNLOADER_H