BazisLib::Network::MultiThreaded::MultiThreadHTTPDownloader Class Reference

Provides support for downloading HTTP files in multithread mode. More...

#include <mtdl.h>

Inherits BazisLib::Network::MultiThreaded::MultiThreadDownloaderBase.

Collaboration diagram for BazisLib::Network::MultiThreaded::MultiThreadHTTPDownloader:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 DECLARE_REFERENCE (HTTP::AutoHTTPClient, m_pClient)
 DECLARE_REFERENCE (HTTP::ACHTTPRequest, m_pRequestHeaderOverride)
 MultiThreadHTTPDownloader (unsigned Threads=5)
ActionStatus UpdateDownloadParams (const std::string &URL, const FilePath &path, AdvancedDownloadParams *pParams)
ActionStatus PrepareToDownload (std::string URL, const FilePath &path, AdvancedDownloadParams *pParams=NULL, ULONGLONG KnownFileSize=0LL, bool ForceZeroFilling=false)
 Sets all internal parameters, but does not initiate the download process.
virtual void SetTimeout (unsigned Timeout) override
 ~MultiThreadHTTPDownloader ()

Public Attributes

FilePath m_FilePath
std::string m_URL
std::string m_Login
std::string m_Password

Protected Member Functions

virtual ManagedPointer< AIFileOpenSourceFile (unsigned ThreadID) override
virtual ManagedPointer< AIFileOpenDestinationFile () override
virtual void CancelSourceFileIO (const ConstManagedPointer< AIFile > &pFile)
virtual unsigned GetAdditionalErrorCode (const ConstManagedPointer< AIFile > &pFile, bool IgnoreSuccessfulCodes)


Detailed Description

Provides support for downloading HTTP files in multithread mode.

Constructor & Destructor Documentation

BazisLib::Network::MultiThreaded::MultiThreadHTTPDownloader::MultiThreadHTTPDownloader ( unsigned  Threads = 5  )  [inline]

BazisLib::Network::MultiThreaded::MultiThreadHTTPDownloader::~MultiThreadHTTPDownloader (  )  [inline]

Here is the call graph for this function:


Member Function Documentation

virtual void BazisLib::Network::MultiThreaded::MultiThreadHTTPDownloader::CancelSourceFileIO ( const ConstManagedPointer< AIFile > &  pFile  )  [inline, protected, virtual]

Implements BazisLib::Network::MultiThreaded::MultiThreadDownloaderBase.

Here is the call graph for this function:

BazisLib::Network::MultiThreaded::MultiThreadHTTPDownloader::DECLARE_REFERENCE ( HTTP::ACHTTPRequest  ,
m_pRequestHeaderOverride   
)

BazisLib::Network::MultiThreaded::MultiThreadHTTPDownloader::DECLARE_REFERENCE ( HTTP::AutoHTTPClient  ,
m_pClient   
)

virtual unsigned BazisLib::Network::MultiThreaded::MultiThreadHTTPDownloader::GetAdditionalErrorCode ( const ConstManagedPointer< AIFile > &  pFile,
bool  IgnoreSuccessfulCodes 
) [inline, protected, virtual]

Implements BazisLib::Network::MultiThreaded::MultiThreadDownloaderBase.

Here is the call graph for this function:

virtual ManagedPointer<AIFile> BazisLib::Network::MultiThreaded::MultiThreadHTTPDownloader::OpenDestinationFile (  )  [inline, override, protected, virtual]

virtual ManagedPointer<AIFile> BazisLib::Network::MultiThreaded::MultiThreadHTTPDownloader::OpenSourceFile ( unsigned  ThreadID  )  [inline, override, protected, virtual]

ActionStatus BazisLib::Network::MultiThreaded::MultiThreadHTTPDownloader::PrepareToDownload ( std::string  URL,
const FilePath path,
AdvancedDownloadParams pParams = NULL,
ULONGLONG  KnownFileSize = 0LL,
bool  ForceZeroFilling = false 
) [inline]

Sets all internal parameters, but does not initiate the download process.

Remarks:
To initiate the download process, call the ResumeDownload() status.

Here is the call graph for this function:

virtual void BazisLib::Network::MultiThreaded::MultiThreadHTTPDownloader::SetTimeout ( unsigned  Timeout  )  [inline, override, virtual]

ActionStatus BazisLib::Network::MultiThreaded::MultiThreadHTTPDownloader::UpdateDownloadParams ( const std::string &  URL,
const FilePath path,
AdvancedDownloadParams pParams 
) [inline]

Here is the call graph for this function:


Member Data Documentation


The documentation for this class was generated from the following file:
SourceForge.net Logo