#include <SpiderTasks.h>

Public Member Functions | |
| CSpiderTasks () | |
| void | CallSelectedPage () |
| void | UpdateIcons () |
| void | ApplyLanguage () |
| void | ApplyLanguageToMenu (CMenu *pMenu) |
| void | DeleteWebPage (fsWebPageDownloader *wp) |
| int | GetWebPageImage (fsWebPageDownloader *wpd) |
| int | FindWebPage (fsWebPageDownloader *wpd) |
| void | UpdateWebPage (fsWebPageDownloader *wpd) |
| void | UpdateWebPage (int iItem) |
| void | AddWebPage (fsWebPageDownloader *wpd) |
| int | UpdateToolBar (UINT nID) |
| void | UpdateMenu (CMenu *pMenu) |
| BOOL | Create (CWnd *pParent) |
| virtual | ~CSpiderTasks () |
Protected Member Functions | |
| void | OnForceUpdate () |
| void | CalcCoordsForCurSel () |
| void | OnKeyDown (WORD wVK) |
| void | OnDeleteAllItems () |
| void | OnDeleteItem (NM_LISTVIEW *pNM) |
| void | OnClick () |
| void | UpdateActiveWPD (int adj=0) |
| void | OnRClick () |
| afx_msg void | OnSpiderDl () |
| afx_msg void | OnRButtonDown (UINT nFlags, CPoint point) |
| afx_msg void | OnMeasureItem (int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct) |
| afx_msg void | OnDrawItem (int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct) |
| afx_msg void | OnSpiderStopdl () |
| afx_msg void | OnSpiderStartdl () |
| afx_msg void | OnSpiderStartautomatically () |
| afx_msg void | OnSpiderSettings () |
| afx_msg void | OnSpiderSchedule () |
| afx_msg void | OnSpiderOpenfolder () |
| afx_msg void | OnSpiderDelete () |
| afx_msg void | OnLButtonDblClk (UINT nFlags, CPoint point) |
| afx_msg void | OnSpiderOpenpage () |
| afx_msg void | OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags) |
Protected Attributes | |
| CImageList | m_images |
| CImageList | m_selimages |
| fsODMenu | m_odmenu |
| POINT | m_rbPt |
Private Attributes | |
| BOOL | m_bAutoStart |
Friends | |
| class | CSpiderWnd |
Definition at line 18 of file SpiderTasks.h.
| CSpiderTasks::CSpiderTasks | ( | ) |
Definition at line 27 of file SpiderTasks.cpp.
| CSpiderTasks::~CSpiderTasks | ( | ) | [virtual] |
Definition at line 31 of file SpiderTasks.cpp.
| void CSpiderTasks::CallSelectedPage | ( | ) |
Definition at line 679 of file SpiderTasks.cpp.
References fsWebPageDownloader::IsDone(), NULL, OnSpiderOpenpage(), OnSpiderSettings(), and pos().
Referenced by OnKeyDown(), and OnLButtonDblClk().
| void CSpiderTasks::UpdateIcons | ( | ) |
Definition at line 661 of file SpiderTasks.cpp.
References GetWebPageImage(), and CListCtrlEx::SetItemImage().
Referenced by CSpiderWnd::UpdateTasksIcons().
| void CSpiderTasks::ApplyLanguage | ( | ) |
Definition at line 633 of file SpiderTasks.cpp.
References L_FILES, L_PROGRESS, L_WEBPAGEURL, LS, and CListCtrlEx::SetColumnText().
Referenced by CSpiderWnd::ApplyLanguage().
| void CSpiderTasks::ApplyLanguageToMenu | ( | CMenu * | pMenu | ) |
Definition at line 594 of file SpiderTasks.cpp.
References ID_SPIDER_DELETE, ID_SPIDER_DL, ID_SPIDER_OPENFOLDER, ID_SPIDER_OPENPAGE, ID_SPIDER_SCHEDULE, ID_SPIDER_SETTINGS, ID_SPIDER_STARTAUTOMATICALLY, ID_SPIDER_STARTDL, ID_SPIDER_STOPDL, L_DELETE, L_DLWEBPAGE, L_HTMLSPIDER, L_OPENFOLDER, L_OPENWEBPAGE, L_PROPOFDL, L_SCHEDULEDL, L_STARTDL, L_STARTDLAUTO, L_STOPDL, and LS.
Referenced by OnRClick(), and CSpiderWnd::Plugin_SetLanguage().
| void CSpiderTasks::DeleteWebPage | ( | fsWebPageDownloader * | wp | ) |
| int CSpiderTasks::GetWebPageImage | ( | fsWebPageDownloader * | wpd | ) |
Definition at line 258 of file SpiderTasks.cpp.
References fsWebPageDownloader::IsDone(), fsWebPageDownloader::IsDownloading(), fsWebPageDownloader::IsOnAutoStart(), fsWebPageDownloader::IsRunning(), and fsWebPageDownloader::IsScheduled().
Referenced by UpdateIcons(), and UpdateWebPage().
| int CSpiderTasks::FindWebPage | ( | fsWebPageDownloader * | wpd | ) |
Definition at line 250 of file SpiderTasks.cpp.
References LONG.
Referenced by DeleteWebPage(), and UpdateWebPage().
| void CSpiderTasks::UpdateWebPage | ( | fsWebPageDownloader * | wpd | ) |
Definition at line 243 of file SpiderTasks.cpp.
References FindWebPage().
Referenced by CSpiderWnd::_DownloaderEvents(), AddWebPage(), OnSpiderSchedule(), and CSpiderWnd::OnTimer().
| void CSpiderTasks::UpdateWebPage | ( | int | iItem | ) |
| void CSpiderTasks::AddWebPage | ( | fsWebPageDownloader * | wpd | ) |
Definition at line 220 of file SpiderTasks.cpp.
References CListCtrlEx::AddItem(), fsWebPageDownloader::GetStartURL(), and UpdateWebPage().
Referenced by CSpiderWnd::AddWebPage(), CSpiderWnd::LoadPages(), and OnForceUpdate().
| int CSpiderTasks::UpdateToolBar | ( | UINT | nID | ) |
Definition at line 148 of file SpiderTasks.cpp.
References BOOL, FALSE, ID_SPIDER_DL, ID_SPIDER_SCHEDULE, ID_SPIDER_STARTDL, ID_SPIDER_STOPDL, fsWebPageDownloader::IsDone(), fsWebPageDownloader::IsRunning(), pos(), TRUE, WGP_CMDITEMSTATE_DISABLED, and WGP_CMDITEMSTATE_ENABLED.
Referenced by CSpiderWnd::OnUpdateToolBar().
| void CSpiderTasks::UpdateMenu | ( | CMenu * | pMenu | ) |
Definition at line 86 of file SpiderTasks.cpp.
References BOOL, fsDLWebPage::dld, FALSE, fsWebPageDownloader::GetRootPage(), ID_SPIDER_DELETE, ID_SPIDER_OPENFOLDER, ID_SPIDER_OPENPAGE, ID_SPIDER_SCHEDULE, ID_SPIDER_SETTINGS, ID_SPIDER_STARTAUTOMATICALLY, ID_SPIDER_STARTDL, ID_SPIDER_STOPDL, fsWebPageDownloader::IsDone(), fsWebPageDownloader::IsOnAutoStart(), fsWebPageDownloader::IsRunning(), m_bAutoStart, and pos().
Referenced by OnRClick(), and CSpiderWnd::OnUpdateMenu().
| BOOL CSpiderTasks::Create | ( | CWnd * | pParent | ) |
Definition at line 54 of file SpiderTasks.cpp.
References FALSE, IDB_DOWNLOADSTASKS, IDB_DOWNLOADSTASKS_SEL, L_FILES, L_PROGRESS, L_WEBPAGEURL, LS, m_images, m_selimages, CListCtrlEx::ReadState(), SBMP, CListCtrlEx::SetSelectedImages(), and TRUE.
Referenced by CSpiderWnd::OnCreate().
| void CSpiderTasks::OnForceUpdate | ( | ) | [protected, virtual] |
Reimplemented from CListCtrlEx.
Definition at line 671 of file SpiderTasks.cpp.
References AddWebPage(), CSpiderWnd::GetMgr(), fsWebPageDownloadsMgr::GetWPD(), and fsWebPageDownloadsMgr::GetWPDCount().
| void CSpiderTasks::CalcCoordsForCurSel | ( | ) | [protected] |
| void CSpiderTasks::OnKeyDown | ( | WORD | wVK | ) | [protected, virtual] |
Reimplemented from CListCtrlEx.
Definition at line 561 of file SpiderTasks.cpp.
References CalcCoordsForCurSel(), CallSelectedPage(), OnRClick(), OnSpiderDelete(), and UpdateActiveWPD().
| void CSpiderTasks::OnDeleteAllItems | ( | ) | [protected, virtual] |
Reimplemented from CListCtrlEx.
Definition at line 555 of file SpiderTasks.cpp.
References CSpiderWnd::m_wndTaskTree, CSpiderTaskTree::m_wpd, NULL, and CSpiderTaskTree::UpdateAll().
| void CSpiderTasks::OnDeleteItem | ( | NM_LISTVIEW * | pNM | ) | [protected, virtual] |
Reimplemented from CListCtrlEx.
Definition at line 546 of file SpiderTasks.cpp.
References LONG, CSpiderWnd::m_wndTaskTree, CSpiderTaskTree::m_wpd, NULL, and CSpiderTaskTree::UpdateAll().
| void CSpiderTasks::OnClick | ( | ) | [protected, virtual] |
Reimplemented from CListCtrlEx.
Definition at line 541 of file SpiderTasks.cpp.
References UpdateActiveWPD().
| void CSpiderTasks::UpdateActiveWPD | ( | int | adj = 0 |
) | [protected] |
Definition at line 498 of file SpiderTasks.cpp.
References CSpiderWnd::m_wndTaskTree, CSpiderTaskTree::m_wpd, NULL, pos(), and CSpiderTaskTree::UpdateAll().
Referenced by OnClick(), OnKeyDown(), and OnRClick().
| void CSpiderTasks::OnRClick | ( | ) | [protected, virtual] |
Reimplemented from CListCtrlEx.
Definition at line 283 of file SpiderTasks.cpp.
References ApplyLanguageToMenu(), fsODMenu::Attach(), fsODMenu::Detach(), FALSE, IDM_SPIDER, m_odmenu, m_rbPt, CSpiderWnd::Plugin_GetMenuImages(), fsODMenu::SetImageList(), fsODMenu::SetImages(), UpdateActiveWPD(), and UpdateMenu().
Referenced by OnKeyDown().
| void CSpiderTasks::OnSpiderDl | ( | ) | [protected] |
Definition at line 277 of file SpiderTasks.cpp.
References CSpiderWnd::AddWebPage().
Referenced by CSpiderWnd::OnInsert(), and CSpiderWnd::OnSpiderDl().
| void CSpiderTasks::OnRButtonDown | ( | UINT | nFlags, | |
| CPoint | point | |||
| ) | [protected] |
| void CSpiderTasks::OnMeasureItem | ( | int | nIDCtl, | |
| LPMEASUREITEMSTRUCT | lpMeasureItemStruct | |||
| ) | [protected] |
| void CSpiderTasks::OnDrawItem | ( | int | nIDCtl, | |
| LPDRAWITEMSTRUCT | lpDrawItemStruct | |||
| ) | [protected] |
| void CSpiderTasks::OnSpiderStopdl | ( | ) | [protected] |
Definition at line 326 of file SpiderTasks.cpp.
References pos(), and fsWebPageDownloader::StopDownloading().
Referenced by OnKeyDown(), and CSpiderWnd::OnSpiderStopdl().
| void CSpiderTasks::OnSpiderStartdl | ( | ) | [protected] |
Definition at line 337 of file SpiderTasks.cpp.
References pos(), and fsWebPageDownloader::StartDownloading().
Referenced by OnKeyDown(), and CSpiderWnd::OnSpiderStartdl().
| void CSpiderTasks::OnSpiderStartautomatically | ( | ) | [protected] |
Definition at line 348 of file SpiderTasks.cpp.
References m_bAutoStart, pos(), and fsWebPageDownloader::SetAutoStartDownloading().
Referenced by CSpiderWnd::OnSpiderStartautomatically().
| void CSpiderTasks::OnSpiderSettings | ( | ) | [protected] |
Definition at line 359 of file SpiderTasks.cpp.
References _DlgMgr, fsDialogsMgr::DoModal(), fsWebPageDownloader::GetWDPS(), CWPDS_Sheet::Init(), L_PROPOFDL, LS, NULL, pos(), and TRUE.
Referenced by CallSelectedPage(), and CSpiderWnd::OnSpiderSettings().
| void CSpiderTasks::OnSpiderSchedule | ( | ) | [protected] |
Definition at line 375 of file SpiderTasks.cpp.
References _DlgMgr, CShedulerWnd::AddTask(), BOOL, fsScheduleMgr::CalculateStartTime(), fsSchedule::dwFlags, _FILETIME::dwHighDateTime, _FILETIME::dwLowDateTime, fsWhatToStart::enType, fsWhenToStart::enType, FALSE, fsnew1, fsWebPageDownloader::GetDownload(), fsWebPageDownloader::GetDownloadCount(), CShedulerWnd::GetMgr(), fsScheduleMgr::GetScheduleDLTask(), fsSchedule::hts, HTS_ONCE, CScheduleSheet::Init(), CScheduleSheet::IsNeedRecalculateStartTime(), L_SCHEDULEDLDS, fsWhenToStart::last, LS, fsWhenToStart::next, NULL, fsDialogsMgr::OnDoModal(), fsDialogsMgr::OnEndDialog(), fsScheduleMgr::OnTaskUpdated(), pos(), fsWhatToStart::pvIDs, SCHEDULE_ENABLED, TRUE, UpdateWebPage(), fsSchedule::uWaitForConfirmation, fsSchedule::wts, and WTS_STARTDOWNLOAD.
Referenced by CSpiderWnd::OnSpiderSchedule().
| void CSpiderTasks::OnSpiderOpenfolder | ( | ) | [protected] |
Definition at line 446 of file SpiderTasks.cpp.
References fsWebPageDownloader::GetWDPS(), NULL, pos(), ShellExecute, and fsWPDSettings::strFolderSaveTo.
Referenced by CSpiderWnd::OnSpiderOpenfolder().
| void CSpiderTasks::OnSpiderDelete | ( | ) | [protected] |
Definition at line 456 of file SpiderTasks.cpp.
References fsWebPageDownloadsMgr::Delete(), fsWebPageDownloader::DeleteAllDownloads(), fsWebPageDownloader::DetachFromDownloads(), CSpiderWnd::GetMgr(), L_CONFIRMATION, L_DELETEDLSALSO, LS, NULL, pos(), and TRUE.
Referenced by OnKeyDown(), and CSpiderWnd::OnSpiderDelete().
| void CSpiderTasks::OnLButtonDblClk | ( | UINT | nFlags, | |
| CPoint | point | |||
| ) | [protected] |
| void CSpiderTasks::OnSpiderOpenpage | ( | ) | [protected] |
Definition at line 620 of file SpiderTasks.cpp.
References fsDLWebPage::dld, fsWebPageDownloader::GetRootPage(), NULL, pos(), ShellExecute, and fsDLWebPage::strFile.
Referenced by CallSelectedPage(), and CSpiderWnd::OnSpiderOpenpage().
Definition at line 693 of file SpiderTasks.cpp.
References BOOL, OnSpiderStartdl(), and OnSpiderStopdl().
friend class CSpiderWnd [friend] |
Definition at line 20 of file SpiderTasks.h.
CImageList CSpiderTasks::m_images [protected] |
CImageList CSpiderTasks::m_selimages [protected] |
fsODMenu CSpiderTasks::m_odmenu [protected] |
Definition at line 73 of file SpiderTasks.h.
Referenced by OnDrawItem(), OnMeasureItem(), and OnRClick().
POINT CSpiderTasks::m_rbPt [protected] |
Definition at line 74 of file SpiderTasks.h.
Referenced by CalcCoordsForCurSel(), OnRButtonDown(), and OnRClick().
BOOL CSpiderTasks::m_bAutoStart [private] |
Definition at line 97 of file SpiderTasks.h.
Referenced by OnSpiderStartautomatically(), and UpdateMenu().
1.5.6