IFileDownloader

C++
struct IFileDownloader : public INetworkInterface {
};
File

INetworkService.h

IFileDownloader::DownloadFile Method
C++
virtual void DownloadFile(SFileDownloadParameters& dl) = 0;
IFileDownloader::GetDownloadProgress Method
C++
virtual float GetDownloadProgress() const = 0;
Description

get progress of current download (0.0 - 1.0)

IFileDownloader::GetFileMD5 Method
C++
virtual const unsigned char* GetFileMD5() const = 0;
Description

get md5 checksum of downloaded file (only valid when IsDownloading()==false)

IFileDownloader::IsDownloading Method
C++
virtual bool IsDownloading() const = 0;
Description

is a download in progress

IFileDownloader::SetThrottleParameters Method
C++
virtual void SetThrottleParameters(int datasize, int timedelay) = 0;
Description

set throttling parameters (so as not to slow down games in progress) Probably want to turn off throttling if we're at the end of level, etc. datasize: how much data to request timedelay: how often to request it (in ms) Set both to zero to disable throttling

IFileDownloader::Stop Method
C++
virtual void Stop() = 0;
Description

stop downloads (also called when no more files to download)