#include <DownloadProperties_MirrorsPage.h>
Public Types | |
| enum | { IDD = IDD_DOWNLOAD_MIRRORS } |
Public Member Functions | |
| CDownloadProperties_MirrorsPage () | |
| ~CDownloadProperties_MirrorsPage () | |
Public Attributes | |
| vmsDownloadSmartPtr | m_dld |
| CListCtrl | m_wndMirrs |
Protected Member Functions | |
| virtual void | DoDataExchange (CDataExchange *pDX) |
| void | UpdateEnabled () |
| void | FullUpdateMirrList () |
| void | FillMirrsList () |
| void | CheckFileSizeKnown () |
| void | UpdateMirrUsing () |
| void | UpdateMirrSpeed () |
| void | PrepareCHMgr (CPoint point) |
| void | ApplyLanguage () |
| virtual BOOL | OnInitDialog () |
| afx_msg void | OnContextMenu (CWnd *pWnd, CPoint point) |
| afx_msg BOOL | OnHelpInfo (HELPINFO *pHelpInfo) |
| afx_msg void | OnWhatisthis () |
| afx_msg void | OnCalcmirrspeed () |
| afx_msg void | OnAddmirror () |
| afx_msg void | OnFindmirrors () |
| afx_msg void | OnClickMirrs (NMHDR *pNMHDR, LRESULT *pResult) |
| afx_msg void | OnKeydownMirrs (NMHDR *pNMHDR, LRESULT *pResult) |
| afx_msg void | OnRemove () |
Static Protected Member Functions | |
| static DWORD WINAPI | _threadCalcMirrSpeed2 (LPVOID lp) |
| static DWORD WINAPI | _threadCalcMirrSpeed (LPVOID lp) |
| static DWORD WINAPI | _threadFindMirrors2 (LPVOID lp) |
| static DWORD WINAPI | _threadFindMirrors (LPVOID lp) |
Protected Attributes | |
| BOOL | m_bNeedStop |
Definition at line 13 of file DownloadProperties_MirrorsPage.h.
| anonymous enum |
| CDownloadProperties_MirrorsPage::CDownloadProperties_MirrorsPage | ( | ) |
| CDownloadProperties_MirrorsPage::~CDownloadProperties_MirrorsPage | ( | ) |
Definition at line 27 of file DownloadProperties_MirrorsPage.cpp.
| void CDownloadProperties_MirrorsPage::DoDataExchange | ( | CDataExchange * | pDX | ) | [protected, virtual] |
Definition at line 31 of file DownloadProperties_MirrorsPage.cpp.
References IDC_MIRRS, and m_wndMirrs.
| void CDownloadProperties_MirrorsPage::UpdateEnabled | ( | ) | [protected] |
Definition at line 400 of file DownloadProperties_MirrorsPage.cpp.
References IDC_REMOVE, and m_wndMirrs.
Referenced by FullUpdateMirrList(), OnClickMirrs(), OnInitDialog(), OnKeydownMirrs(), and OnRemove().
| void CDownloadProperties_MirrorsPage::FullUpdateMirrList | ( | ) | [protected] |
Definition at line 384 of file DownloadProperties_MirrorsPage.cpp.
References FillMirrsList(), IDC_CALCMIRRSPEED, LOG, m_dld, nl, TRUE, UpdateEnabled(), UpdateMirrSpeed(), and UpdateMirrUsing().
Referenced by OnAddmirror(), and OnFindmirrors().
| DWORD WINAPI CDownloadProperties_MirrorsPage::_threadCalcMirrSpeed2 | ( | LPVOID | lp | ) | [static, protected] |
Definition at line 372 of file DownloadProperties_MirrorsPage.cpp.
References m_bNeedStop, and m_dld.
Referenced by _threadCalcMirrSpeed().
| DWORD WINAPI CDownloadProperties_MirrorsPage::_threadCalcMirrSpeed | ( | LPVOID | lp | ) | [static, protected] |
Definition at line 339 of file DownloadProperties_MirrorsPage.cpp.
References _threadCalcMirrSpeed2(), ProcWaitInfo::bNeedStop, ProcWaitInfo::bWaitDone, FALSE, simple_client::info, ProcWaitInfo::lpParam1, m_bNeedStop, m_dld, NULL, and TRUE.
Referenced by OnCalcmirrspeed().
| void CDownloadProperties_MirrorsPage::FillMirrsList | ( | ) | [protected] |
Definition at line 319 of file DownloadProperties_MirrorsPage.cpp.
References fsURL::Create(), fsDownload_NetworkProperties::enProtocol, fsNPToScheme(), fsInternetDownloader::GetMirrorURLCount(), m_dld, m_wndMirrs, fsInternetDownloader::MirrorDNP(), fsDownload_NetworkProperties::pszPathName, fsDownload_NetworkProperties::pszServerName, and fsDownload_NetworkProperties::uServerPort.
Referenced by FullUpdateMirrList(), and OnInitDialog().
| DWORD WINAPI CDownloadProperties_MirrorsPage::_threadFindMirrors2 | ( | LPVOID | lp | ) | [static, protected] |
Definition at line 293 of file DownloadProperties_MirrorsPage.cpp.
References CheckFileSizeKnown(), fsIRToStr(), IR_SUCCESS, L_ERR, LS, m_bNeedStop, and m_dld.
Referenced by _threadFindMirrors().
| DWORD WINAPI CDownloadProperties_MirrorsPage::_threadFindMirrors | ( | LPVOID | lp | ) | [static, protected] |
Definition at line 254 of file DownloadProperties_MirrorsPage.cpp.
References _threadFindMirrors2(), ProcWaitInfo::bNeedStop, ProcWaitInfo::bWaitDone, FALSE, simple_client::info, ProcWaitInfo::lpParam1, m_bNeedStop, m_dld, NULL, and TRUE.
Referenced by OnFindmirrors().
| void CDownloadProperties_MirrorsPage::CheckFileSizeKnown | ( | ) | [protected] |
Definition at line 242 of file DownloadProperties_MirrorsPage.cpp.
Referenced by _threadFindMirrors2().
| void CDownloadProperties_MirrorsPage::UpdateMirrUsing | ( | ) | [protected] |
Definition at line 171 of file DownloadProperties_MirrorsPage.cpp.
References fsInternetDownloader::GetMirrorRefs(), fsInternetDownloader::GetMirrorURLCount(), m_dld, and m_wndMirrs.
Referenced by FullUpdateMirrList(), OnCalcmirrspeed(), and OnInitDialog().
| void CDownloadProperties_MirrorsPage::UpdateMirrSpeed | ( | ) | [protected] |
Definition at line 138 of file DownloadProperties_MirrorsPage.cpp.
References fsInternetDownloader::Get_BaseServerPingTime(), fsInternetDownloader::GetMirrorPingTime(), fsInternetDownloader::GetMirrorURLCount(), L_UNKNOWN, LS, m_dld, and m_wndMirrs.
Referenced by FullUpdateMirrList(), OnCalcmirrspeed(), and OnInitDialog().
| void CDownloadProperties_MirrorsPage::PrepareCHMgr | ( | CPoint | point | ) | [protected] |
Definition at line 124 of file DownloadProperties_MirrorsPage.cpp.
References _CHMgr, IDC_ADDMIRROR, IDC_CALCMIRRSPEED, IDC_FINDMIRRORS, L_ADDMIRRORHERE, L_CALCMIRRSSPEEDHERE, L_FINDMIRRORHERE, LS, and fsContextHelpMgr::PrepareContextMenu().
Referenced by OnContextMenu(), and OnHelpInfo().
| void CDownloadProperties_MirrorsPage::ApplyLanguage | ( | ) | [protected] |
Definition at line 112 of file DownloadProperties_MirrorsPage.cpp.
References _LngMgr, fsMFCLangMgr::ApplyLanguage(), IDC_ADDMIRROR, IDC_CALCMIRRSPEED, IDC_FINDMIRRORS, IDC_REMOVE, L_ADD, L_CALCMIRRSSPEED, L_FINDMIRROR, and L_REMOVE.
Referenced by OnInitDialog().
| BOOL CDownloadProperties_MirrorsPage::OnInitDialog | ( | ) | [protected, virtual] |
Definition at line 53 of file DownloadProperties_MirrorsPage.cpp.
References ApplyLanguage(), FALSE, FillMirrsList(), fsInternetDownloader::GetMirrorURLCount(), fsInternetDownloader::IsMirrSearchPerformed(), L_ISUSED, L_MIRRURLS, L_SERVSPEED, LS, m_dld, m_wndMirrs, CDownloadPropertiesSheet::OnInitDialog(), TRUE, UpdateEnabled(), UpdateMirrSpeed(), and UpdateMirrUsing().
| void CDownloadProperties_MirrorsPage::OnContextMenu | ( | CWnd * | pWnd, | |
| CPoint | point | |||
| ) | [protected] |
Definition at line 84 of file DownloadProperties_MirrorsPage.cpp.
References _CHMgr, PrepareCHMgr(), and fsContextHelpMgr::ShowMenu().
| BOOL CDownloadProperties_MirrorsPage::OnHelpInfo | ( | HELPINFO * | pHelpInfo | ) | [protected] |
Definition at line 90 of file DownloadProperties_MirrorsPage.cpp.
References _CHMgr, FALSE, NULL, fsContextHelpMgr::OnWT(), PrepareCHMgr(), and TRUE.
| void CDownloadProperties_MirrorsPage::OnWhatisthis | ( | ) | [protected] |
Definition at line 107 of file DownloadProperties_MirrorsPage.cpp.
References _CHMgr, and fsContextHelpMgr::OnWT().
| void CDownloadProperties_MirrorsPage::OnCalcmirrspeed | ( | ) | [protected] |
Definition at line 185 of file DownloadProperties_MirrorsPage.cpp.
References _threadCalcMirrSpeed(), L_CALCULATINGMIRRORSSPEED, LS, CWaitDlg::StartWaiting(), TRUE, UpdateMirrSpeed(), and UpdateMirrUsing().
| void CDownloadProperties_MirrorsPage::OnAddmirror | ( | ) | [protected] |
Definition at line 194 of file DownloadProperties_MirrorsPage.cpp.
References _DlgMgr, FullUpdateMirrList(), LOG, m_dld, CUrlWithLoginDlg::m_strPassword, CUrlWithLoginDlg::m_strUrl, CUrlWithLoginDlg::m_strUser, nl, fsDialogsMgr::OnDoModal(), and fsDialogsMgr::OnEndDialog().
| void CDownloadProperties_MirrorsPage::OnFindmirrors | ( | ) | [protected] |
Definition at line 218 of file DownloadProperties_MirrorsPage.cpp.
References _threadFindMirrors(), FullUpdateMirrList(), L_DONE, L_MIRRSEARCHPERFORMEDALREADY, L_NMIRRORSFOUND, L_NOMIRRORSFOUND, L_SEARCHINGFORMIRRORS, LS, m_dld, CWaitDlg::StartWaiting(), and TRUE.
| void CDownloadProperties_MirrorsPage::OnClickMirrs | ( | NMHDR * | pNMHDR, | |
| LRESULT * | pResult | |||
| ) | [protected] |
| void CDownloadProperties_MirrorsPage::OnKeydownMirrs | ( | NMHDR * | pNMHDR, | |
| LRESULT * | pResult | |||
| ) | [protected] |
Definition at line 411 of file DownloadProperties_MirrorsPage.cpp.
References OnRemove(), and UpdateEnabled().
| void CDownloadProperties_MirrorsPage::OnRemove | ( | ) | [protected] |
Definition at line 422 of file DownloadProperties_MirrorsPage.cpp.
References BOOL, FALSE, m_dld, m_wndMirrs, pos(), TRUE, and UpdateEnabled().
Referenced by OnKeydownMirrs().
Definition at line 18 of file DownloadProperties_MirrorsPage.h.
Referenced by _threadCalcMirrSpeed(), _threadCalcMirrSpeed2(), _threadFindMirrors(), _threadFindMirrors2(), CheckFileSizeKnown(), FillMirrsList(), FullUpdateMirrList(), CDownloadPropertiesSheet::Init(), OnAddmirror(), OnFindmirrors(), OnInitDialog(), OnRemove(), UpdateMirrSpeed(), and UpdateMirrUsing().
Definition at line 24 of file DownloadProperties_MirrorsPage.h.
Referenced by DoDataExchange(), FillMirrsList(), OnInitDialog(), OnRemove(), UpdateEnabled(), UpdateMirrSpeed(), and UpdateMirrUsing().
BOOL CDownloadProperties_MirrorsPage::m_bNeedStop [protected] |
Definition at line 34 of file DownloadProperties_MirrorsPage.h.
Referenced by _threadCalcMirrSpeed(), _threadCalcMirrSpeed2(), _threadFindMirrors(), and _threadFindMirrors2().
1.5.6