#include <WGUrlReceiver.h>
Public Member Functions | |
| CWGUrlReceiver () | |
| STDMETHOD() | get_FlashVideoDownload (BOOL *pVal) |
| STDMETHOD() | put_FlashVideoDownload (BOOL newVal) |
| STDMETHOD() | get_FileName (BSTR *pVal) |
| STDMETHOD() | put_FileName (BSTR newVal) |
| STDMETHOD() | get_DisableURLExistsCheck (BOOL *pVal) |
| STDMETHOD() | put_DisableURLExistsCheck (BOOL newVal) |
| STDMETHOD() | get_DisableMaliciousChecking (BOOL *pVal) |
| STDMETHOD() | put_DisableMaliciousChecking (BOOL newVal) |
| STDMETHOD() | get_ForceDownloadAutoStart (BOOL *pVal) |
| STDMETHOD() | put_ForceDownloadAutoStart (BOOL newVal) |
| STDMETHOD() | get_ForceSilentEx (BOOL *pVal) |
| STDMETHOD() | put_ForceSilentEx (BOOL newVal) |
| STDMETHOD() | get_PostData (BSTR *pVal) |
| STDMETHOD() | put_PostData (BSTR newVal) |
| STDMETHOD() | get_Cookies (BSTR *pVal) |
| STDMETHOD() | put_Cookies (BSTR newVal) |
| STDMETHOD() | get_ForceSilent (BOOL *pVal) |
| STDMETHOD() | put_ForceSilent (BOOL newVal) |
| STDMETHOD() | get_UIState (BSTR *pVal) |
| STDMETHOD() | get_UseSkipExtsList (BOOL *pVal) |
| STDMETHOD() | put_UseSkipExtsList (BOOL newVal) |
| void | FinalRelease () |
| STDMETHOD() | get_IgnoreSize (BOOL *pVal) |
| STDMETHOD() | put_IgnoreSize (BOOL newVal) |
| STDMETHOD() | get_CheckExtension (BOOL *pVal) |
| STDMETHOD() | put_CheckExtension (BOOL newVal) |
| STDMETHOD() | AddDownload () |
| STDMETHOD() | get_Referer (BSTR *pVal) |
| STDMETHOD() | put_Referer (BSTR newVal) |
| STDMETHOD() | get_Comment (BSTR *pVal) |
| STDMETHOD() | put_Comment (BSTR newVal) |
| STDMETHOD() | get_Url (BSTR *pVal) |
| STDMETHOD() | put_Url (BSTR newVal) |
| STDMETHOD() | ShowAddPageDownloadDialog () |
| STDMETHOD() | ShowAddDownloadDialog () |
Protected Member Functions | |
| void | StartJobThread (LPTHREAD_START_ROUTINE pfn) |
| BOOL | is_ExtToSkip () |
Static Protected Member Functions | |
| static DWORD WINAPI | _threadAddPage (LPVOID lp) |
| static DWORD WINAPI | _threadAddDownload (LPVOID lp) |
| static HRESULT | AddDownload_imp (_ic_DownloadInfo *dlinfo) |
Protected Attributes | |
| HANDLE | m_hJobt |
| _ic_DownloadInfo | m_dlInfo |
| BOOL | m_bCheckExt |
| BOOL | m_bIgnoreSize |
Classes | |
| struct | _ic_DownloadInfo |
Definition at line 12 of file WGUrlReceiver.h.
| CWGUrlReceiver::CWGUrlReceiver | ( | ) | [inline] |
| STDMETHODIMP CWGUrlReceiver::get_FlashVideoDownload | ( | BOOL * | pVal | ) |
Definition at line 401 of file WGUrlReceiver.cpp.
References CWGUrlReceiver::_ic_DownloadInfo::bFlashVideoDownload, m_dlInfo, and S_OK.
| STDMETHODIMP CWGUrlReceiver::put_FlashVideoDownload | ( | BOOL | newVal | ) |
Definition at line 407 of file WGUrlReceiver.cpp.
References CWGUrlReceiver::_ic_DownloadInfo::bFlashVideoDownload, m_dlInfo, and S_OK.
| STDMETHODIMP CWGUrlReceiver::get_FileName | ( | BSTR * | pVal | ) |
Definition at line 389 of file WGUrlReceiver.cpp.
References CWGUrlReceiver::_ic_DownloadInfo::bstrFileName, m_dlInfo, S_OK, and SysAllocString().
| STDMETHODIMP CWGUrlReceiver::put_FileName | ( | BSTR | newVal | ) |
Definition at line 395 of file WGUrlReceiver.cpp.
References CWGUrlReceiver::_ic_DownloadInfo::bstrFileName, m_dlInfo, and S_OK.
| STDMETHODIMP CWGUrlReceiver::get_DisableURLExistsCheck | ( | BOOL * | pVal | ) |
Definition at line 377 of file WGUrlReceiver.cpp.
References CWGUrlReceiver::_ic_DownloadInfo::bDisableURLExistsChecking, m_dlInfo, and S_OK.
| STDMETHODIMP CWGUrlReceiver::put_DisableURLExistsCheck | ( | BOOL | newVal | ) |
Definition at line 383 of file WGUrlReceiver.cpp.
References CWGUrlReceiver::_ic_DownloadInfo::bDisableURLExistsChecking, m_dlInfo, and S_OK.
| STDMETHODIMP CWGUrlReceiver::get_DisableMaliciousChecking | ( | BOOL * | pVal | ) |
Definition at line 365 of file WGUrlReceiver.cpp.
References CWGUrlReceiver::_ic_DownloadInfo::bDisableMaliciousChecking, m_dlInfo, and S_OK.
| STDMETHODIMP CWGUrlReceiver::put_DisableMaliciousChecking | ( | BOOL | newVal | ) |
Definition at line 371 of file WGUrlReceiver.cpp.
References CWGUrlReceiver::_ic_DownloadInfo::bDisableMaliciousChecking, m_dlInfo, and S_OK.
| STDMETHODIMP CWGUrlReceiver::get_ForceDownloadAutoStart | ( | BOOL * | pVal | ) |
Definition at line 353 of file WGUrlReceiver.cpp.
References CWGUrlReceiver::_ic_DownloadInfo::bForceAutoStart, m_dlInfo, and S_OK.
| STDMETHODIMP CWGUrlReceiver::put_ForceDownloadAutoStart | ( | BOOL | newVal | ) |
Definition at line 359 of file WGUrlReceiver.cpp.
References CWGUrlReceiver::_ic_DownloadInfo::bForceAutoStart, m_dlInfo, and S_OK.
| STDMETHODIMP CWGUrlReceiver::get_ForceSilentEx | ( | BOOL * | pVal | ) |
Definition at line 339 of file WGUrlReceiver.cpp.
References CWGUrlReceiver::_ic_DownloadInfo::bForceSilent, CWGUrlReceiver::_ic_DownloadInfo::bNoUIInForceSilentMode, m_dlInfo, and S_OK.
| STDMETHODIMP CWGUrlReceiver::put_ForceSilentEx | ( | BOOL | newVal | ) |
Definition at line 345 of file WGUrlReceiver.cpp.
References CWGUrlReceiver::_ic_DownloadInfo::bForceSilent, CWGUrlReceiver::_ic_DownloadInfo::bNoUIInForceSilentMode, m_dlInfo, and S_OK.
| STDMETHODIMP CWGUrlReceiver::get_PostData | ( | BSTR * | pVal | ) |
Definition at line 316 of file WGUrlReceiver.cpp.
References CWGUrlReceiver::_ic_DownloadInfo::bstrPostData, m_dlInfo, S_OK, and SysAllocString().
| STDMETHODIMP CWGUrlReceiver::put_PostData | ( | BSTR | newVal | ) |
Definition at line 322 of file WGUrlReceiver.cpp.
References CWGUrlReceiver::_ic_DownloadInfo::bstrPostData, m_dlInfo, and S_OK.
| STDMETHODIMP CWGUrlReceiver::get_Cookies | ( | BSTR * | pVal | ) |
Definition at line 304 of file WGUrlReceiver.cpp.
References CWGUrlReceiver::_ic_DownloadInfo::bstrCookies, m_dlInfo, S_OK, and SysAllocString().
| STDMETHODIMP CWGUrlReceiver::put_Cookies | ( | BSTR | newVal | ) |
Definition at line 310 of file WGUrlReceiver.cpp.
References CWGUrlReceiver::_ic_DownloadInfo::bstrCookies, m_dlInfo, and S_OK.
| STDMETHODIMP CWGUrlReceiver::get_ForceSilent | ( | BOOL * | pVal | ) |
Definition at line 291 of file WGUrlReceiver.cpp.
References CWGUrlReceiver::_ic_DownloadInfo::bForceSilent, m_dlInfo, and S_OK.
| STDMETHODIMP CWGUrlReceiver::put_ForceSilent | ( | BOOL | newVal | ) |
Definition at line 297 of file WGUrlReceiver.cpp.
References CWGUrlReceiver::_ic_DownloadInfo::bForceSilent, CWGUrlReceiver::_ic_DownloadInfo::bNoUIInForceSilentMode, FALSE, m_dlInfo, and S_OK.
| STDMETHODIMP CWGUrlReceiver::get_UIState | ( | BSTR * | pVal | ) |
Definition at line 246 of file WGUrlReceiver.cpp.
References E_FAIL, m_hJobt, NULL, S_OK, and SysAllocString().
| STDMETHODIMP CWGUrlReceiver::get_UseSkipExtsList | ( | BOOL * | pVal | ) |
| STDMETHODIMP CWGUrlReceiver::put_UseSkipExtsList | ( | BOOL | newVal | ) |
| void CWGUrlReceiver::FinalRelease | ( | ) |
| STDMETHODIMP CWGUrlReceiver::get_IgnoreSize | ( | BOOL * | pVal | ) |
| STDMETHODIMP CWGUrlReceiver::put_IgnoreSize | ( | BOOL | newVal | ) |
| STDMETHODIMP CWGUrlReceiver::get_CheckExtension | ( | BOOL * | pVal | ) |
| STDMETHODIMP CWGUrlReceiver::put_CheckExtension | ( | BOOL | newVal | ) |
| STDMETHODIMP CWGUrlReceiver::AddDownload | ( | ) |
Definition at line 39 of file WGUrlReceiver.cpp.
References _App, _threadAddDownload(), CWGUrlReceiver::_ic_DownloadInfo::bstrUrl, fsDownloadMgr::CreateByUrl(), FALSE, fsDownloadMgr::GetDownloader(), fsInternetDownloader::GetSSFileSize(), is_ExtToSkip(), LOG, m_bCheckExt, m_bIgnoreSize, m_dlInfo, fsAppSettings::Monitor_SkipSmaller(), nl, NULL, fsDownloadMgr::QuerySize(), S_OK, StartJobThread(), and TRUE.
Referenced by ShowAddDownloadDialog().
| STDMETHODIMP CWGUrlReceiver::get_Referer | ( | BSTR * | pVal | ) |
Definition at line 182 of file WGUrlReceiver.cpp.
References CWGUrlReceiver::_ic_DownloadInfo::bstrReferer, m_dlInfo, S_OK, and SysAllocString().
| STDMETHODIMP CWGUrlReceiver::put_Referer | ( | BSTR | newVal | ) |
Definition at line 188 of file WGUrlReceiver.cpp.
References CWGUrlReceiver::_ic_DownloadInfo::bstrReferer, m_dlInfo, and S_OK.
| STDMETHODIMP CWGUrlReceiver::get_Comment | ( | BSTR * | pVal | ) |
Definition at line 170 of file WGUrlReceiver.cpp.
References CWGUrlReceiver::_ic_DownloadInfo::bstrComment, m_dlInfo, S_OK, and SysAllocString().
| STDMETHODIMP CWGUrlReceiver::put_Comment | ( | BSTR | newVal | ) |
Definition at line 176 of file WGUrlReceiver.cpp.
References CWGUrlReceiver::_ic_DownloadInfo::bstrComment, m_dlInfo, and S_OK.
| STDMETHODIMP CWGUrlReceiver::get_Url | ( | BSTR * | pVal | ) |
Definition at line 21 of file WGUrlReceiver.cpp.
References CWGUrlReceiver::_ic_DownloadInfo::bstrUrl, m_dlInfo, and S_OK.
| STDMETHODIMP CWGUrlReceiver::put_Url | ( | BSTR | newVal | ) |
Definition at line 27 of file WGUrlReceiver.cpp.
References CWGUrlReceiver::_ic_DownloadInfo::bstrUrl, LOG, m_dlInfo, nl, and S_OK.
| STDMETHODIMP CWGUrlReceiver::ShowAddPageDownloadDialog | ( | ) |
Definition at line 66 of file WGUrlReceiver.cpp.
References _threadAddPage(), S_OK, and StartJobThread().
| STDMETHODIMP CWGUrlReceiver::ShowAddDownloadDialog | ( | void | ) |
| void CWGUrlReceiver::StartJobThread | ( | LPTHREAD_START_ROUTINE | pfn | ) | [protected] |
Definition at line 276 of file WGUrlReceiver.cpp.
References m_dlInfo, m_hJobt, UIThread::set_Thread(), and TRUE.
Referenced by AddDownload(), and ShowAddPageDownloadDialog().
| DWORD WINAPI CWGUrlReceiver::_threadAddPage | ( | LPVOID | lp | ) | [static, protected] |
Definition at line 80 of file WGUrlReceiver.cpp.
References CSpiderWnd::AddWebPage(), CWGUrlReceiver::_ic_DownloadInfo::bstrUrl, hr, HRESULT, S_FALSE, S_OK, and TRUE.
Referenced by ShowAddPageDownloadDialog().
| BOOL CWGUrlReceiver::is_ExtToSkip | ( | ) | [protected] |
Definition at line 206 of file WGUrlReceiver.cpp.
References _App, CWGUrlReceiver::_ic_DownloadInfo::bstrUrl, fsURL::Crack(), FALSE, fsFileNameFromUrlPath(), fsURL::GetInternetScheme(), fsURL::GetPath(), INTERNET_SCHEME_FTP, IR_SUCCESS, IsExtInExtsStr(), m_dlInfo, fsAppSettings::Monitor_SkipExts(), MY_MAX_PATH, NULL, and TRUE.
Referenced by AddDownload().
| DWORD WINAPI CWGUrlReceiver::_threadAddDownload | ( | LPVOID | lp | ) | [static, protected] |
Definition at line 72 of file WGUrlReceiver.cpp.
References AddDownload_imp().
Referenced by AddDownload().
| HRESULT CWGUrlReceiver::AddDownload_imp | ( | _ic_DownloadInfo * | dlinfo | ) | [static, protected] |
Definition at line 93 of file WGUrlReceiver.cpp.
References _App, CWGUrlReceiver::_ic_DownloadInfo::bDisableMaliciousChecking, CWGUrlReceiver::_ic_DownloadInfo::bDisableURLExistsChecking, CWGUrlReceiver::_ic_DownloadInfo::bFlashVideoDownload, CWGUrlReceiver::_ic_DownloadInfo::bForceAutoStart, CWGUrlReceiver::_ic_DownloadInfo::bForceSilent, CWGUrlReceiver::_ic_DownloadInfo::bNoUIInForceSilentMode, BOOL, CWGUrlReceiver::_ic_DownloadInfo::bstrComment, CWGUrlReceiver::_ic_DownloadInfo::bstrCookies, CWGUrlReceiver::_ic_DownloadInfo::bstrFileName, CWGUrlReceiver::_ic_DownloadInfo::bstrPostData, CWGUrlReceiver::_ic_DownloadInfo::bstrReferer, CWGUrlReceiver::_ic_DownloadInfo::bstrUrl, CDownloadsWnd::CreateDownload(), DWCD_NOFORCEAUTOLAUNCH, DWCDAP_COOKIES, DWCDAP_FILENAME, DWCDAP_FLAGS, DWCDAP_POSTDATA, DWDCDAP_F_DISABLEMALICIOUSCHECK, DWDCDAP_F_DONTCHECKURLALREADYEXISTS, DWDCDAP_F_FLASHVIDEODOWNLOAD, DWDCDAP_F_FORCEAUTOSTART, DWDCDAP_F_NO_UI, DWDCDAP_F_SETFOCUSTOOKBTN, vmsDWCD_AdditionalParameters::dwFlags, vmsDWCD_AdditionalParameters::dwMask, FALSE, ID_DLNOTADDED, LOG, fsAppSettings::Monitor_Silent(), nl, NULL, S_FALSE, S_OK, CMainFrame::ShowTimeoutBalloon(), vmsDWCD_AdditionalParameters::strCookies, vmsDWCD_AdditionalParameters::strFileName, vmsDWCD_AdditionalParameters::strPostData, and TRUE.
Referenced by _threadAddDownload().
HANDLE CWGUrlReceiver::m_hJobt [protected] |
Definition at line 88 of file WGUrlReceiver.h.
Referenced by FinalRelease(), get_UIState(), and StartJobThread().
_ic_DownloadInfo CWGUrlReceiver::m_dlInfo [protected] |
Definition at line 103 of file WGUrlReceiver.h.
Referenced by AddDownload(), get_Comment(), get_Cookies(), get_DisableMaliciousChecking(), get_DisableURLExistsCheck(), get_FileName(), get_FlashVideoDownload(), get_ForceDownloadAutoStart(), get_ForceSilent(), get_ForceSilentEx(), get_PostData(), get_Referer(), get_Url(), is_ExtToSkip(), put_Comment(), put_Cookies(), put_DisableMaliciousChecking(), put_DisableURLExistsCheck(), put_FileName(), put_FlashVideoDownload(), put_ForceDownloadAutoStart(), put_ForceSilent(), put_ForceSilentEx(), put_PostData(), put_Referer(), put_Url(), and StartJobThread().
BOOL CWGUrlReceiver::m_bCheckExt [protected] |
Definition at line 104 of file WGUrlReceiver.h.
Referenced by AddDownload(), get_CheckExtension(), and put_CheckExtension().
BOOL CWGUrlReceiver::m_bIgnoreSize [protected] |
Definition at line 105 of file WGUrlReceiver.h.
Referenced by AddDownload(), get_IgnoreSize(), and put_IgnoreSize().
1.5.6