#include <vmsSimpleFileDownloader.h>
Public Member Functions | |
| fsInternetResult | Download (LPCSTR pszUrl, LPCSTR pszFileName) |
| void | Stop () |
| fsInternetResult | GetLastError () |
| bool | IsRunning () |
| vmsSimpleFileDownloader () | |
| virtual | ~vmsSimpleFileDownloader () |
Protected Member Functions | |
| void | CreateDownloader () |
Static Protected Member Functions | |
| static DWORD | _DownloadMgrEvents (fsDownloadMgr *pMgr, fsDownloaderEvent ev, UINT uInfo, LPVOID lp) |
| static void | _DownloadMgrDescEvents (fsDownloadMgr *, fsDownloadMgr_EventDescType, LPCSTR pszDesc, LPVOID lp) |
Protected Attributes | |
| fsDownloadMgr * | m_dldr |
Definition at line 14 of file vmsSimpleFileDownloader.h.
| vmsSimpleFileDownloader::vmsSimpleFileDownloader | ( | ) |
| vmsSimpleFileDownloader::~vmsSimpleFileDownloader | ( | ) | [virtual] |
| fsInternetResult vmsSimpleFileDownloader::Download | ( | LPCSTR | pszUrl, | |
| LPCSTR | pszFileName | |||
| ) |
Definition at line 26 of file vmsSimpleFileDownloader.cpp.
References AER_REWRITE, fsDownloadMgr::CreateByUrl(), CreateDownloader(), DPF_DONTRESTARTIFNORESUME, fsDownload_Properties::dwFlags, fsDownload_Properties::enAER, fsDownload_Properties::enSCR, fsnew, fsDownloadMgr::GetDP(), IR_S_FALSE, IR_SUCCESS, IsRunning(), m_dldr, fsDownload_Properties::pszAdditionalExt, fsDownload_Properties::pszFileName, SAFE_DELETE_ARRAY, SCR_STOP, fsDownloadMgr::StartDownloading(), fsDownload_Properties::uMaxAttempts, and fsDownload_Properties::uMaxSections.
Referenced by CDownloadsWnd::_threadCheckDldHasOpinions(), and vmsMaliciousDownloadChecker::Check().
| void vmsSimpleFileDownloader::Stop | ( | void | ) |
Definition at line 97 of file vmsSimpleFileDownloader.cpp.
References m_dldr, and fsDownloadMgr::StopDownloading().
Referenced by vmsMaliciousDownloadChecker::Stop().
| fsInternetResult vmsSimpleFileDownloader::GetLastError | ( | ) |
Definition at line 92 of file vmsSimpleFileDownloader.cpp.
References fsDownloadMgr::GetLastError(), and m_dldr.
Referenced by CDownloadsWnd::_threadCheckDldHasOpinions(), and vmsMaliciousDownloadChecker::Check().
| bool vmsSimpleFileDownloader::IsRunning | ( | ) |
Definition at line 87 of file vmsSimpleFileDownloader.cpp.
References FALSE, fsDownloadMgr::HasActivity(), and m_dldr.
Referenced by CDownloadsWnd::_threadCheckDldHasOpinions(), vmsMaliciousDownloadChecker::Check(), and Download().
| void vmsSimpleFileDownloader::CreateDownloader | ( | ) | [protected] |
Definition at line 79 of file vmsSimpleFileDownloader.cpp.
References _DownloadMgrDescEvents(), _DownloadMgrEvents(), fsnew1, m_dldr, NULL, SAFE_DELETE, fsDownloadMgr::SetEventDescFunc(), and fsDownloadMgr::SetEventFunc().
Referenced by Download().
| DWORD vmsSimpleFileDownloader::_DownloadMgrEvents | ( | fsDownloadMgr * | pMgr, | |
| fsDownloaderEvent | ev, | |||
| UINT | uInfo, | |||
| LPVOID | lp | |||
| ) | [static, protected] |
Definition at line 61 of file vmsSimpleFileDownloader.cpp.
References DE_EXTERROR, fsDownloadMgr::DeleteFile(), DMEE_STOPPEDORDONE, FALSE, fsDownloadMgr::IsDone(), m_dldr, and TRUE.
Referenced by CreateDownloader().
| void vmsSimpleFileDownloader::_DownloadMgrDescEvents | ( | fsDownloadMgr * | , | |
| fsDownloadMgr_EventDescType | , | |||
| LPCSTR | pszDesc, | |||
| LPVOID | lp | |||
| ) | [static, protected] |
fsDownloadMgr* vmsSimpleFileDownloader::m_dldr [protected] |
Definition at line 31 of file vmsSimpleFileDownloader.h.
Referenced by _DownloadMgrEvents(), CreateDownloader(), Download(), GetLastError(), IsRunning(), Stop(), vmsSimpleFileDownloader(), and ~vmsSimpleFileDownloader().
1.5.6