D:/opendownloadmanager/ODM-1.x/DownloadProperties.cpp File Reference

#include "stdafx.h"
#include "DownloadProperties.h"
#include "Hash\vmsHash.h"

Go to the source code of this file.

Functions

BOOL fsFillBuffer (LPSTR *ppszBuffer, UINT *pnSize, LPCSTR pszFrom, BOOL bAllocate)
BOOL fsDNP_GetDefaults (fsDownload_NetworkProperties *pDNP, fsDNP_BuffersInfo *pBuffs, BOOL bAllocate)
void fsDNP_GetDefaults_Free (fsDownload_NetworkProperties *pDNP)
BOOL fsDP_GetDefaults (fsDownload_Properties *pDP, fsDP_BuffersInfo *pBuffs, BOOL bAllocate)
fsInternetResult fsDNP_GetByUrl (fsDownload_NetworkProperties *pDNP, fsDNP_BuffersInfo *pBuffs, BOOL bAllocate, LPCSTR pszUrl)
void fsDNP_SetAuth (fsDownload_NetworkProperties *dnp, LPCSTR pszUser, LPCSTR pszPassword)
fsInternetResult fsDNP_ApplyUrl (fsDownload_NetworkProperties *dnp, LPCSTR pszUrl)
void fsDNP_GetByUrl_Free (fsDownload_NetworkProperties *pDNP)
fsNetworkProtocol fsSchemeToNP (INTERNET_SCHEME scheme)
INTERNET_SCHEME fsNPToScheme (fsNetworkProtocol np)
fsInternetResult fsGetProxyByNP (fsDownload_NetworkProperties *pDNP, fsDNP_BuffersInfo *pBuffs, BOOL bAllocate)
BOOL fsGetProxy (fsNetworkProtocol np, CString &strProxy, CString &strUser, CString &strPassword)
BOOL fsIsSameProtocols (fsNetworkProtocol np1, fsNetworkProtocol np2)
BOOL fsDNP_CloneSettings (fsDownload_NetworkProperties *dst, fsDownload_NetworkProperties *src)
void fsDNP_GetURL (fsDownload_NetworkProperties *dnp, LPSTR pszURL)


Function Documentation

fsInternetResult fsDNP_ApplyUrl ( fsDownload_NetworkProperties dnp,
LPCSTR  pszUrl 
)

BOOL fsDNP_CloneSettings ( fsDownload_NetworkProperties dst,
fsDownload_NetworkProperties src 
)

fsInternetResult fsDNP_GetByUrl ( fsDownload_NetworkProperties pDNP,
fsDNP_BuffersInfo pBuffs,
BOOL  bAllocate,
LPCSTR  pszUrl 
)

void fsDNP_GetByUrl_Free ( fsDownload_NetworkProperties pDNP  ) 

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  ) 

void fsDNP_GetURL ( fsDownload_NetworkProperties dnp,
LPSTR  pszURL 
)

void fsDNP_SetAuth ( fsDownload_NetworkProperties dnp,
LPCSTR  pszUser,
LPCSTR  pszPassword 
)

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 fsFillBuffer ( LPSTR ppszBuffer,
UINT pnSize,
LPCSTR  pszFrom,
BOOL  bAllocate 
)

BOOL fsGetProxy ( fsNetworkProtocol  np,
CString &  strProxy,
CString &  strUser,
CString &  strPassword 
)

fsInternetResult fsGetProxyByNP ( fsDownload_NetworkProperties pDNP,
fsDNP_BuffersInfo pBuffs,
BOOL  bAllocate 
)

BOOL fsIsSameProtocols ( fsNetworkProtocol  np1,
fsNetworkProtocol  np2 
)

Definition at line 455 of file DownloadProperties.cpp.

References NP_HTTP, and NP_HTTPS.

Referenced by fsDNP_CloneSettings().

INTERNET_SCHEME fsNPToScheme ( fsNetworkProtocol  np  ) 

fsNetworkProtocol fsSchemeToNP ( INTERNET_SCHEME  scheme  ) 


Generated on Sun May 25 00:19:46 2008 by  doxygen 1.5.6