#include <fsWebPageDownloadsMgr.h>
Public Member Functions | |
| void | StopAll () |
| BOOL | OnDownloadRestored (vmsDownloadSmartPtr dld) |
| BOOL | Load () |
| BOOL | Save () |
| void | Delete (fsWebPageDownloader *wpd) |
| fsWebPageDownloader * | GetWPD (int iIndex) |
| int | GetWPDCount () |
| void | SetEventsFunc (fntWPDEvents pfn, LPVOID lp) |
| void | Add (fsWebPageDownloader *wpd) |
| fsWebPageDownloadsMgr () | |
| virtual | ~fsWebPageDownloadsMgr () |
Static Protected Member Functions | |
| static void | _DownloaderEvents (fsWebPageDownloader *dldr, fsWPDEvent ev, int info, LPVOID lp) |
Protected Attributes | |
| fntWPDEvents | m_pfnEvents |
| LPVOID | m_lpEventsParam |
| fs::list< fsWebPageDownloader * > | m_vWPDs |
Definition at line 30 of file fsWebPageDownloadsMgr.h.
| fsWebPageDownloadsMgr::fsWebPageDownloadsMgr | ( | ) |
| fsWebPageDownloadsMgr::~fsWebPageDownloadsMgr | ( | ) | [virtual] |
| void fsWebPageDownloadsMgr::StopAll | ( | ) |
Definition at line 183 of file fsWebPageDownloadsMgr.cpp.
References m_vWPDs, and fsWebPageDownloader::StopDownloading().
Referenced by CMainFrame::OnStopall().
| BOOL fsWebPageDownloadsMgr::OnDownloadRestored | ( | vmsDownloadSmartPtr | dld | ) |
Definition at line 171 of file fsWebPageDownloadsMgr.cpp.
References fsWebPageDownloader::_DldEvents(), DME_DLDRESTORED, FALSE, m_vWPDs, and TRUE.
Referenced by CDownloadsWnd::_Events().
| BOOL fsWebPageDownloadsMgr::Load | ( | ) |
Definition at line 107 of file fsWebPageDownloadsMgr.cpp.
References Add(), FALSE, fsGetDataFilePath(), fsnew1, GetLastError(), fsWebPageDownloader::Load(), m_vWPDs, NULL, SPIDERFILE_CURRENT_VERSION, SPIDERFILE_SIG, fsSpiderFileHdr::szSig, TRUE, and fsSpiderFileHdr::wVer.
Referenced by CSpiderWnd::LoadPages().
| BOOL fsWebPageDownloadsMgr::Save | ( | ) |
Definition at line 70 of file fsWebPageDownloadsMgr.cpp.
References FALSE, fsGetDataFilePath(), m_vWPDs, NULL, and TRUE.
Referenced by CSpiderWnd::SavePages().
| void fsWebPageDownloadsMgr::Delete | ( | fsWebPageDownloader * | wpd | ) |
Definition at line 57 of file fsWebPageDownloadsMgr.cpp.
References m_vWPDs.
Referenced by CSpiderWnd::AddWebPage(), and CSpiderTasks::OnSpiderDelete().
| fsWebPageDownloader * fsWebPageDownloadsMgr::GetWPD | ( | int | iIndex | ) |
Definition at line 52 of file fsWebPageDownloadsMgr.cpp.
References m_vWPDs.
Referenced by CMainFrame::Balloon_ShowDLInfo(), CSpiderWnd::LoadPages(), CSpiderTasks::OnForceUpdate(), and CSpiderWnd::OnTimer().
| int fsWebPageDownloadsMgr::GetWPDCount | ( | ) |
Definition at line 47 of file fsWebPageDownloadsMgr.cpp.
References m_vWPDs.
Referenced by CSpiderWnd::LoadPages(), CSpiderTasks::OnForceUpdate(), and CSpiderWnd::OnTimer().
| void fsWebPageDownloadsMgr::SetEventsFunc | ( | fntWPDEvents | pfn, | |
| LPVOID | lp | |||
| ) |
Definition at line 41 of file fsWebPageDownloadsMgr.cpp.
References m_lpEventsParam, and m_pfnEvents.
Referenced by CSpiderWnd::CSpiderWnd().
| void fsWebPageDownloadsMgr::Add | ( | fsWebPageDownloader * | wpd | ) |
Definition at line 28 of file fsWebPageDownloadsMgr.cpp.
References _DownloaderEvents(), m_vWPDs, and fsWebPageDownloader::SetEventFunc().
Referenced by CSpiderWnd::AddWebPage(), and Load().
| void fsWebPageDownloadsMgr::_DownloaderEvents | ( | fsWebPageDownloader * | dldr, | |
| fsWPDEvent | ev, | |||
| int | info, | |||
| LPVOID | lp | |||
| ) | [static, protected] |
Definition at line 34 of file fsWebPageDownloadsMgr.cpp.
References m_lpEventsParam, and m_pfnEvents.
Referenced by Add().
fntWPDEvents fsWebPageDownloadsMgr::m_pfnEvents [protected] |
Definition at line 55 of file fsWebPageDownloadsMgr.h.
Referenced by _DownloaderEvents(), fsWebPageDownloadsMgr(), and SetEventsFunc().
LPVOID fsWebPageDownloadsMgr::m_lpEventsParam [protected] |
Definition at line 56 of file fsWebPageDownloadsMgr.h.
Referenced by _DownloaderEvents(), and SetEventsFunc().
fs::list<fsWebPageDownloader*> fsWebPageDownloadsMgr::m_vWPDs [protected] |
Definition at line 59 of file fsWebPageDownloadsMgr.h.
Referenced by Add(), Delete(), GetWPD(), GetWPDCount(), Load(), OnDownloadRestored(), Save(), StopAll(), and ~fsWebPageDownloadsMgr().
1.5.6