#include <Downloads_Tasks.h>

Public Member Functions | |
| CDownloads_Tasks () | |
| void | BeginAddDownloads () |
| void | EndAddDownloads () |
| vmsDownloadSmartPtr | GetItemData (int nItem) |
| void | DeleteAllItems () |
| void | UnlockList () |
| void | LockList () |
| void | SelectDownload (vmsDownloadSmartPtr dld) |
| void | CallSelectedDownload () |
| void | ApplyLanguage () |
| void | ApplyLanguageToMenu (CMenu *menu) |
| int | OnUpdateToolBar (UINT nID) |
| void | UnscheduleDownload (UINT nID) |
| void | UpdateAllDownloads () |
| void | DeleteDownload (vmsDownloadSmartPtr dld) |
| void | AddDownload (vmsDownloadSmartPtr dld, BOOL bSelThisDld=FALSE) |
| void | UpdateMenu (CMenu *pMenu) |
| void | WillBeDeleted (vmsDownloadSmartPtr dld) |
| vmsDownloadSmartPtr | GetActiveDownload () |
| void | UpdateDownload (vmsDownloadSmartPtr dld, BOOL bRedraw=TRUE) |
| void | AddDownloadToList (vmsDownloadSmartPtr dld, BOOL bSelThisDld=FALSE, bool bPlaceToTop=false) |
| int | FindItem (vmsDownloadSmartPtr dld) |
| BOOL | Create (CWnd *pParent) |
| virtual | ~CDownloads_Tasks () |
Static Public Member Functions | |
| static void | GetFileName (vmsDownloadSmartPtr dld, LPSTR pszFile) |
| static int | GetDownloadImage (vmsDownloadSmartPtr dld) |
| static CString | GetDownloadText (vmsDownloadSmartPtr dld, int nSubItem) |
Public Attributes | |
| BOOL | m_bSizesInBytes |
| class CDownloadsWnd * | m_pDownloadsWnd |
Protected Member Functions | |
| void | ScheduleProcessDownloads () |
| void | UpdateDownload (size_t nIndex, BOOL bRedraw) |
| void | ScheduleSelectedDlds (BOOL bStart) |
| void | Sort () |
| void | MoveSelectedDownloads (vmsMoveType) |
| virtual void | OnItemChanged (NM_LISTVIEW *pLV) |
| void | SortDownloads () |
| afx_msg void | OnGetdispinfo (NMHDR *pNMHDR, LRESULT *pResult) |
| void | OnSortModeChanged () |
| void | CalcCoordsForCurSel () |
| void | OnForceUpdate () |
| void | DeleteSelected (BOOL bDontConfirmFileDeleting=FALSE) |
| void | UpdateActiveDownload (int adjSelected) |
| void | OnKeyDown (WORD wVK) |
| void | OnDeleteAllItems () |
| void | OnDeleteItem (NM_LISTVIEW *pNM) |
| void | OnRClick () |
| void | OnClick () |
| afx_msg void | OnRButtonDown (UINT nFlags, CPoint point) |
| afx_msg void | OnLButtonDblClk (UINT nFlags, CPoint point) |
| afx_msg void | OnDldcreate () |
| afx_msg void | OnDlddelete () |
| afx_msg void | OnDldproperties () |
| afx_msg void | OnDldstart () |
| afx_msg void | OnDldstop () |
| afx_msg void | OnDldlaunch () |
| afx_msg void | OnDldopenfolder () |
| afx_msg void | OnDldschedule () |
| afx_msg void | OnDldautostart () |
| afx_msg void | OnDrawItem (int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct) |
| afx_msg void | OnMeasureItem (int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct) |
| afx_msg void | OnDldaddsection () |
| afx_msg void | OnDlddelsection () |
| afx_msg void | OnDldrestart () |
| afx_msg void | OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags) |
| afx_msg void | OnChar (UINT nChar, UINT nRepCnt, UINT nFlags) |
| afx_msg void | OnDldqsize () |
| afx_msg void | OnDldcreatebatch () |
| afx_msg int | OnCreate (LPCREATESTRUCT lpCreateStruct) |
| afx_msg void | OnDldcheckvir () |
| afx_msg void | OnDldfind () |
| afx_msg void | OnDldfindnext () |
| afx_msg void | OnDldunpack () |
| afx_msg void | OnDldmovedown () |
| afx_msg void | OnDldmoveup () |
| afx_msg void | OnDldcheckintegrity () |
| afx_msg void | OnDldmovetofolder () |
| afx_msg void | OnDldmovebottom () |
| afx_msg void | OnDldmovetop () |
| afx_msg void | OnDldschedulestop () |
| afx_msg void | OnDldgrantbandwidthfordld () |
| afx_msg void | OnDldshowprogressdlg () |
| afx_msg void | OnDldconvert () |
| afx_msg void | OnTimer (UINT nIDEvent) |
| afx_msg void | OnDldenableseeding () |
Static Protected Member Functions | |
| static void | _downloadsQuickSort (vmsDownloadSmartPtr *a, int N, int nCol) |
| static int | _compareDownloads (vmsDownloadSmartPtr dld1, vmsDownloadSmartPtr dld2, int nColumn) |
Protected Attributes | |
| bool | m_bHasEnableSeedingDlds |
| bool | m_bAddingDownloads |
| fsMutex | m_mxAddDel |
| CFloatingWndDropTarget | m_drop |
| DLDS_LIST | m_vDownloads |
| CImageList | m_selimages |
| fsODMenu | m_odmenu |
| CPoint | m_rbPt |
| vmsDownloadSmartPtr | m_pActiveDownload |
| CImageList | m_images |
Private Attributes | |
| BOOL | m_bAutoStart |
Friends | |
| class | CDownloadsWnd |
| class | CDownloaderProperties_ListPage |
Classes | |
| struct | _sRecordInfo |
Definition at line 33 of file Downloads_Tasks.h.
| CDownloads_Tasks::CDownloads_Tasks | ( | ) |
Definition at line 36 of file Downloads_Tasks.cpp.
References LCSM_DESCENDING_NOTSUPPORTED, m_bAddingDownloads, m_pActiveDownload, CListCtrlEx::m_sortModeSupport, and NULL.
| CDownloads_Tasks::~CDownloads_Tasks | ( | ) | [virtual] |
Definition at line 43 of file Downloads_Tasks.cpp.
| void CDownloads_Tasks::BeginAddDownloads | ( | ) |
Definition at line 1996 of file Downloads_Tasks.cpp.
References LockList(), and m_bAddingDownloads.
Referenced by CDownloadsWnd::CreateDownloads(), and CDownloadsWnd::FilterDownloads2().
| void CDownloads_Tasks::EndAddDownloads | ( | ) |
Definition at line 2002 of file Downloads_Tasks.cpp.
References m_bAddingDownloads, m_vDownloads, and UnlockList().
Referenced by CDownloadsWnd::CreateDownloads(), and CDownloadsWnd::FilterDownloads2().
| vmsDownloadSmartPtr CDownloads_Tasks::GetItemData | ( | int | nItem | ) |
Definition at line 1688 of file Downloads_Tasks.cpp.
References m_vDownloads.
Referenced by CDownloadsWnd::DeleteCompletedDownloadsInList(), CDownloadsWnd::DeleteDeadDownloadsInList(), CDownloadsWnd::DeleteDownloadsInList(), CDlgExportDownloads::ExportDownloads(), MoveSelectedDownloads(), CDownloadsWnd::StartDownloadsInList(), and CDownloadsWnd::StopDownloadsInList().
| void CDownloads_Tasks::DeleteAllItems | ( | ) |
Definition at line 1518 of file Downloads_Tasks.cpp.
References m_vDownloads, UpdateActiveDownload(), and CListCtrlEx::VirtualView_AllItemsWillBeDeleted().
Referenced by CDownloadsWnd::FilterDownloads(), and CDownloadsWnd::FilterDownloads2().
| void CDownloads_Tasks::UnlockList | ( | ) |
Definition at line 1354 of file Downloads_Tasks.cpp.
References m_mxAddDel, and fsMutex::Unlock().
Referenced by CDownloadsWnd::CreateDownloads(), EndAddDownloads(), CDownloadsWnd::FilterDownloads2(), and CDownloadsWnd::ShowDownloads().
| void CDownloads_Tasks::LockList | ( | ) |
Definition at line 1349 of file Downloads_Tasks.cpp.
References fsMutex::Lock(), and m_mxAddDel.
Referenced by BeginAddDownloads(), CDownloadsWnd::CreateDownloads(), CDownloadsWnd::FilterDownloads2(), and CDownloadsWnd::ShowDownloads().
| void CDownloads_Tasks::SelectDownload | ( | vmsDownloadSmartPtr | dld | ) |
Definition at line 1308 of file Downloads_Tasks.cpp.
References FALSE, FindItem(), pos(), and UpdateActiveDownload().
Referenced by AddDownloadToList(), CDownloadsWnd::CreateDownloads(), CDownloadsWnd::FilterDownloads2(), CDownloadsWnd::SelectDownload(), and CDownloadsWnd::ShowDownloads().
| void CDownloads_Tasks::CallSelectedDownload | ( | ) |
Definition at line 1277 of file Downloads_Tasks.cpp.
References _App, fsAppSettings::DownloadDialog_Use(), m_vDownloads, NULL, OnDldlaunch(), OnDldproperties(), pos(), and WM_DW_CREATEDLDDIALOG.
Referenced by OnKeyDown(), and OnLButtonDblClk().
| void CDownloads_Tasks::GetFileName | ( | vmsDownloadSmartPtr | dld, | |
| LPSTR | pszFile | |||
| ) | [static] |
Definition at line 1188 of file Downloads_Tasks.cpp.
References ASSERT, fsDownload_NetworkProperties::enProtocol, fsFileNameFromUrlPath(), fsGetFileName(), fsInternetDownloader::Get_FileName(), fsDownloadMgr::GetDNP(), fsDownloadMgr::GetDownloader(), fsDownloadMgr::GetDP(), NP_FTP, NULL, fsDownload_Properties::pszAdditionalExt, fsDownload_NetworkProperties::pszPathName, and TRUE.
Referenced by _compareDownloads(), CDownloadsWnd::_Events(), CDownloads_Deleted::_sortFunc(), CFloatingInfoWnd::AddDownloadToList(), fsDownloadsHistoryMgr::AddToHistory(), CMainFrame::Balloon_ShowDLInfo(), CDownloads_VideoPreview::Get_FileName(), GetDownloadText(), fsFindDownloadMgr::IsSatisfies(), CDlg_Download::Update(), and CDownloads_Deleted::UpdateDownload().
| void CDownloads_Tasks::ApplyLanguage | ( | ) |
Definition at line 939 of file Downloads_Tasks.cpp.
References L_ADDED, L_COMMENT, L_DOWNLOADED, L_FILENAME, L_SECTIONS, L_SIZE, L_SPEED, L_TIMELEFT, LS, and CListCtrlEx::SetColumnText().
Referenced by CDownloads_Downloads::ApplyLanguage().
| void CDownloads_Tasks::ApplyLanguageToMenu | ( | CMenu * | menu | ) |
Definition at line 862 of file Downloads_Tasks.cpp.
References ID_DLDADDSECTION, ID_DLDAUTOSTART, ID_DLDCHECKINTEGRITY, ID_DLDCHECKVIR, ID_DLDCONVERT, ID_DLDCREATE, ID_DLDCREATEBATCH, ID_DLDDELETE, ID_DLDDELSECTION, ID_DLDENABLESEEDING, ID_DLDFIND, ID_DLDFINDNEXT, ID_DLDGRANTBANDWIDTHFORDLD, ID_DLDLAUNCH, ID_DLDMOVEBOTTOM, ID_DLDMOVEDOWN, ID_DLDMOVETOFOLDER, ID_DLDMOVETOP, ID_DLDMOVEUP, ID_DLDOPENFOLDER, ID_DLDPROPERTIES, ID_DLDQSIZE, ID_DLDRESTART, ID_DLDSCHEDULE, ID_DLDSCHEDULESTOP, ID_DLDSHOWPROGRESSDLG, ID_DLDSTART, ID_DLDSTOP, ID_DLDUNPACK, L_ADDONEMORESECT, L_ADVANCED, L_AUTOSTARTDLD, L_CHECKFILEINTEGRITY, L_CONVERT_MEDIA_FILE, L_CREATEBATCHDLD, L_DELETEDLD, L_DELSECTION, L_DLDPROP, L_DLDSHOWPROGRESSDLG, L_DOWNLOADS, L_ENABLE_SEEDING, L_EXTRACTARCHIVE, L_FIND, L_FINDNEXT, L_GRANTBANDWIDTHFORDLD, L_LAUNCHFILE, L_MOVEBOTTOM, L_MOVEDLDFILETOFOLDER, L_MOVEDOWN, L_MOVETOP, L_MOVEUP, L_NEWDL, L_OPENFOLDER, L_PERFVIRCHECK, L_QUERYSIZE, L_RESTARTDL, L_SCHEDULE, L_SCHEDULE_START, L_SCHEDULE_STOP, L_STARTDLDS, L_STOPDLDS, and LS.
Referenced by OnRClick(), and CDownloadsWnd::Plugin_SetLanguage().
| int CDownloads_Tasks::OnUpdateToolBar | ( | UINT | nID | ) |
Definition at line 757 of file Downloads_Tasks.cpp.
References BOOL, FALSE, ID_DLD_VID_MUTE, ID_DLD_VID_PAUSE, ID_DLD_VID_PLAY, ID_DLD_VID_STOP, ID_DLDAUTOSTART, ID_DLDCHECKVIR, ID_DLDDELETE, ID_DLDLAUNCH, ID_DLDMOVEBOTTOM, ID_DLDMOVEDOWN, ID_DLDMOVETOP, ID_DLDMOVEUP, ID_DLDOPENFOLDER, ID_DLDPROPERTIES, ID_DLDSCHEDULE, ID_DLDSCHEDULESTOP, ID_DLDSHOWPROGRESSDLG, ID_DLDSTART, ID_DLDSTOP, CDownloads_Downloads::m_info, m_vDownloads, CDownloads_Info::m_video, CDownloadsWnd::m_wndDownloads, pos(), TRUE, CDownloads_VideoPreview::UpdateCommand(), WGP_CMDITEMSTATE_CHECKED, WGP_CMDITEMSTATE_DISABLED, and WGP_CMDITEMSTATE_ENABLED.
Referenced by CDownloadsWnd::OnUpdateToolBar().
| void CDownloads_Tasks::UnscheduleDownload | ( | UINT | nID | ) |
Definition at line 712 of file Downloads_Tasks.cpp.
References fsScheduleMgr::DeleteTask(), fsWhatToStart::enType, CShedulerWnd::GetMgr(), fsScheduleMgr::GetTask(), fsScheduleMgr::GetTaskCount(), fsWhatToStart::pvIDs, fsSchedule::wts, WTS_STARTDOWNLOAD, and WTS_STOPDOWNLOAD.
Referenced by WillBeDeleted().
| void CDownloads_Tasks::UpdateAllDownloads | ( | ) |
Definition at line 706 of file Downloads_Tasks.cpp.
Referenced by CDownloadsWnd::UpdateAllDownloads().
| void CDownloads_Tasks::DeleteDownload | ( | vmsDownloadSmartPtr | dld | ) |
Definition at line 661 of file Downloads_Tasks.cpp.
References FindItem(), fsMutex::Lock(), m_mxAddDel, m_vDownloads, fsMutex::Unlock(), and CListCtrlEx::VirtualView_ItemWillBeDeleted().
Referenced by CDownloads_Groups::ApplyNotGroupFilterForDownload(), CDownloadsWnd::RestartDownload(), and WillBeDeleted().
| void CDownloads_Tasks::AddDownload | ( | vmsDownloadSmartPtr | dld, | |
| BOOL | bSelThisDld = FALSE | |||
| ) |
Definition at line 655 of file Downloads_Tasks.cpp.
References AddDownloadToList(), and FindItem().
Referenced by CDownloads_Groups::ApplyNotGroupFilterForDownload(), and CDownloadsWnd::RestartDownload().
| void CDownloads_Tasks::UpdateMenu | ( | CMenu * | pMenu | ) |
Definition at line 500 of file Downloads_Tasks.cpp.
References _DldsMgr, BOOL, BTDF_DISABLE_SEEDING, BTDSE_SEEDING, DWWN_LISTOFDOWNLOADS, FALSE, CDownloadsWnd::Get_DWWN(), fsDownloadsMgr::get_HighestPriorityDownload(), ID_DLDADDSECTION, ID_DLDAUTOSTART, ID_DLDCHECKINTEGRITY, ID_DLDCHECKVIR, ID_DLDCONVERT, ID_DLDDELETE, ID_DLDDELSECTION, ID_DLDENABLESEEDING, ID_DLDGRANTBANDWIDTHFORDLD, ID_DLDLAUNCH, ID_DLDMOVEBOTTOM, ID_DLDMOVEDOWN, ID_DLDMOVETOFOLDER, ID_DLDMOVETOP, ID_DLDMOVEUP, ID_DLDOPENFOLDER, ID_DLDPROPERTIES, ID_DLDQSIZE, ID_DLDRESTART, ID_DLDSCHEDULE, ID_DLDSCHEDULESTOP, ID_DLDSHOWPROGRESSDLG, ID_DLDSTART, ID_DLDSTOP, ID_DLDUNPACK, m_bAutoStart, m_bHasEnableSeedingDlds, m_vDownloads, pos(), and TRUE.
Referenced by OnRClick(), and CDownloadsWnd::OnUpdateMenu().
| void CDownloads_Tasks::WillBeDeleted | ( | vmsDownloadSmartPtr | dld | ) |
Definition at line 471 of file Downloads_Tasks.cpp.
References DeleteDownload(), and UnscheduleDownload().
Referenced by CDownloadsWnd::_Events().
| vmsDownloadSmartPtr CDownloads_Tasks::GetActiveDownload | ( | ) |
Definition at line 222 of file Downloads_Tasks.cpp.
References m_pActiveDownload.
Referenced by CDownloadsWnd::_Events().
| void CDownloads_Tasks::UpdateDownload | ( | vmsDownloadSmartPtr | dld, | |
| BOOL | bRedraw = TRUE | |||
| ) |
Definition at line 162 of file Downloads_Tasks.cpp.
References FindItem().
Referenced by CDownloadsWnd::_Events(), AddDownloadToList(), OnDldautostart(), OnDldenableseeding(), OnDldstop(), OnGetdispinfo(), CDownloadsWnd::OnTimer(), CDownloadsWnd::StopDownloadsInList(), and CDownloadsWnd::UpdateDownload().
| void CDownloads_Tasks::AddDownloadToList | ( | vmsDownloadSmartPtr | dld, | |
| BOOL | bSelThisDld = FALSE, |
|||
| bool | bPlaceToTop = false | |||
| ) |
Definition at line 133 of file Downloads_Tasks.cpp.
References FALSE, fsMutex::Lock(), m_bAddingDownloads, m_mxAddDel, m_vDownloads, SelectDownload(), TRUE, fsMutex::Unlock(), UpdateDownload(), and CListCtrlEx::VirtualView_ItemWillBeAdded().
Referenced by CDownloadsWnd::_Events(), AddDownload(), CDownloadsWnd::CreateDownloads(), and CDownloadsWnd::FilterDownloads2().
| int CDownloads_Tasks::GetDownloadImage | ( | vmsDownloadSmartPtr | dld | ) | [static] |
Definition at line 682 of file Downloads_Tasks.cpp.
References BTDS_SEEDING, CShedulerWnd::GetMgr(), and fsScheduleMgr::IsDownloadScheduled().
Referenced by CSpiderTaskTree::GetDownloadImage(), CFVDownloads_Tasks::OnGetdispinfo(), and OnGetdispinfo().
| int CDownloads_Tasks::FindItem | ( | vmsDownloadSmartPtr | dld | ) |
Definition at line 304 of file Downloads_Tasks.cpp.
References m_vDownloads.
Referenced by AddDownload(), DeleteDownload(), CDownloadsWnd::RestartDownload(), SelectDownload(), and UpdateDownload().
| CString CDownloads_Tasks::GetDownloadText | ( | vmsDownloadSmartPtr | dld, | |
| int | nSubItem | |||
| ) | [static] |
Definition at line 1384 of file Downloads_Tasks.cpp.
References BTDS_SEEDING, BytesToString(), BytesToXBytes(), FALSE, FileTimeToStr(), fsBytesToStr(), fsTimeInSecondsToStr(), GetFileName(), CDownloadsWnd::IsSizesInBytes(), L_S, LS, simple_client::s, and TRUE.
Referenced by CFVDownloads_Tasks::OnGetdispinfo(), OnGetdispinfo(), CFDMDownload::ReadFromDownload(), and CDlg_Download::Update().
| BOOL CDownloads_Tasks::Create | ( | CWnd * | pParent | ) |
Definition at line 90 of file Downloads_Tasks.cpp.
References FALSE, IDB_DOWNLOADSTASKS, IDB_DOWNLOADSTASKS_SEL, CListCtrlEx::InitSortImages(), m_images, m_selimages, CListCtrlEx::ReadState(), SBMP, CListCtrlEx::SetSelectedImages(), and TRUE.
Referenced by CDownloads_Downloads::OnCreate().
| void CDownloads_Tasks::ScheduleProcessDownloads | ( | ) | [protected] |
Definition at line 2092 of file Downloads_Tasks.cpp.
References NULL.
Referenced by OnDldmovebottom(), OnDldmovedown(), OnDldmovetop(), and OnDldmoveup().
| void CDownloads_Tasks::UpdateDownload | ( | size_t | nIndex, | |
| BOOL | bRedraw | |||
| ) | [protected] |
Definition at line 2009 of file Downloads_Tasks.cpp.
References ASSERT, COLORREF, FALSE, m_vDownloads, NULL, RST_NONE, RST_PRESENT, RST_UNKNOWN, and CListCtrlEx::SetItemColor().
| void CDownloads_Tasks::ScheduleSelectedDlds | ( | BOOL | bStart | ) | [protected] |
Definition at line 1925 of file Downloads_Tasks.cpp.
References _DlgMgr, CShedulerWnd::AddTask(), BOOL, fsScheduleMgr::CalculateStartTime(), fsSchedule::dwFlags, _FILETIME::dwHighDateTime, _FILETIME::dwLowDateTime, fsWhatToStart::enType, fsWhenToStart::enType, FALSE, fsnew1, CShedulerWnd::GetMgr(), fsScheduleMgr::GetScheduleDLTask(), fsSchedule::hts, HTS_ONCE, CScheduleSheet::Init(), CScheduleSheet::IsNeedRecalculateStartTime(), L_SCHEDULE_DLDSTART, L_SCHEDULE_DLDSTOP, fsWhenToStart::last, LS, m_vDownloads, fsWhenToStart::next, NULL, fsDialogsMgr::OnDoModal(), fsDialogsMgr::OnEndDialog(), fsScheduleMgr::OnTaskUpdated(), pos(), fsWhatToStart::pvIDs, SCHEDULE_ENABLED, fsSchedule::uWaitForConfirmation, fsSchedule::wts, WTS_STARTDOWNLOAD, and WTS_STOPDOWNLOAD.
Referenced by OnDldschedule(), and OnDldschedulestop().
| void CDownloads_Tasks::Sort | ( | ) | [protected] |
Definition at line 1179 of file Downloads_Tasks.cpp.
References LCSM_NONE, CListCtrlEx::m_sortMode, and SortDownloads().
Referenced by OnSortModeChanged().
| void CDownloads_Tasks::MoveSelectedDownloads | ( | vmsMoveType | enMT | ) | [protected] |
Definition at line 1752 of file Downloads_Tasks.cpp.
References _DldsMgr, FALSE, fsDownloadsMgr::GetCount(), fsDownloadsMgr::GetDownload(), GetItemData(), LCSM_NONE, CListCtrlEx::m_sortMode, m_vDownloads, fsDownloadsMgr::MoveDownloads(), MT_BOTTOM, MT_DOWN, MT_TOP, MT_UP, NULL, and pos().
Referenced by OnDldmovebottom(), OnDldmovedown(), OnDldmovetop(), and OnDldmoveup().
| void CDownloads_Tasks::OnItemChanged | ( | NM_LISTVIEW * | pLV | ) | [protected, virtual] |
Reimplemented from CListCtrlEx.
Definition at line 1693 of file Downloads_Tasks.cpp.
References UpdateActiveDownload().
| void CDownloads_Tasks::_downloadsQuickSort | ( | vmsDownloadSmartPtr * | a, | |
| int | N, | |||
| int | nCol | |||
| ) | [static, protected] |
Definition at line 1659 of file Downloads_Tasks.cpp.
References _compareDownloads().
Referenced by SortDownloads().
| void CDownloads_Tasks::SortDownloads | ( | ) | [protected] |
Definition at line 1631 of file Downloads_Tasks.cpp.
References _DldsMgr, _downloadsQuickSort(), CListCtrlEx::m_iSortCol, m_vDownloads, and fsDownloadsMgr::ReorderDownloads().
Referenced by Sort().
| int CDownloads_Tasks::_compareDownloads | ( | vmsDownloadSmartPtr | dld1, | |
| vmsDownloadSmartPtr | dld2, | |||
| int | nColumn | |||
| ) | [static, protected] |
Definition at line 1526 of file Downloads_Tasks.cpp.
References CompareFileTime(), and GetFileName().
Referenced by _downloadsQuickSort().
| void CDownloads_Tasks::OnGetdispinfo | ( | NMHDR * | pNMHDR, | |
| LRESULT * | pResult | |||
| ) | [protected] |
Definition at line 1359 of file Downloads_Tasks.cpp.
References FALSE, GetDownloadImage(), GetDownloadText(), m_vDownloads, CListCtrlEx::SubItemToSubItem(), and UpdateDownload().
| void CDownloads_Tasks::OnSortModeChanged | ( | ) | [protected, virtual] |
Reimplemented from CListCtrlEx.
Definition at line 1174 of file Downloads_Tasks.cpp.
References Sort().
| void CDownloads_Tasks::CalcCoordsForCurSel | ( | ) | [protected] |
| void CDownloads_Tasks::OnForceUpdate | ( | ) | [protected, virtual] |
Reimplemented from CListCtrlEx.
Definition at line 738 of file Downloads_Tasks.cpp.
Referenced by CDownloaderProperties_ListPage::OnApply().
| void CDownloads_Tasks::DeleteSelected | ( | BOOL | bDontConfirmFileDeleting = FALSE |
) | [protected] |
Definition at line 315 of file Downloads_Tasks.cpp.
References _App, _DldsMgr, fsAppSettings::Deleted_ConfirmDeletion(), fsDownloadsMgr::DeleteDownloads(), CDownloads_Tasks::_sRecordInfo::dld, CDownloads_Tasks::_sRecordInfo::iIndex, L_AREYOUSURE, L_CONFIRMATION, L_DLDWBDELETEDFROMDISK, LS, m_vDownloads, NULL, pos(), simple_client::s, TRUE, UpdateActiveDownload(), and CDownloadsWnd::UpdateTrayIconPlusOthers().
Referenced by OnDlddelete(), and OnKeyDown().
| void CDownloads_Tasks::UpdateActiveDownload | ( | int | adjSelected | ) | [protected] |
Definition at line 255 of file Downloads_Tasks.cpp.
References m_pActiveDownload, m_pDownloadsWnd, m_vDownloads, NULL, pos(), and CDownloadsWnd::SetActiveDownload().
Referenced by CDownloadsWnd::_Events(), DeleteAllItems(), CDownloadsWnd::DeleteDownloads(), DeleteSelected(), OnClick(), OnItemChanged(), OnRClick(), and SelectDownload().
| void CDownloads_Tasks::OnKeyDown | ( | WORD | wVK | ) | [protected, virtual] |
Reimplemented from CListCtrlEx.
Definition at line 227 of file Downloads_Tasks.cpp.
References CalcCoordsForCurSel(), CallSelectedDownload(), DeleteSelected(), CDownloadsWnd::m_wndGroups, OnDldproperties(), and OnRClick().
| void CDownloads_Tasks::OnDeleteAllItems | ( | ) | [protected, virtual] |
Reimplemented from CListCtrlEx.
Definition at line 215 of file Downloads_Tasks.cpp.
References LCSM_NONE, m_pActiveDownload, m_pDownloadsWnd, CListCtrlEx::m_sortMode, NULL, and CDownloadsWnd::SetActiveDownload().
| void CDownloads_Tasks::OnDeleteItem | ( | NM_LISTVIEW * | pNM | ) | [protected, virtual] |
Reimplemented from CListCtrlEx.
Definition at line 206 of file Downloads_Tasks.cpp.
References LONG, m_pActiveDownload, m_pDownloadsWnd, NULL, and CDownloadsWnd::SetActiveDownload().
| void CDownloads_Tasks::OnRClick | ( | ) | [protected, virtual] |
Reimplemented from CListCtrlEx.
Definition at line 174 of file Downloads_Tasks.cpp.
References ApplyLanguageToMenu(), fsODMenu::Attach(), fsODMenu::Detach(), FALSE, IDM_DOWNLOADS, CDownloads_Downloads::m_info, m_odmenu, CDownloads_Info::m_progress, m_rbPt, CDownloadsWnd::m_wndDownloads, NULL, CDownloadsWnd::Plugin_GetMenuImages(), CDownloads_Progress::set_FullRedraw(), fsODMenu::SetImageList(), fsODMenu::SetImages(), TRUE, UpdateActiveDownload(), and UpdateMenu().
Referenced by OnKeyDown().
| void CDownloads_Tasks::OnClick | ( | ) | [protected, virtual] |
Reimplemented from CListCtrlEx.
Definition at line 169 of file Downloads_Tasks.cpp.
References UpdateActiveDownload().
| void CDownloads_Tasks::OnRButtonDown | ( | UINT | nFlags, | |
| CPoint | point | |||
| ) | [protected] |
| void CDownloads_Tasks::OnLButtonDblClk | ( | UINT | nFlags, | |
| CPoint | point | |||
| ) | [protected] |
| void CDownloads_Tasks::OnDldcreate | ( | ) | [protected] |
Definition at line 381 of file Downloads_Tasks.cpp.
References m_pDownloadsWnd, and CDownloadsWnd::OnDownloadCreate().
Referenced by CDownloadsWnd::OnInsert().
| void CDownloads_Tasks::OnDlddelete | ( | ) | [protected] |
Definition at line 387 of file Downloads_Tasks.cpp.
References DeleteSelected().
Referenced by CDownloadsWnd::OnDlddelete().
| void CDownloads_Tasks::OnDldproperties | ( | ) | [protected] |
Definition at line 393 of file Downloads_Tasks.cpp.
References m_pDownloadsWnd, m_vDownloads, NULL, CDownloadsWnd::OnBtDownloadProperties(), CDownloadsWnd::OnDownloadProperties(), and pos().
Referenced by CallSelectedDownload(), CDownloadsWnd::OnDldproperties(), and OnKeyDown().
| void CDownloads_Tasks::OnDldstart | ( | ) | [protected] |
Definition at line 420 of file Downloads_Tasks.cpp.
References _DldsMgr, FALSE, m_vDownloads, pos(), fsDownloadsMgr::StartDownloads(), and TRUE.
Referenced by CDownloadsWnd::OnDldstart(), and OnKeyDown().
| void CDownloads_Tasks::OnDldstop | ( | ) | [protected] |
Definition at line 435 of file Downloads_Tasks.cpp.
References _DldsMgr, FALSE, m_vDownloads, NULL, pos(), fsDownloadsMgr::StopDownloads(), TRUE, and UpdateDownload().
Referenced by CDownloadsWnd::OnDldstop(), and OnKeyDown().
| void CDownloads_Tasks::OnDldlaunch | ( | ) | [protected] |
Definition at line 459 of file Downloads_Tasks.cpp.
References _DldsMgr, fsDownloadsMgr::LaunchDownload(), m_vDownloads, and pos().
Referenced by CallSelectedDownload(), and CDownloadsWnd::OnDldlaunch().
| void CDownloads_Tasks::OnDldopenfolder | ( | ) | [protected] |
Definition at line 477 of file Downloads_Tasks.cpp.
References m_vDownloads, and pos().
Referenced by CDownloadsWnd::OnDldopenfolder().
| void CDownloads_Tasks::OnDldschedule | ( | ) | [protected] |
Definition at line 677 of file Downloads_Tasks.cpp.
References ScheduleSelectedDlds(), and TRUE.
Referenced by CDownloadsWnd::OnDldschedule().
| void CDownloads_Tasks::OnDldautostart | ( | ) | [protected] |
Definition at line 743 of file Downloads_Tasks.cpp.
References _DldsMgr, m_bAutoStart, m_vDownloads, pos(), fsDownloadsMgr::ProcessDownloads(), and UpdateDownload().
Referenced by CDownloadsWnd::OnDldautostart().
| void CDownloads_Tasks::OnDrawItem | ( | int | nIDCtl, | |
| LPDRAWITEMSTRUCT | lpDrawItemStruct | |||
| ) | [protected] |
Definition at line 852 of file Downloads_Tasks.cpp.
References m_odmenu, and fsODMenu::OnDrawItem().
| void CDownloads_Tasks::OnMeasureItem | ( | int | nIDCtl, | |
| LPMEASUREITEMSTRUCT | lpMeasureItemStruct | |||
| ) | [protected] |
Definition at line 857 of file Downloads_Tasks.cpp.
References m_odmenu, and fsODMenu::OnMeasureItem().
| void CDownloads_Tasks::OnDldaddsection | ( | ) | [protected] |
Definition at line 974 of file Downloads_Tasks.cpp.
References m_vDownloads, and pos().
Referenced by CDownloadsWnd::OnDldaddsection(), and OnKeyDown().
| void CDownloads_Tasks::OnDlddelsection | ( | ) | [protected] |
Definition at line 985 of file Downloads_Tasks.cpp.
References m_vDownloads, and pos().
Referenced by CDownloadsWnd::OnDlddelsection(), and OnKeyDown().
| void CDownloads_Tasks::OnDldrestart | ( | ) | [protected] |
Definition at line 996 of file Downloads_Tasks.cpp.
References L_AREYOUSURE_WILLSTARTFROM0, L_CONFIRMATION, LS, m_vDownloads, pos(), and CDownloadsWnd::RestartDownload().
Referenced by CDownloadsWnd::OnDldrestart(), and OnKeyDown().
Definition at line 1015 of file Downloads_Tasks.cpp.
References BOOL, OnDldaddsection(), OnDldcheckintegrity(), OnDlddelsection(), OnDldmovebottom(), OnDldmovedown(), OnDldmovetofolder(), OnDldmovetop(), OnDldmoveup(), OnDldqsize(), OnDldrestart(), OnDldstart(), and OnDldstop().
Definition at line 1124 of file Downloads_Tasks.cpp.
| void CDownloads_Tasks::OnDldqsize | ( | ) | [protected] |
Definition at line 1149 of file Downloads_Tasks.cpp.
References FALSE, m_vDownloads, NULL, and pos().
Referenced by CDownloadsWnd::OnDldqsize(), and OnKeyDown().
| void CDownloads_Tasks::OnDldcreatebatch | ( | ) | [protected] |
Definition at line 1166 of file Downloads_Tasks.cpp.
References _DlgMgr, fsDialogsMgr::OnDoModal(), and fsDialogsMgr::OnEndDialog().
Referenced by CDownloadsWnd::OnDldcreatebatch().
| int CDownloads_Tasks::OnCreate | ( | LPCREATESTRUCT | lpCreateStruct | ) | [protected] |
| void CDownloads_Tasks::OnDldcheckvir | ( | ) | [protected] |
Definition at line 1327 of file Downloads_Tasks.cpp.
References _DldsMgr, FALSE, m_vDownloads, fsDownloadsMgr::PerformVirusCheck(), and pos().
Referenced by CDownloadsWnd::OnDldcheckvir().
| void CDownloads_Tasks::OnDldfind | ( | ) | [protected] |
Definition at line 1339 of file Downloads_Tasks.cpp.
References ID_FIND.
Referenced by CDownloadsWnd::OnDldfind().
| void CDownloads_Tasks::OnDldfindnext | ( | ) | [protected] |
Definition at line 1344 of file Downloads_Tasks.cpp.
References ID_FINDNEXT.
Referenced by CDownloadsWnd::OnDldfindnext().
| void CDownloads_Tasks::OnDldunpack | ( | ) | [protected] |
Definition at line 1699 of file Downloads_Tasks.cpp.
References _DlgMgr, fsDialogsMgr::DoModal(), FALSE, CDlg_UnpackProgress::m_strArchive, CDlg_UnpackProgress::m_strDstFolder, CDlg_UnpackSettings::m_strDstFolder, m_vDownloads, NULL, and pos().
Referenced by CDownloadsWnd::OnDldunpack().
| void CDownloads_Tasks::OnDldmovedown | ( | ) | [protected] |
Definition at line 1740 of file Downloads_Tasks.cpp.
References MoveSelectedDownloads(), MT_DOWN, and ScheduleProcessDownloads().
Referenced by CDownloadsWnd::OnDldmovedown(), and OnKeyDown().
| void CDownloads_Tasks::OnDldmoveup | ( | ) | [protected] |
Definition at line 1746 of file Downloads_Tasks.cpp.
References MoveSelectedDownloads(), MT_UP, and ScheduleProcessDownloads().
Referenced by CDownloadsWnd::OnDldmoveup(), and OnKeyDown().
| void CDownloads_Tasks::OnDldcheckintegrity | ( | ) | [protected] |
Definition at line 1824 of file Downloads_Tasks.cpp.
References _App, _DlgMgr, ASSERT, fsDialogsMgr::DoModal(), FALSE, fsGetFileName(), IDC_RESTARTDOWNLOAD, CDlg_CheckFileIntegrity_Progress::is_CheckingSucceeded(), CDlg_CheckFileIntegrity_Result::m_bResultOK, CDlg_CheckFileIntegrity_Progress::m_enHashAlgorithm, CDlg_CheckFileIntegrity_Progress::m_enSHA2Strength, CDlg_CheckFileIntegrity::m_nAlgorithm, CDlg_CheckFileIntegrity::m_nSHA2Strength, CDlg_CheckFileIntegrity::m_strChecksum, CDlg_CheckFileIntegrity_Progress::m_strFile, CDlg_CheckFileIntegrity_Result::m_strFileName, CDlg_CheckFileIntegrity_Progress::m_strHashResult, CDlg_CheckFileIntegrity_Result::m_strResultHash, CDlg_CheckFileIntegrity_Result::m_strUrl, CDlg_CheckFileIntegrity_Result::m_strValidHash, CDlg_CheckFileIntegrity_Progress::m_strValidHashResult, m_vDownloads, MY_MAX_PATH, NULL, pos(), CDownloadsWnd::RestartDownload(), SAFE_DELETE_ARRAY, TRUE, and fsAppSettings::View_DontShowHashCheckResultIfOK().
Referenced by CDownloadsWnd::OnDldcheckintegrity(), and OnKeyDown().
| void CDownloads_Tasks::OnDldmovetofolder | ( | ) | [protected] |
Definition at line 1883 of file Downloads_Tasks.cpp.
References _App, CFolderBrowser::Create(), CFolderBrowser::GetPath(), L_CHOOSEOUTFOLDER, LS, m_vDownloads, NULL, pos(), and fsAppSettings::View_LastDldMoveToFolder().
Referenced by CDownloadsWnd::OnDldmovetofolder(), and OnKeyDown().
| void CDownloads_Tasks::OnDldmovebottom | ( | ) | [protected] |
Definition at line 1908 of file Downloads_Tasks.cpp.
References MoveSelectedDownloads(), MT_BOTTOM, and ScheduleProcessDownloads().
Referenced by CDownloadsWnd::OnDldmovebottom(), and OnKeyDown().
| void CDownloads_Tasks::OnDldmovetop | ( | ) | [protected] |
Definition at line 1914 of file Downloads_Tasks.cpp.
References MoveSelectedDownloads(), MT_TOP, and ScheduleProcessDownloads().
Referenced by CDownloadsWnd::OnDldmovetop(), and OnKeyDown().
| void CDownloads_Tasks::OnDldschedulestop | ( | ) | [protected] |
Definition at line 1920 of file Downloads_Tasks.cpp.
References FALSE, and ScheduleSelectedDlds().
Referenced by CDownloadsWnd::OnDldschedulestop().
| void CDownloads_Tasks::OnDldgrantbandwidthfordld | ( | ) | [protected] |
Definition at line 2052 of file Downloads_Tasks.cpp.
References _DldsMgr, fsDownloadsMgr::get_HighestPriorityDownload(), m_vDownloads, NULL, pos(), and fsDownloadsMgr::set_HighestPriorityDownload().
Referenced by CDownloadsWnd::OnDldgrantbandwidthfordld().
| void CDownloads_Tasks::OnDldshowprogressdlg | ( | ) | [protected] |
Definition at line 2065 of file Downloads_Tasks.cpp.
References m_vDownloads, NULL, and pos().
Referenced by CDownloadsWnd::OnDldshowprogressdlg().
| void CDownloads_Tasks::OnDldconvert | ( | ) | [protected] |
Definition at line 2087 of file Downloads_Tasks.cpp.
References CDownloads_VideoPreview::Convert(), CDownloads_Downloads::m_info, CDownloads_Info::m_video, and CDownloadsWnd::m_wndDownloads.
Referenced by CDownloadsWnd::OnDldconvert().
| void CDownloads_Tasks::OnTimer | ( | UINT | nIDEvent | ) | [protected] |
Definition at line 2098 of file Downloads_Tasks.cpp.
References _DldsMgr, and fsDownloadsMgr::ProcessDownloads().
| void CDownloads_Tasks::OnDldenableseeding | ( | ) | [protected] |
Definition at line 2109 of file Downloads_Tasks.cpp.
References m_bHasEnableSeedingDlds, m_vDownloads, pos(), TRUE, and UpdateDownload().
Referenced by CDownloadsWnd::OnDldenableseeding().
friend class CDownloadsWnd [friend] |
Definition at line 35 of file Downloads_Tasks.h.
friend class CDownloaderProperties_ListPage [friend] |
Definition at line 36 of file Downloads_Tasks.h.
Definition at line 65 of file Downloads_Tasks.h.
Referenced by CDownloadsWnd::IsSizesInBytes(), CDownloaderProperties_ListPage::OnApply(), CDownloadsWnd::OnCreate(), CDownloaderProperties_ListPage::OnInitDialog(), and CDownloadsWnd::SaveAll().
Definition at line 83 of file Downloads_Tasks.h.
Referenced by CDownloadsWnd::CDownloadsWnd(), OnDeleteAllItems(), OnDeleteItem(), OnDldcreate(), OnDldproperties(), and UpdateActiveDownload().
bool CDownloads_Tasks::m_bHasEnableSeedingDlds [protected] |
Definition at line 97 of file Downloads_Tasks.h.
Referenced by OnDldenableseeding(), and UpdateMenu().
bool CDownloads_Tasks::m_bAddingDownloads [protected] |
Definition at line 101 of file Downloads_Tasks.h.
Referenced by AddDownloadToList(), BeginAddDownloads(), CDownloads_Tasks(), and EndAddDownloads().
fsMutex CDownloads_Tasks::m_mxAddDel [protected] |
Definition at line 113 of file Downloads_Tasks.h.
Referenced by AddDownloadToList(), DeleteDownload(), LockList(), and UnlockList().
CFloatingWndDropTarget CDownloads_Tasks::m_drop [protected] |
DLDS_LIST CDownloads_Tasks::m_vDownloads [protected] |
Definition at line 119 of file Downloads_Tasks.h.
Referenced by AddDownloadToList(), CallSelectedDownload(), DeleteAllItems(), DeleteDownload(), DeleteSelected(), EndAddDownloads(), FindItem(), GetItemData(), MoveSelectedDownloads(), OnDldaddsection(), OnDldautostart(), OnDldcheckintegrity(), OnDldcheckvir(), OnDlddelsection(), OnDldenableseeding(), OnDldgrantbandwidthfordld(), OnDldlaunch(), OnDldmovetofolder(), OnDldopenfolder(), OnDldproperties(), OnDldqsize(), OnDldrestart(), OnDldshowprogressdlg(), OnDldstart(), OnDldstop(), OnDldunpack(), OnGetdispinfo(), OnUpdateToolBar(), ScheduleSelectedDlds(), SortDownloads(), UpdateActiveDownload(), UpdateDownload(), and UpdateMenu().
CImageList CDownloads_Tasks::m_selimages [protected] |
fsODMenu CDownloads_Tasks::m_odmenu [protected] |
Definition at line 123 of file Downloads_Tasks.h.
Referenced by OnDrawItem(), OnMeasureItem(), and OnRClick().
CPoint CDownloads_Tasks::m_rbPt [protected] |
Definition at line 126 of file Downloads_Tasks.h.
Referenced by CalcCoordsForCurSel(), OnRButtonDown(), and OnRClick().
Definition at line 136 of file Downloads_Tasks.h.
Referenced by CDownloads_Tasks(), GetActiveDownload(), OnDeleteAllItems(), OnDeleteItem(), and UpdateActiveDownload().
CImageList CDownloads_Tasks::m_images [protected] |
BOOL CDownloads_Tasks::m_bAutoStart [private] |
1.5.6