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

#include <inetfile/inetfile.h>

Go to the source code of this file.

Classes

struct  fsDownload_NetworkProperties
struct  fsDNP_BuffersInfo
struct  fsDownload_Properties
struct  fsDP_BuffersInfo

Defines

#define FTP_USEPASSIVEMODE   1
#define FTP_DONTSENDLIST   2
#define DNPF_RESTARTSECTIONWHENSPEEDTOOLOW   1
#define DNPF_IMMEDIATELY_SEND_AUTH_AS_BASIC   2
#define DPF_DONTRESTARTIFNORESUME   1
#define DPF_USEZIPPREVIEW   2
#define DPF_USEHIDDENATTRIB   4
#define DPF_APPENDCOMMENTTOFILENAME   8
#define DPF_STARTWHENDONE   16
#define DPF_STARTWHENDONE_NOCONF   32
#define DPF_RETRDATEFROMSERVER   64
#define DPF_GENERATEDESCFILE   128

Enumerations

enum  fsNetworkProtocol { NP_HTTP, NP_HTTPS, NP_FTP, NP_FILE }
enum  fsInternetAccessTypeEx { IATE_NOPROXY = IAT_NOPROXY, IATE_PRECONFIGPROXY = IAT_PRECONFIGPROXY, IATE_MANUALPROXY = IAT_MANUALPROXY, IATE_FIREFOXPROXY }
enum  fsDownloadFileError { DFE_NOTFOUND = 0, DFE_ACCDENIED = 1, DFE_UNKNOWN = 2 }
enum  fsDownloadFileErrorProcessing { DFEP_STOP, DFEP_IGNORE }
enum  fsAlreadyExistReaction {
  AER_ASKUSER, AER_REWRITE, AER_RENAME, AER_RESUME,
  AER_STOP, AER_RENAME_2
}
enum  fsSizeChangeReaction { SCR_ASKUSER, SCR_RESTART, SCR_ADJUSTFORNEWSIZE, SCR_STOP }
enum  vmsIntegrityCheckFailedReaction { ICFR_ASKUSER, ICFR_RESTART, ICFR_IGNORE }

Functions

void fsDNP_SetAuth (fsDownload_NetworkProperties *dnp, LPCSTR pszUser, LPCSTR pszPassword)
BOOL fsDNP_GetDefaults (fsDownload_NetworkProperties *pDNP, fsDNP_BuffersInfo *pBuffs, BOOL bAllocate)
void fsDNP_GetDefaults_Free (fsDownload_NetworkProperties *pDNP)
fsInternetResult fsDNP_ApplyUrl (fsDownload_NetworkProperties *dnp, LPCSTR pszUrl)
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_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 fsDNP_CloneSettings (fsDownload_NetworkProperties *dst, fsDownload_NetworkProperties *src)
void fsDNP_GetURL (fsDownload_NetworkProperties *dnp, LPSTR pszURL)


Define Documentation

#define DNPF_IMMEDIATELY_SEND_AUTH_AS_BASIC   2

#define DNPF_RESTARTSECTIONWHENSPEEDTOOLOW   1

#define DPF_APPENDCOMMENTTOFILENAME   8

#define DPF_DONTRESTARTIFNORESUME   1

#define DPF_GENERATEDESCFILE   128

#define DPF_RETRDATEFROMSERVER   64

#define DPF_STARTWHENDONE   16

#define DPF_STARTWHENDONE_NOCONF   32

#define DPF_USEHIDDENATTRIB   4

#define DPF_USEZIPPREVIEW   2

#define FTP_DONTSENDLIST   2

#define FTP_USEPASSIVEMODE   1


Enumeration Type Documentation

Enumerator:
AER_ASKUSER 
AER_REWRITE 
AER_RENAME 
AER_RESUME 
AER_STOP 
AER_RENAME_2 

Definition at line 103 of file DownloadProperties.h.

Enumerator:
DFE_NOTFOUND 
DFE_ACCDENIED 
DFE_UNKNOWN 

Definition at line 89 of file DownloadProperties.h.

Enumerator:
DFEP_STOP 
DFEP_IGNORE 

Definition at line 97 of file DownloadProperties.h.

Enumerator:
IATE_NOPROXY 
IATE_PRECONFIGPROXY 
IATE_MANUALPROXY 
IATE_FIREFOXPROXY 

Definition at line 23 of file DownloadProperties.h.

Enumerator:
NP_HTTP 
NP_HTTPS 
NP_FTP 
NP_FILE 

Definition at line 11 of file DownloadProperties.h.

Enumerator:
SCR_ASKUSER 
SCR_RESTART 
SCR_ADJUSTFORNEWSIZE 
SCR_STOP 

Definition at line 113 of file DownloadProperties.h.

Enumerator:
ICFR_ASKUSER 
ICFR_RESTART 
ICFR_IGNORE 

Definition at line 121 of file DownloadProperties.h.


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 fsGetProxy ( fsNetworkProtocol  np,
CString &  strProxy,
CString &  strUser,
CString &  strPassword 
)

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

INTERNET_SCHEME fsNPToScheme ( fsNetworkProtocol  np  ) 

fsNetworkProtocol fsSchemeToNP ( INTERNET_SCHEME  scheme  ) 


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