Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
DownloadManager Class Reference

#include <DownloadManager.h>

Inherits IDownload, and IDownload.

Inherited by DownloadManagerMunkee, and DownloadManagerMunkee.

Public Member Functions

 DownloadManager ()
 
virtual ~DownloadManager ()
 
void init (void)
 
HRESULT update (void)
 
void reset (void)
 
virtual HRESULT OnError (Int error)
 
virtual HRESULT OnEnd ()
 
virtual HRESULT OnQueryResume ()
 
virtual HRESULT OnProgressUpdate (Int bytesread, Int totalsize, Int timetaken, Int timeleft)
 
virtual HRESULT OnStatusUpdate (Int status)
 
virtual HRESULT downloadFile (AsciiString server, AsciiString username, AsciiString password, AsciiString file, AsciiString localfile, AsciiString regkey, Bool tryResume)
 
AsciiString getLastLocalFile (void)
 
Bool isDone (void)
 
Bool isOk (void)
 
Bool wasError (void)
 
UnicodeString getStatusString (void)
 
UnicodeString getErrorString (void)
 
void queueFileForDownload (AsciiString server, AsciiString username, AsciiString password, AsciiString file, AsciiString localfile, AsciiString regkey, Bool tryResume)
 
Bool isFileQueuedForDownload (void)
 
HRESULT downloadNextQueuedFile (void)
 
 DownloadManager ()
 
virtual ~DownloadManager ()
 
void init (void)
 
HRESULT update (void)
 
void reset (void)
 
virtual HRESULT OnError (int error)
 
virtual HRESULT OnEnd ()
 
virtual HRESULT OnQueryResume ()
 
virtual HRESULT OnProgressUpdate (int bytesread, int totalsize, int timetaken, int timeleft)
 
virtual HRESULT OnStatusUpdate (int status)
 
virtual HRESULT downloadFile (std::string server, std::string username, std::string password, std::string file, std::string localfile, std::string regkey, bool tryResume)
 
std::string getLastLocalFile (void)
 
bool isDone (void)
 
bool isOk (void)
 
bool wasError (void)
 
std::string getStatusString (void)
 
std::string getErrorString (void)
 
void queueFileForDownload (std::string server, std::string username, std::string password, std::string file, std::string localfile, std::string regkey, bool tryResume)
 
bool isFileQueuedForDownload (void)
 
HRESULT downloadNextQueuedFile (void)
 

Protected Attributes

std::list< QueuedDownloadm_queuedDownloads
 

Detailed Description

Definition at line 53 of file DownloadManager.h.

Constructor & Destructor Documentation

◆ DownloadManager() [1/2]

DownloadManager::DownloadManager ( )

Definition at line 36 of file DownloadManager.cpp.

◆ ~DownloadManager() [1/2]

DownloadManager::~DownloadManager ( )
virtual

Definition at line 71 of file DownloadManager.cpp.

◆ DownloadManager() [2/2]

DownloadManager::DownloadManager ( )

◆ ~DownloadManager() [2/2]

virtual DownloadManager::~DownloadManager ( )
virtual

Member Function Documentation

◆ downloadFile() [1/2]

HRESULT DownloadManager::downloadFile ( AsciiString server,
AsciiString username,
AsciiString password,
AsciiString file,
AsciiString localfile,
AsciiString regkey,
Bool tryResume )
virtual

Reimplemented in DownloadManagerMunkee.

Definition at line 94 of file DownloadManager.cpp.

◆ downloadFile() [2/2]

HRESULT DownloadManager::downloadFile ( std::string server,
std::string username,
std::string password,
std::string file,
std::string localfile,
std::string regkey,
bool tryResume )
virtual

Reimplemented in DownloadManagerMunkee.

Definition at line 80 of file DownloadManager.cpp.

◆ downloadNextQueuedFile() [1/2]

HRESULT DownloadManager::downloadNextQueuedFile ( void )

Definition at line 113 of file DownloadManager.cpp.

◆ downloadNextQueuedFile() [2/2]

HRESULT DownloadManager::downloadNextQueuedFile ( void )

◆ getErrorString() [1/2]

UnicodeString DownloadManager::getErrorString ( void )
inline

Definition at line 78 of file DownloadManager.h.

◆ getErrorString() [2/2]

std::string DownloadManager::getErrorString ( void )
inline

Definition at line 74 of file DownloadManager.h.

◆ getLastLocalFile() [1/2]

std::string DownloadManager::getLastLocalFile ( void )

Definition at line 131 of file DownloadManager.cpp.

◆ getLastLocalFile() [2/2]

std::string DownloadManager::getLastLocalFile ( void )

◆ getStatusString() [1/2]

UnicodeString DownloadManager::getStatusString ( void )
inline

Definition at line 77 of file DownloadManager.h.

◆ getStatusString() [2/2]

std::string DownloadManager::getStatusString ( void )
inline

Definition at line 73 of file DownloadManager.h.

◆ init() [1/2]

void DownloadManager::init ( void )

Definition at line 81 of file DownloadManager.cpp.

◆ init() [2/2]

void DownloadManager::init ( void )

◆ isDone() [1/2]

Bool DownloadManager::isDone ( void )
inline

Definition at line 73 of file DownloadManager.h.

◆ isDone() [2/2]

bool DownloadManager::isDone ( void )
inline

Definition at line 69 of file DownloadManager.h.

◆ isFileQueuedForDownload() [1/2]

Bool DownloadManager::isFileQueuedForDownload ( void )
inline

Definition at line 81 of file DownloadManager.h.

◆ isFileQueuedForDownload() [2/2]

bool DownloadManager::isFileQueuedForDownload ( void )
inline

Definition at line 77 of file DownloadManager.h.

◆ isOk() [1/2]

Bool DownloadManager::isOk ( void )
inline

Definition at line 74 of file DownloadManager.h.

◆ isOk() [2/2]

bool DownloadManager::isOk ( void )
inline

Definition at line 70 of file DownloadManager.h.

◆ OnEnd() [1/2]

HRESULT DownloadManager::OnEnd ( )
virtual

Implements IDownload.

Reimplemented in DownloadManagerMunkee, and DownloadManagerMunkee.

Definition at line 171 of file DownloadManager.cpp.

◆ OnEnd() [2/2]

virtual HRESULT DownloadManager::OnEnd ( )
virtual

Implements IDownload.

Reimplemented in DownloadManagerMunkee, and DownloadManagerMunkee.

◆ OnError() [1/2]

HRESULT DownloadManager::OnError ( Int error)
virtual

Reimplemented in DownloadManagerMunkee.

Definition at line 138 of file DownloadManager.cpp.

◆ OnError() [2/2]

HRESULT DownloadManager::OnError ( int error)
virtual

Implements IDownload.

Reimplemented in DownloadManagerMunkee.

Definition at line 124 of file DownloadManager.cpp.

◆ OnProgressUpdate() [1/2]

HRESULT DownloadManager::OnProgressUpdate ( Int bytesread,
Int totalsize,
Int timetaken,
Int timeleft )
virtual

Reimplemented in DownloadManagerMunkee.

Definition at line 185 of file DownloadManager.cpp.

◆ OnProgressUpdate() [2/2]

HRESULT DownloadManager::OnProgressUpdate ( int bytesread,
int totalsize,
int timetaken,
int timeleft )
virtual

Implements IDownload.

Reimplemented in DownloadManagerMunkee.

Definition at line 171 of file DownloadManager.cpp.

◆ OnQueryResume() [1/2]

HRESULT DownloadManager::OnQueryResume ( )
virtual

Implements IDownload.

Definition at line 178 of file DownloadManager.cpp.

◆ OnQueryResume() [2/2]

virtual HRESULT DownloadManager::OnQueryResume ( )
virtual

Implements IDownload.

◆ OnStatusUpdate() [1/2]

HRESULT DownloadManager::OnStatusUpdate ( Int status)
virtual

Reimplemented in DownloadManagerMunkee.

Definition at line 191 of file DownloadManager.cpp.

◆ OnStatusUpdate() [2/2]

HRESULT DownloadManager::OnStatusUpdate ( int status)
virtual

Implements IDownload.

Reimplemented in DownloadManagerMunkee.

Definition at line 177 of file DownloadManager.cpp.

◆ queueFileForDownload() [1/2]

void DownloadManager::queueFileForDownload ( AsciiString server,
AsciiString username,
AsciiString password,
AsciiString file,
AsciiString localfile,
AsciiString regkey,
Bool tryResume )

Definition at line 99 of file DownloadManager.cpp.

◆ queueFileForDownload() [2/2]

void DownloadManager::queueFileForDownload ( std::string server,
std::string username,
std::string password,
std::string file,
std::string localfile,
std::string regkey,
bool tryResume )

Definition at line 85 of file DownloadManager.cpp.

◆ reset() [1/2]

void DownloadManager::reset ( void )

Definition at line 85 of file DownloadManager.cpp.

◆ reset() [2/2]

void DownloadManager::reset ( void )

◆ update() [1/2]

HRESULT DownloadManager::update ( void )

Definition at line 89 of file DownloadManager.cpp.

◆ update() [2/2]

HRESULT DownloadManager::update ( void )

◆ wasError() [1/2]

Bool DownloadManager::wasError ( void )
inline

Definition at line 75 of file DownloadManager.h.

◆ wasError() [2/2]

bool DownloadManager::wasError ( void )
inline

Definition at line 71 of file DownloadManager.h.

Member Data Documentation

◆ m_queuedDownloads

std::list< QueuedDownload > DownloadManager::m_queuedDownloads
protected

Definition at line 93 of file DownloadManager.h.


The documentation for this class was generated from the following files: