#include <CreateDownloadListDlg.h>
Public Types | |
| enum | { IDD = IDD_CREATEURLLIST } |
Public Member Functions | |
| CCreateDownloadListDlg (CWnd *pParent=NULL) | |
Public Attributes | |
| fs::list< fsString > * | m_pvUrls |
| fs::list< fsString > * | m_pvReferers |
| fs::list< fsString > * | m_pvComments |
| fs::list< fsString > * | m_pvCookies |
| CListCtrl | m_wndUrlList |
| CDownloadsGroupsComboBox | m_wndGroups |
| CButton | m_btnSetTime |
| CButton | m_btnCreateGroup |
| CButton | m_btnChooseFolder |
Protected Member Functions | |
| virtual void | DoDataExchange (CDataExchange *pDX) |
| DLDS_LIST * | GenerateDownloads (BOOL bCheckDldExistance=TRUE) |
| void | UpdateEnabled () |
| void | DeleteSelectedUrls () |
| void | WriteUrlsToDialog () |
| BOOL | AddDownloads () |
| BOOL | ReadAuth () |
| void | OnChangeGroups () |
| void | ReadAutostart () |
| 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 () |
| virtual void | OnOK () |
| afx_msg void | OnKeydownUrllist (NMHDR *pNMHDR, LRESULT *pResult) |
| afx_msg void | OnDelselected () |
| afx_msg void | OnItemchangedUrllist (NMHDR *pNMHDR, LRESULT *pResult) |
| afx_msg void | OnSelchangeGroups () |
| afx_msg void | OnCreategroup () |
| afx_msg void | OnChoosefolder () |
| afx_msg void | OnSettime () |
| afx_msg void | OnAdvanced () |
| afx_msg void | OnQuerysize () |
| afx_msg void | OnStartnow () |
| afx_msg void | OnStartmanual () |
| afx_msg void | OnStartschedule () |
| afx_msg void | OnUselogin () |
| afx_msg void | OnFilter () |
Static Protected Member Functions | |
| static DWORD WINAPI | _threadCalculateSize (LPVOID lp) |
| static DWORD WINAPI | _threadCalcSize (LPVOID lp) |
Protected Attributes | |
| BOOL | m_bScheduled |
| int | m_iAutostart |
| BOOL | m_bAuthChanged |
| BOOL | m_bGroupChanged |
| BOOL | m_bAutoStart |
| fsSchedule | m_task |
| vmsDownloadSmartPtr | m_dld |
Definition at line 15 of file CreateDownloadListDlg.h.
| anonymous enum |
| CCreateDownloadListDlg::CCreateDownloadListDlg | ( | CWnd * | pParent = NULL |
) |
Definition at line 27 of file CreateDownloadListDlg.cpp.
References Download_CreateInstance(), and m_dld.
| void CCreateDownloadListDlg::DoDataExchange | ( | CDataExchange * | pDX | ) | [protected, virtual] |
Definition at line 36 of file CreateDownloadListDlg.cpp.
References IDC_CHOOSEFOLDER, IDC_CREATEGROUP, IDC_GROUPS, IDC_SETTIME, IDC_URLLIST, m_btnChooseFolder, m_btnCreateGroup, m_btnSetTime, m_wndGroups, and m_wndUrlList.
| DLDS_LIST * CCreateDownloadListDlg::GenerateDownloads | ( | BOOL | bCheckDldExistance = TRUE |
) | [protected] |
Definition at line 623 of file CreateDownloadListDlg.cpp.
References CCreateDownloadDlg::_CheckDownloadAlrExists(), fsDownloadsMgr::Download_CloneSettings(), Download_CreateInstance(), IR_SUCCESS, m_dld, m_pvCookies, m_pvReferers, m_pvUrls, m_wndUrlList, NULL, SAFE_DELETE_ARRAY, and TRUE.
Referenced by AddDownloads(), and OnQuerysize().
| DWORD WINAPI CCreateDownloadListDlg::_threadCalculateSize | ( | LPVOID | lp | ) | [static, protected] |
Definition at line 558 of file CreateDownloadListDlg.cpp.
References ProcWaitInfo::bNeedStop, ProcWaitInfo::bWaitDone, BytesToXBytes(), FALSE, for(), fsBytesToStr(), IDC_MESSAGE, IDC_QUERYSIZE, simple_client::info, ProcWaitInfo::iProgress, IR_SUCCESS, CDownloadsWnd::IsSizesInBytes(), L_DONE, L_ERR, L_QUERINGSIZE, L_QUERYSIZE, L_UNKNOWN, ProcWaitInfo::lpParam1, ProcWaitInfo::lpParam2, ProcWaitInfo::lpParam3, LS, and TRUE.
Referenced by _threadCalcSize().
| DWORD WINAPI CCreateDownloadListDlg::_threadCalcSize | ( | LPVOID | lp | ) | [static, protected] |
Definition at line 531 of file CreateDownloadListDlg.cpp.
References _threadCalculateSize(), ProcWaitInfo::bNeedStop, ProcWaitInfo::bWaitDone, FALSE, simple_client::info, ProcWaitInfo::lpParam3, and NULL.
Referenced by OnQuerysize().
| void CCreateDownloadListDlg::UpdateEnabled | ( | ) | [protected] |
Definition at line 438 of file CreateDownloadListDlg.cpp.
References b, BOOL, IDC__PASSWORD, IDC__USER, IDC_DELSELECTED, IDC_PASSWORD, IDC_USELOGIN, IDC_USER, and m_wndUrlList.
Referenced by OnInitDialog(), OnItemchangedUrllist(), and OnUselogin().
| void CCreateDownloadListDlg::DeleteSelectedUrls | ( | ) | [protected] |
Definition at line 415 of file CreateDownloadListDlg.cpp.
References L_AREYOUSURE, L_CONFIRMATION, LS, m_wndUrlList, and pos().
Referenced by OnDelselected(), and OnKeydownUrllist().
| void CCreateDownloadListDlg::WriteUrlsToDialog | ( | ) | [protected] |
Definition at line 345 of file CreateDownloadListDlg.cpp.
References _SitesMgr, BOOL, fsURL::Crack(), FALSE, fsSitesMgr::FindSite2(), fsIsServersEqual(), fsNPToSiteValidFor(), fsSchemeToNP(), fsURL::GetHostName(), fsURL::GetInternetScheme(), fsString::GetLength(), IDC_PASSWORD, IDC_USELOGIN, IDC_USER, IR_SUCCESS, m_pvUrls, m_wndUrlList, fsSiteInfo::strPassword, fsSiteInfo::strUser, and TRUE.
Referenced by OnInitDialog().
| BOOL CCreateDownloadListDlg::AddDownloads | ( | ) | [protected] |
Definition at line 330 of file CreateDownloadListDlg.cpp.
References CDownloadsWnd::CreateDownloads(), FALSE, GenerateDownloads(), m_bScheduled, m_task, NULL, and TRUE.
Referenced by OnOK().
| BOOL CCreateDownloadListDlg::ReadAuth | ( | ) | [protected] |
Definition at line 297 of file CreateDownloadListDlg.cpp.
References FALSE, fsnew, IDC_PASSWORD, IDC_USELOGIN, IDC_USER, L_ENTERUSER, L_INPERR, LS, m_dld, fsDownload_NetworkProperties::pszPassword, fsDownload_NetworkProperties::pszUserName, SAFE_DELETE_ARRAY, and TRUE.
Referenced by OnOK(), and OnQuerysize().
| void CCreateDownloadListDlg::OnChangeGroups | ( | ) | [protected] |
Definition at line 234 of file CreateDownloadListDlg.cpp.
References CDownloadsGroupsComboBox::GetSelectedGroup(), IDC_OUTFOLDER, and m_wndGroups.
Referenced by OnCreategroup(), OnInitDialog(), and OnSelchangeGroups().
| void CCreateDownloadListDlg::ReadAutostart | ( | ) | [protected] |
Definition at line 208 of file CreateDownloadListDlg.cpp.
References _App, FALSE, IDC_STARTMANUAL, IDC_STARTNOW, IDC_STARTSCHEDULE, fsAppSettings::Last_Autostart(), m_bScheduled, m_dld, m_iAutostart, and TRUE.
Referenced by OnInitDialog().
| void CCreateDownloadListDlg::PrepareCHMgr | ( | CPoint | point | ) | [protected] |
Definition at line 171 of file CreateDownloadListDlg.cpp.
References _CHMgr, IDC__GROUP, IDC__PASSWORD, IDC__SAVETO, IDC__USER, IDC_ADVANCED, IDC_CHOOSEFOLDER, IDC_CREATEGROUP, IDC_DELSELECTED, IDC_GROUPS, IDC_OUTFOLDER, IDC_PASSWORD, IDC_QUERYSIZE, IDC_SETTIME, IDC_STARTMANUAL, IDC_STARTNOW, IDC_STARTSCHEDULE, IDC_URLLIST, IDC_USELOGIN, IDC_USER, L_ACCEPTCHANGES, L_ADVANCEDHERE, L_BROWSEFOR, L_CREATEGRP, L_DELETESELECTEDHERE, L_DLDFOLDERHERE, L_DONTACCEPTCHANGES, L_GROUPHERE, L_LOGINHERE, L_MANUALLYSTARTHERE, L_PWDHERE, L_QUERYBATCHSIZEHERE, L_SCHEDULESTARTHERE, L_SETTIMEHERE, L_STARTNOWHERE, L_URLLISTHERE, L_USERHERE, LS, and fsContextHelpMgr::PrepareContextMenu().
Referenced by OnContextMenu(), and OnHelpInfo().
| void CCreateDownloadListDlg::ApplyLanguage | ( | ) | [protected] |
Definition at line 126 of file CreateDownloadListDlg.cpp.
References _LngMgr, fsMFCLangMgr::ApplyLanguage(), IDC__GROUP, IDC__PASSWORD, IDC__SAVETO, IDC__START, IDC__USER, IDC_ADVANCED, IDC_DELSELECTED, IDC_FILTER, IDC_QUERYSIZE, IDC_STARTMANUAL, IDC_STARTNOW, IDC_STARTSCHEDULE, IDC_USELOGIN, L_ADDLISTOFDOWNLOADS, L_ADVANCED, L_AUTHORIZATION, L_AUTOMATICALLY, L_CANCEL, L_DELETESELECTED, L_FILTER, L_GROUP, L_MANUALLY, L_PASSWORD, L_QUERYSIZE, L_SAVETO, L_SCHEDULE, L_START, and L_USER.
Referenced by OnInitDialog().
| BOOL CCreateDownloadListDlg::OnInitDialog | ( | ) | [protected, virtual] |
Definition at line 70 of file CreateDownloadListDlg.cpp.
References _App, _LastFolders, ApplyLanguage(), _FILETIME::dwHighDateTime, _FILETIME::dwLowDateTime, fsWhenToStart::enType, FALSE, CDownloadsGroupsComboBox::Fill(), fsSetForegroundWindow(), fsCmdHistoryMgr::GetRecord(), fsCmdHistoryMgr::GetRecordCount(), fsSchedule::hts, HTS_ONCE, IDC_OUTFOLDER, IDC_PASSWORD, IDC_USER, IDI_CHOOSEFOLDER, IDI_CREATEGROUP, IDI_SETTIME, fsWhenToStart::last, m_bAuthChanged, m_bGroupChanged, m_btnChooseFolder, m_btnCreateGroup, m_btnSetTime, m_dld, m_task, m_wndGroups, fsAppSettings::NewDL_GroupId(), fsWhenToStart::next, OnChangeGroups(), ReadAutostart(), CDownloadsGroupsComboBox::SelectGroupById(), SICO, TRUE, UpdateEnabled(), fsAppSettings::UserName(), fsAppSettings::UserPassword(), fsSchedule::uWaitForConfirmation, and WriteUrlsToDialog().
| void CCreateDownloadListDlg::OnContextMenu | ( | CWnd * | pWnd, | |
| CPoint | point | |||
| ) | [protected] |
Definition at line 148 of file CreateDownloadListDlg.cpp.
References _CHMgr, PrepareCHMgr(), and fsContextHelpMgr::ShowMenu().
| BOOL CCreateDownloadListDlg::OnHelpInfo | ( | HELPINFO * | pHelpInfo | ) | [protected] |
Definition at line 154 of file CreateDownloadListDlg.cpp.
References _CHMgr, FALSE, NULL, fsContextHelpMgr::OnWT(), PrepareCHMgr(), and TRUE.
| void CCreateDownloadListDlg::OnWhatisthis | ( | ) | [protected] |
Definition at line 203 of file CreateDownloadListDlg.cpp.
References _CHMgr, and fsContextHelpMgr::OnWT().
| void CCreateDownloadListDlg::OnOK | ( | ) | [protected, virtual] |
Definition at line 239 of file CreateDownloadListDlg.cpp.
References _App, CCreateDownloadDlg::_CheckFolderName(), _DldsGrps, _LastFolders, AddDownloads(), fsCmdHistoryMgr::AddRecord(), BOOL, DPF_USEZIPPREVIEW, FALSE, vmsDownloadsGroupsMgr::FindGroup(), fsnew, fsPathToGoodPath(), CDownloadsGroupsComboBox::GetSelectedGroup(), IDC_OUTFOLDER, L_ENTERFLRNAME, L_INPERR, fsAppSettings::Last_Autostart(), LPSTR, LS, m_dld, m_iAutostart, m_wndGroups, fsAppSettings::NewDL_GroupId(), fsAppSettings::NewDL_UseZIPPreview(), fsAppSettings::NewGrp_SelectWay(), NGSW_USE_ALWAYS_SAME_GROUP_WITH_OUTFOLDER_AUTO_UPDATE, NULL, fsAppSettings::OnDlHasBeenCreatedByUser(), ReadAuth(), CDownloadsGroupsComboBox::RememberSelectedGroup(), and fsAppSettings::UseZipPreview().
| void CCreateDownloadListDlg::OnKeydownUrllist | ( | NMHDR * | pNMHDR, | |
| LRESULT * | pResult | |||
| ) | [protected] |
| void CCreateDownloadListDlg::OnDelselected | ( | ) | [protected] |
| void CCreateDownloadListDlg::OnItemchangedUrllist | ( | NMHDR * | pNMHDR, | |
| LRESULT * | pResult | |||
| ) | [protected] |
| void CCreateDownloadListDlg::OnSelchangeGroups | ( | ) | [protected] |
Definition at line 456 of file CreateDownloadListDlg.cpp.
References m_bGroupChanged, OnChangeGroups(), and TRUE.
| void CCreateDownloadListDlg::OnCreategroup | ( | ) | [protected] |
Definition at line 462 of file CreateDownloadListDlg.cpp.
References CDownloadsGroupsComboBox::CreateNewGroup(), CDownloadsGroupsComboBox::GetSelectedGroup(), m_wndGroups, and OnChangeGroups().
| void CCreateDownloadListDlg::OnChoosefolder | ( | ) | [protected] |
Definition at line 468 of file CreateDownloadListDlg.cpp.
References CFolderBrowser::Create(), CFolderBrowser::GetPath(), IDC_OUTFOLDER, L_CHOOSEOUTFOLDER, LS, and NULL.
| void CCreateDownloadListDlg::OnSettime | ( | ) | [protected] |
Definition at line 484 of file CreateDownloadListDlg.cpp.
References _DlgMgr, FALSE, IDC_STARTNOW, IDC_STARTSCHEDULE, CScheduleSheet::Init(), L_SCHEDULEDLDS, LS, m_bScheduled, m_dld, m_iAutostart, m_task, fsDialogsMgr::OnDoModal(), fsDialogsMgr::OnEndDialog(), and TRUE.
| void CCreateDownloadListDlg::OnAdvanced | ( | ) | [protected] |
Definition at line 504 of file CreateDownloadListDlg.cpp.
References _DlgMgr, DPS_SHP_NOGENERALNOMIRR, CDownloadPropertiesSheet::Init(), L_ADVANCED, LS, m_dld, NP_HTTP, fsDialogsMgr::OnDoModal(), and fsDialogsMgr::OnEndDialog().
| void CCreateDownloadListDlg::OnQuerysize | ( | ) | [protected] |
Definition at line 518 of file CreateDownloadListDlg.cpp.
References _threadCalcSize(), FALSE, GenerateDownloads(), L_QUERINGSIZE, LS, ReadAuth(), CWaitDlg::StartWaiting(), and TRUE.
| void CCreateDownloadListDlg::OnStartnow | ( | ) | [protected] |
Definition at line 680 of file CreateDownloadListDlg.cpp.
References FALSE, m_bScheduled, m_dld, m_iAutostart, and TRUE.
| void CCreateDownloadListDlg::OnStartmanual | ( | ) | [protected] |
Definition at line 687 of file CreateDownloadListDlg.cpp.
References FALSE, m_bScheduled, m_dld, and m_iAutostart.
| void CCreateDownloadListDlg::OnStartschedule | ( | ) | [protected] |
Definition at line 694 of file CreateDownloadListDlg.cpp.
References FALSE, m_bScheduled, m_dld, m_iAutostart, and TRUE.
| void CCreateDownloadListDlg::OnUselogin | ( | ) | [protected] |
| void CCreateDownloadListDlg::OnFilter | ( | ) | [protected] |
Definition at line 706 of file CreateDownloadListDlg.cpp.
References _App, _DlgMgr, BOOL, fsURL::Crack(), fsAppSettings::DldListDlg_Filter_LastExts(), fsAppSettings::DldListDlg_Filter_LastExtsRemove(), fsDialogsMgr::DoModal(), FALSE, fsFileNameFromUrlPath(), fsURL::GetInternetScheme(), fsURL::GetPath(), INTERNET_SCHEME_FTP, IR_SUCCESS, IsExtInExtsStr(), CDlgExtensionsFilter::m_bRemove, m_pvUrls, CDlgExtensionsFilter::m_strExts, m_wndUrlList, and TRUE.
| fs::list<fsString>* CCreateDownloadListDlg::m_pvUrls |
Definition at line 19 of file CreateDownloadListDlg.h.
Referenced by CWgUrlListReceiver::_threadAddUrlListDialog(), GenerateDownloads(), OnFilter(), and WriteUrlsToDialog().
| fs::list<fsString>* CCreateDownloadListDlg::m_pvReferers |
Definition at line 20 of file CreateDownloadListDlg.h.
Referenced by CWgUrlListReceiver::_threadAddUrlListDialog(), and GenerateDownloads().
| fs::list<fsString>* CCreateDownloadListDlg::m_pvComments |
Definition at line 21 of file CreateDownloadListDlg.h.
Referenced by CWgUrlListReceiver::_threadAddUrlListDialog().
| fs::list<fsString>* CCreateDownloadListDlg::m_pvCookies |
Definition at line 22 of file CreateDownloadListDlg.h.
Referenced by CWgUrlListReceiver::_threadAddUrlListDialog(), and GenerateDownloads().
| CListCtrl CCreateDownloadListDlg::m_wndUrlList |
Definition at line 28 of file CreateDownloadListDlg.h.
Referenced by DeleteSelectedUrls(), DoDataExchange(), GenerateDownloads(), OnFilter(), UpdateEnabled(), and WriteUrlsToDialog().
Definition at line 29 of file CreateDownloadListDlg.h.
Referenced by DoDataExchange(), OnChangeGroups(), OnCreategroup(), OnInitDialog(), and OnOK().
Definition at line 30 of file CreateDownloadListDlg.h.
Referenced by DoDataExchange(), and OnInitDialog().
Definition at line 31 of file CreateDownloadListDlg.h.
Referenced by DoDataExchange(), and OnInitDialog().
Definition at line 32 of file CreateDownloadListDlg.h.
Referenced by DoDataExchange(), and OnInitDialog().
BOOL CCreateDownloadListDlg::m_bScheduled [protected] |
Definition at line 56 of file CreateDownloadListDlg.h.
Referenced by AddDownloads(), OnSettime(), OnStartmanual(), OnStartnow(), OnStartschedule(), and ReadAutostart().
int CCreateDownloadListDlg::m_iAutostart [protected] |
Definition at line 58 of file CreateDownloadListDlg.h.
Referenced by OnOK(), OnSettime(), OnStartmanual(), OnStartnow(), OnStartschedule(), and ReadAutostart().
BOOL CCreateDownloadListDlg::m_bAuthChanged [protected] |
BOOL CCreateDownloadListDlg::m_bGroupChanged [protected] |
Definition at line 60 of file CreateDownloadListDlg.h.
Referenced by OnInitDialog(), and OnSelchangeGroups().
BOOL CCreateDownloadListDlg::m_bAutoStart [protected] |
Definition at line 61 of file CreateDownloadListDlg.h.
fsSchedule CCreateDownloadListDlg::m_task [protected] |
Definition at line 62 of file CreateDownloadListDlg.h.
Referenced by AddDownloads(), OnInitDialog(), and OnSettime().
vmsDownloadSmartPtr CCreateDownloadListDlg::m_dld [protected] |
Definition at line 64 of file CreateDownloadListDlg.h.
Referenced by CCreateDownloadListDlg(), GenerateDownloads(), OnAdvanced(), OnInitDialog(), OnOK(), OnSettime(), OnStartmanual(), OnStartnow(), OnStartschedule(), ReadAuth(), and ReadAutostart().
1.5.6