mirror of
https://github.com/WinampDesktop/winamp.git
synced 2024-09-24 15:54:12 +00:00
19 lines
No EOL
340 B
C++
19 lines
No EOL
340 B
C++
#pragma once
|
|
#include <bfc/platform/types.h>
|
|
|
|
class api_httpreceiver;
|
|
|
|
class Downloader
|
|
{
|
|
public:
|
|
class DownloadCallback
|
|
{
|
|
public:
|
|
virtual int OnConnect(api_httpreceiver *http)=0;
|
|
virtual int OnData(void *buffer, size_t bufferSize)=0;
|
|
};
|
|
|
|
|
|
bool Download(const char *url, DownloadCallback *callback, uint64_t startPosition = 0);
|
|
|
|
}; |