#include <inetfile/inetfile.h>Go to the source code of this file.
| #define DNPF_IMMEDIATELY_SEND_AUTH_AS_BASIC 2 |
Definition at line 71 of file DownloadProperties.h.
Referenced by fsInternetDownloader::_threadOpenUrl(), fsDownloadMgr::DoRapidshareSupport(), and fsInternetDownloader::QuerySize().
| #define DNPF_RESTARTSECTIONWHENSPEEDTOOLOW 1 |
Definition at line 69 of file DownloadProperties.h.
Referenced by fsInternetDownloader::_threadDownload(), CDownloadProperties_ConnectionPage::OnApply(), and CDownloadProperties_ConnectionPage::OnInitDialog().
| #define DPF_APPENDCOMMENTTOFILENAME 8 |
Definition at line 133 of file DownloadProperties.h.
Referenced by CDownloadProperties_MiscPage::OnApply(), fsDownloadMgr::OnDone(), and CDownloadProperties_MiscPage::OnInitDialog().
| #define DPF_DONTRESTARTIFNORESUME 1 |
Definition at line 128 of file DownloadProperties.h.
Referenced by fsDownloadMgr::ApplyProperties(), fsUpdateMgr::CheckForUpdate(), vmsSimpleFileDownloader::Download(), fsAppSettings::DownloadFlags(), CDownloadProperties_MiscPage::OnApply(), and CDownloadProperties_MiscPage::OnInitDialog().
| #define DPF_GENERATEDESCFILE 128 |
| #define DPF_RETRDATEFROMSERVER 64 |
Definition at line 139 of file DownloadProperties.h.
Referenced by fsDownloadMgr::_threadDownloadMgr(), CDownloadProperties_MiscPage::OnApply(), CDownloadProperties_MiscPage::OnInitDialog(), and fsDownloadMgr::SetFileTime().
| #define DPF_STARTWHENDONE 16 |
Definition at line 135 of file DownloadProperties.h.
Referenced by CDownloadsWnd::CreateBtDownloadFromFile(), CDownloadsWnd::CreateDownload(), vmsDownloadMgrEx::IsLaunchWhenDone(), CDownloadProperties_MiscPage::OnApply(), CDownloadProperties_MiscPage::OnInitDialog(), CCreateDownloadDlg::OnOK(), and vmsDownloadMgrEx::set_LaunchWhenDone().
| #define DPF_STARTWHENDONE_NOCONF 32 |
Definition at line 137 of file DownloadProperties.h.
Referenced by CDownloadsWnd::CreateDownload(), and vmsDownloadMgrEx::IsDontConfirmLaunchWhenDone().
| #define DPF_USEHIDDENATTRIB 4 |
Definition at line 131 of file DownloadProperties.h.
Referenced by fsAppSettings::DownloadFlags(), CDownloadProperties_MiscPage::OnApply(), CDownloadProperties_MiscPage::OnInitDialog(), fsDownloadMgr::OpenFile(), and fsDownloadMgr::RemoveHiddenAttribute().
| #define DPF_USEZIPPREVIEW 2 |
Definition at line 129 of file DownloadProperties.h.
Referenced by CDownloadsWnd::CreateDownloadWithDefSettings(), fsDP_GetDefaults(), CCreateDownloadsDlg::OnOK(), CCreateDownloadListDlg::OnOK(), CCreateDownloadDlg::OnOK(), and CCreateBatchDownload::OnOK().
| #define FTP_DONTSENDLIST 2 |
Definition at line 21 of file DownloadProperties.h.
Referenced by fsInternetDownloader::ApplyProperties(), CSites_GeneralPage::OnApply(), CDownloadProperties_ProtocolPage::OnApply(), CSites_GeneralPage::OnInitDialog(), and CDownloadProperties_ProtocolPage::OnInitDialog().
| #define FTP_USEPASSIVEMODE 1 |
Definition at line 19 of file DownloadProperties.h.
Referenced by CCreateDownloadDlg::_SavePassword(), fsInternetDownloader::ApplyProperties(), fsDNP_GetDefaults(), fsAppSettings::FtpFlags(), CSites_GeneralPage::OnApply(), CDownloadProperties_ProtocolPage::OnApply(), CSites_GeneralPage::OnInitDialog(), and CDownloadProperties_ProtocolPage::OnInitDialog().
Definition at line 103 of file DownloadProperties.h.
| enum fsDownloadFileError |
Definition at line 89 of file DownloadProperties.h.
Definition at line 23 of file DownloadProperties.h.
| enum fsNetworkProtocol |
| enum fsSizeChangeReaction |
Definition at line 113 of file DownloadProperties.h.
Definition at line 121 of file DownloadProperties.h.
| fsInternetResult fsDNP_ApplyUrl | ( | fsDownload_NetworkProperties * | dnp, | |
| LPCSTR | pszUrl | |||
| ) |
Definition at line 244 of file DownloadProperties.cpp.
References fsURL::Crack(), fsDownload_NetworkProperties::enProtocol, fsGetProxyByNP(), fsnew, fsSchemeToNP(), fsURL::GetHostName(), fsURL::GetInternetScheme(), fsURL::GetPassword(), fsURL::GetPath(), fsURL::GetPort(), fsURL::GetUserName(), IR_SUCCESS, fsDownload_NetworkProperties::pszPassword, fsDownload_NetworkProperties::pszPathName, fsDownload_NetworkProperties::pszProxyName, fsDownload_NetworkProperties::pszProxyPassword, fsDownload_NetworkProperties::pszProxyUserName, fsDownload_NetworkProperties::pszServerName, fsDownload_NetworkProperties::pszUserName, SAFE_DELETE_ARRAY, TRUE, and fsDownload_NetworkProperties::uServerPort.
Referenced by fsArchiveInternetStream::Open_imp(), fsInternetDownloader::OpenUrl_imp(), fsInternetDownloader::QuerySize(), CCreateDownloadDlg::ReadDNP(), and CUrlWithLoginDlg::UpdateDNP().
| BOOL fsDNP_CloneSettings | ( | fsDownload_NetworkProperties * | dst, | |
| fsDownload_NetworkProperties * | src | |||
| ) |
Definition at line 463 of file DownloadProperties.cpp.
References fsDownload_NetworkProperties::bUseCookie, fsDownload_NetworkProperties::bUseHttp11, fsDownload_NetworkProperties::dwFtpFlags, fsDownload_NetworkProperties::enAccType, fsDownload_NetworkProperties::enFtpTransferType, fsDownload_NetworkProperties::enProtocol, FALSE, fsFillBuffer(), fsIsSameProtocols(), fsDownload_NetworkProperties::pszAgent, fsDownload_NetworkProperties::pszASCIIExts, fsDownload_NetworkProperties::pszProxyName, fsDownload_NetworkProperties::pszProxyPassword, fsDownload_NetworkProperties::pszProxyUserName, SAFE_DELETE_ARRAY, TRUE, and fsDownload_NetworkProperties::wRollBackSize.
Referenced by fsInternetDownloader::AddMirrorURL(), and CUrlWithLoginDlg::OnOK().
| fsInternetResult fsDNP_GetByUrl | ( | fsDownload_NetworkProperties * | pDNP, | |
| fsDNP_BuffersInfo * | pBuffs, | |||
| BOOL | bAllocate, | |||
| LPCSTR | pszUrl | |||
| ) |
Definition at line 184 of file DownloadProperties.cpp.
References BOOL, fsURL::Crack(), fsDownload_NetworkProperties::enProtocol, fsDNP_GetDefaults(), fsDNP_GetDefaults_Free(), fsFillBuffer(), fsGetProxyByNP(), fsSchemeToNP(), fsURL::GetHostName(), fsURL::GetInternetScheme(), fsURL::GetPassword(), fsURL::GetPath(), fsURL::GetPort(), fsURL::GetUserName(), IR_ERROR, IR_SUCCESS, fsDNP_BuffersInfo::nPasswordSize, fsDNP_BuffersInfo::nPathNameSize, fsDNP_BuffersInfo::nServerNameSize, fsDNP_BuffersInfo::nUserNameSize, fsDownload_NetworkProperties::pszPassword, fsDownload_NetworkProperties::pszPathName, fsDownload_NetworkProperties::pszServerName, fsDownload_NetworkProperties::pszUserName, SAFE_DELETE_ARRAY, TRUE, and fsDownload_NetworkProperties::uServerPort.
Referenced by fsInternetDownloader::AddMirrorURL(), and fsDownloadMgr::CreateByUrl().
| void fsDNP_GetByUrl_Free | ( | fsDownload_NetworkProperties * | pDNP | ) |
Definition at line 297 of file DownloadProperties.cpp.
References fsDNP_GetDefaults_Free(), fsDownload_NetworkProperties::pszPathName, fsDownload_NetworkProperties::pszServerName, and SAFE_DELETE_ARRAY.
Referenced by fsDownloadMgr::CreateByUrl(), fsInternetDownloader::RemoveAllMirrors(), fsInternetDownloader::RemoveMirror(), fsDownloadMgr::~fsDownloadMgr(), and fsInternetDownloader::~fsInternetDownloader().
| BOOL fsDNP_GetDefaults | ( | fsDownload_NetworkProperties * | pDNP, | |
| fsDNP_BuffersInfo * | pBuffs, | |||
| BOOL | bAllocate | |||
| ) |
Definition at line 32 of file DownloadProperties.cpp.
References _App, fsAppSettings::Agent(), fsAppSettings::ASCIIExts(), BOOL, fsDownload_NetworkProperties::bUseCookie, fsDownload_NetworkProperties::bUseHttp11, fsAppSettings::DNPFlags(), fsDownload_NetworkProperties::dwFlags, fsDownload_NetworkProperties::dwFtpFlags, fsDownload_NetworkProperties::enAccType, fsDownload_NetworkProperties::enFtpTransferType, FALSE, fsFillBuffer(), FTP_USEPASSIVEMODE, fsAppSettings::FtpFlags(), fsAppSettings::FtpTransferType(), FTT_BINARY, IATE_PRECONFIGPROXY, fsAppSettings::InternetAccessType(), fsAppSettings::LowSpeed_Duration(), fsAppSettings::LowSpeed_Factor(), fsDNP_BuffersInfo::nAgentSize, fsDNP_BuffersInfo::nCookiesSize, fsDNP_BuffersInfo::nPasswordSize, fsDNP_BuffersInfo::nPostDataSize, fsDNP_BuffersInfo::nRefferSize, fsDNP_BuffersInfo::nTransferTypeExtsSize, NULL, fsDNP_BuffersInfo::nUserNameSize, fsDownload_NetworkProperties::pszAgent, fsDownload_NetworkProperties::pszASCIIExts, fsDownload_NetworkProperties::pszCookies, fsDownload_NetworkProperties::pszPassword, fsDownload_NetworkProperties::pszPostData, fsDownload_NetworkProperties::pszReferer, fsDownload_NetworkProperties::pszUserName, fsAppSettings::Referer(), fsAppSettings::RollBackSize(), TRUE, fsAppSettings::UseCookie(), fsAppSettings::UseHttp11(), fsAppSettings::UserName(), fsAppSettings::UserPassword(), fsDownload_NetworkProperties::wLowSpeed_Duration, fsDownload_NetworkProperties::wLowSpeed_Factor, and fsDownload_NetworkProperties::wRollBackSize.
Referenced by fsDNP_GetByUrl().
| void fsDNP_GetDefaults_Free | ( | fsDownload_NetworkProperties * | pDNP | ) |
Definition at line 87 of file DownloadProperties.cpp.
References fsDownload_NetworkProperties::pszAgent, fsDownload_NetworkProperties::pszASCIIExts, fsDownload_NetworkProperties::pszCookies, fsDownload_NetworkProperties::pszPassword, fsDownload_NetworkProperties::pszPostData, fsDownload_NetworkProperties::pszProxyName, fsDownload_NetworkProperties::pszProxyPassword, fsDownload_NetworkProperties::pszProxyUserName, fsDownload_NetworkProperties::pszReferer, fsDownload_NetworkProperties::pszUserName, and SAFE_DELETE_ARRAY.
Referenced by fsDNP_GetByUrl(), and fsDNP_GetByUrl_Free().
| void fsDNP_GetURL | ( | fsDownload_NetworkProperties * | dnp, | |
| LPSTR | pszURL | |||
| ) |
Definition at line 494 of file DownloadProperties.cpp.
References fsURL::Create(), fsDownload_NetworkProperties::enProtocol, fsNPToScheme(), IR_SUCCESS, fsDownload_NetworkProperties::pszPassword, fsDownload_NetworkProperties::pszPathName, fsDownload_NetworkProperties::pszServerName, fsDownload_NetworkProperties::pszUserName, and fsDownload_NetworkProperties::uServerPort.
| void fsDNP_SetAuth | ( | fsDownload_NetworkProperties * | dnp, | |
| LPCSTR | pszUser, | |||
| LPCSTR | pszPassword | |||
| ) |
Definition at line 232 of file DownloadProperties.cpp.
References fsDownload_NetworkProperties::pszPassword, fsDownload_NetworkProperties::pszUserName, and SAFE_DELETE_ARRAY.
Referenced by CDownloadsWnd::CreateDownloadWithDefSettings().
| BOOL fsDP_GetDefaults | ( | fsDownload_Properties * | pDP, | |
| fsDP_BuffersInfo * | pBuffs, | |||
| BOOL | bAllocate | |||
| ) |
Definition at line 101 of file DownloadProperties.cpp.
References _App, fsAppSettings::AccDeniedReaction(), fsAppSettings::AdditionalExtension(), fsDownload_Properties::aEP, AER_REWRITE, fsAppSettings::AlreadyExistReaction(), fsDownload_Properties::bCheckIntegrityWhenDone, fsDownload_Properties::bIgnoreRestrictions, BOOL, fsDownload_Properties::bReserveDiskSpace, fsDownload_Properties::bRestartSpeedLow, DFE_ACCDENIED, DFE_NOTFOUND, DFEP_STOP, fsAppSettings::Download_CheckIntegrityWhenDone(), fsAppSettings::Download_CreateExt(), fsAppSettings::Download_IntegrityCheckFailedReaction(), fsAppSettings::DownloadFlags(), DPF_USEZIPPREVIEW, fsDownload_Properties::dwFlags, fsDownload_Properties::dwIntegrityCheckAlgorithm, fsDownload_Properties::enAER, fsDownload_Properties::enICFR, fsDownload_Properties::enSCR, FALSE, fsFillBuffer(), HA_MD5, fsAppSettings::IgnoreRestrictions(), IR_ERROR, IR_SUCCESS, fsAppSettings::MaxAttempts(), fsAppSettings::MaxSections(), fsDP_BuffersInfo::nAdditionalExtSize, fsAppSettings::NotFoundReaction(), NULL, fsDownload_Properties::pszAdditionalExt, fsDownload_Properties::pszCheckSum, fsDownload_Properties::pszCreateExt, fsAppSettings::ReserveDiskSpace(), fsAppSettings::RestartSpeedLow(), fsAppSettings::RetriesTime(), SCR_STOP, fsAppSettings::SectionMinSize(), fsAppSettings::SizeChangeReaction(), fsAppSettings::Timeout(), fsAppSettings::TrafficRestriction(), TRUE, fsDownload_Properties::uMaxAttempts, fsDownload_Properties::uMaxSections, fsDownload_Properties::uRetriesTime, fsDownload_Properties::uSectionMinSize, fsAppSettings::UseZipPreview(), fsDownload_Properties::uTimeout, fsDownload_Properties::uTrafficRestriction, and fsDownload_Properties::wStructSize.
Referenced by fsDownloadMgr::fsDownloadMgr().
| BOOL fsGetProxy | ( | fsNetworkProtocol | np, | |
| CString & | strProxy, | |||
| CString & | strUser, | |||
| CString & | strPassword | |||
| ) |
Definition at line 402 of file DownloadProperties.cpp.
References _App, FALSE, fsAppSettings::FtpProxy_Name(), fsAppSettings::FtpProxy_Password(), fsAppSettings::FtpProxy_UserName(), fsAppSettings::HttpProxy_Name(), fsAppSettings::HttpProxy_Password(), fsAppSettings::HttpProxy_UserName(), fsAppSettings::HttpsProxy_Name(), fsAppSettings::HttpsProxy_Password(), fsAppSettings::HttpsProxy_UserName(), NP_FILE, NP_FTP, NP_HTTP, NP_HTTPS, and TRUE.
Referenced by fsInternetFileListMgr::_threadGetList().
| fsInternetResult fsGetProxyByNP | ( | fsDownload_NetworkProperties * | pDNP, | |
| fsDNP_BuffersInfo * | pBuffs, | |||
| BOOL | bAllocate | |||
| ) |
Definition at line 347 of file DownloadProperties.cpp.
References _App, BOOL, fsDownload_NetworkProperties::enProtocol, fsFillBuffer(), fsAppSettings::FtpProxy_Name(), fsAppSettings::FtpProxy_Password(), fsAppSettings::FtpProxy_UserName(), fsAppSettings::HttpProxy_Name(), fsAppSettings::HttpProxy_Password(), fsAppSettings::HttpProxy_UserName(), fsAppSettings::HttpsProxy_Name(), fsAppSettings::HttpsProxy_Password(), fsAppSettings::HttpsProxy_UserName(), IR_BADURL, IR_ERROR, IR_SUCCESS, NP_FILE, NP_FTP, NP_HTTP, NP_HTTPS, fsDNP_BuffersInfo::nProxyNameSize, fsDNP_BuffersInfo::nProxyPasswordSize, fsDNP_BuffersInfo::nProxyUserNameSize, fsDownload_NetworkProperties::pszProxyName, fsDownload_NetworkProperties::pszProxyPassword, fsDownload_NetworkProperties::pszProxyUserName, and TRUE.
Referenced by fsDNP_ApplyUrl(), and fsDNP_GetByUrl().
| INTERNET_SCHEME fsNPToScheme | ( | fsNetworkProtocol | np | ) |
Definition at line 325 of file DownloadProperties.cpp.
References ASSERT, INTERNET_SCHEME_FILE, INTERNET_SCHEME_FTP, INTERNET_SCHEME_HTTP, INTERNET_SCHEME_HTTPS, INTERNET_SCHEME_UNKNOWN, NP_FILE, NP_FTP, NP_HTTP, and NP_HTTPS.
Referenced by fsInternetDownloader::_threadOpenUrl(), fsInternetDownloader::ApplyProperties(), CDownloadProperties_MirrorsPage::FillMirrsList(), fsDNP_GetURL(), fsInternetDownloader::get_URL(), fsDownloadMgr::get_URL(), CSCRDlg::OnInitDialog(), CDownloadProperties_GeneralPage::OnInitDialog(), fsArchiveInternetStream::Open_imp(), fsInternetDownloader::OpenUrl_imp(), and fsInternetDownloader::QuerySize().
| fsNetworkProtocol fsSchemeToNP | ( | INTERNET_SCHEME | scheme | ) |
Definition at line 304 of file DownloadProperties.cpp.
References ASSERT, FALSE, INTERNET_SCHEME_FILE, INTERNET_SCHEME_FTP, INTERNET_SCHEME_HTTP, INTERNET_SCHEME_HTTPS, NP_FILE, NP_FTP, NP_HTTP, and NP_HTTPS.
Referenced by fsInternetFileListMgr::_threadGetList(), fsDNP_ApplyUrl(), fsDNP_GetByUrl(), CCreateDownloadDlg::OnAdvanced(), CCreateBatchDownload::OnAdvanced(), CSites_GeneralPage::OnApply(), CCreateDownloadDlg::OnMirrors(), CSpiderAddPageDlg::OnOK(), CCreateBatchDownload::OnOK(), CSpiderAddPageDlg::OnUrlChanged(), CCreateDownloadDlg::UrlChanged(), CCreateBatchDownload::UrlChanged(), and CCreateDownloadListDlg::WriteUrlsToDialog().
1.5.6