#include <fsDownloadsHistoryMgr.h>
Public Member Functions | |
| int | FindIndex (fsDLHistoryRecord *rec) |
| void | DeleteRecord (fsDLHistoryRecord *rec) |
| fsDLHistoryRecord * | GetRecord (int iIndex) |
| BOOL | LoadHistory () |
| BOOL | SaveHistory () |
| int | GetRecordCount () |
| void | AddToHistory (vmsDownloadSmartPtr dld) |
| void | SetEventFunc (fntDHMEEventFunc pfn, LPVOID lpParam) |
| void | ClearHistory () |
| void | ReadSettings () |
| fsDownloadsHistoryMgr () | |
| virtual | ~fsDownloadsHistoryMgr () |
Protected Member Functions | |
| void | Event (fsDownloadsHistoryMgrEvent ev, int info=0) |
| void | ApplySettings () |
Protected Attributes | |
| fntDHMEEventFunc | m_pfnEventFunc |
| LPVOID | m_lpEvParam |
| BOOL | m_bCompOnly |
| UINT | m_cDaysMax |
| BOOL | m_bUse |
| fs::list< fsDLHistoryRecord > | m_vRecords |
Definition at line 70 of file fsDownloadsHistoryMgr.h.
| fsDownloadsHistoryMgr::fsDownloadsHistoryMgr | ( | ) |
| fsDownloadsHistoryMgr::~fsDownloadsHistoryMgr | ( | ) | [virtual] |
Definition at line 23 of file fsDownloadsHistoryMgr.cpp.
| int fsDownloadsHistoryMgr::FindIndex | ( | fsDLHistoryRecord * | rec | ) |
Definition at line 290 of file fsDownloadsHistoryMgr.cpp.
References m_vRecords.
Referenced by DeleteRecord().
| void fsDownloadsHistoryMgr::DeleteRecord | ( | fsDLHistoryRecord * | rec | ) |
Definition at line 280 of file fsDownloadsHistoryMgr.cpp.
References DHME_RECORDDELETED, Event(), FindIndex(), and m_vRecords.
Referenced by CDownloads_History::OnHstitemDelete().
| fsDLHistoryRecord * fsDownloadsHistoryMgr::GetRecord | ( | int | iIndex | ) |
Definition at line 275 of file fsDownloadsHistoryMgr.cpp.
References m_vRecords.
Referenced by CDownloads_History::ApplyFilter_imp(), CDlgExportHistory::ExportHistory(), fsFindDownloadMgr::FindNext_InHistoryOfDlds(), and SaveHistory().
| BOOL fsDownloadsHistoryMgr::LoadHistory | ( | ) |
Definition at line 188 of file fsDownloadsHistoryMgr.cpp.
References _App, fsAppSettings::CheckHistorySize(), fsDLHistoryRecord::dateAdded, fsDLHistoryRecord::dateDownloaded, fsDLHistoryRecord::dateRecordAdded, DLHISTFILE_CURRENT_VERSION, DLHISTFILE_SIG, FALSE, fsGetDataFilePath(), fsReadStrFromFile(), GetFileSize(), CWaitForConfirmationDlg::Init(), L_DONTCHECKAGAIN, L_HISTTOOLARGE, LS, CWaitForConfirmationDlg::m_bDontAsk, CWaitForConfirmationDlg::m_pszIcon, m_vRecords, NULL, fsString::pszString, fsDLHistoryRecord::strComment, fsDLHistoryRecord::strFileName, fsDLHistoryRecord::strSavedTo, fsDLHistoryRecord::strURL, fsDownloadsHistMgrFileHdr::szSig, TRUE, fsDLHistoryRecord::uFileSize, and fsDownloadsHistMgrFileHdr::wVer.
Referenced by fsDownloadsMgr::LoadDownloads().
| BOOL fsDownloadsHistoryMgr::SaveHistory | ( | ) |
Definition at line 128 of file fsDownloadsHistoryMgr.cpp.
References fsDLHistoryRecord::dateAdded, fsDLHistoryRecord::dateDownloaded, fsDLHistoryRecord::dateRecordAdded, FALSE, fsGetDataFilePath(), fsSaveStrToFile(), GetRecord(), GetRecordCount(), NULL, fsDLHistoryRecord::strComment, fsDLHistoryRecord::strFileName, fsDLHistoryRecord::strSavedTo, fsDLHistoryRecord::strURL, TRUE, and fsDLHistoryRecord::uFileSize.
Referenced by fsDownloadsMgr::Save().
| int fsDownloadsHistoryMgr::GetRecordCount | ( | ) |
Definition at line 123 of file fsDownloadsHistoryMgr.cpp.
References m_vRecords.
Referenced by CDownloads_History::ApplyFilter(), CDownloads_History::ApplyFilter_imp(), CDlgExportHistory::ExportHistory(), fsFindDownloadMgr::FindNext_InDeleted(), fsFindDownloadMgr::FindNext_InHistoryOfDlds(), fsFindDownloadMgr::GetElementCount(), CMainFrame::OnUpdateExportdlhist(), SaveHistory(), CDownloads_Groups::ShowHistoryContextMenu(), and CDlgDownloadsHistory::UpdateEnabled().
| void fsDownloadsHistoryMgr::AddToHistory | ( | vmsDownloadSmartPtr | dld | ) |
Definition at line 83 of file fsDownloadsHistoryMgr.cpp.
References fsDLHistoryRecord::dateAdded, fsDLHistoryRecord::dateDownloaded, fsDLHistoryRecord::dateRecordAdded, DHME_RECORDADDED, Event(), FALSE, CDownloads_Tasks::GetFileName(), m_bCompOnly, m_bUse, m_vRecords, MY_MAX_PATH, fsDLHistoryRecord::strComment, fsDLHistoryRecord::strFileName, fsDLHistoryRecord::strSavedTo, fsDLHistoryRecord::strURL, and fsDLHistoryRecord::uFileSize.
Referenced by fsDownloadsMgr::DeleteDeletedDownloads2(), fsDownloadsMgr::DeleteDownloads2(), fsDownloadsMgr::OnDownloadStoppedOrDone(), and fsDownloadsMgr::PutDownloadToDeleted().
| void fsDownloadsHistoryMgr::SetEventFunc | ( | fntDHMEEventFunc | pfn, | |
| LPVOID | lpParam | |||
| ) |
Definition at line 71 of file fsDownloadsHistoryMgr.cpp.
References m_lpEvParam, and m_pfnEventFunc.
Referenced by fsDownloadsMgr::fsDownloadsMgr().
| void fsDownloadsHistoryMgr::ClearHistory | ( | ) |
Definition at line 65 of file fsDownloadsHistoryMgr.cpp.
References DHME_HISTORYCLEARED, Event(), and m_vRecords.
Referenced by ApplySettings(), CDlgDownloadsHistory::OnClearhistory(), and CDownloads_Groups::OnHistoryClear().
| void fsDownloadsHistoryMgr::ReadSettings | ( | ) |
Definition at line 28 of file fsDownloadsHistoryMgr.cpp.
References _App, ApplySettings(), fsAppSettings::History_Downloads_CompletedOnly(), fsAppSettings::History_Downloads_KeepDays(), fsAppSettings::History_Downloads_Use(), m_bCompOnly, m_bUse, and m_cDaysMax.
Referenced by CDlgDownloadsHistory::OnOK(), and fsDownloadsMgr::ReadSettings().
| void fsDownloadsHistoryMgr::Event | ( | fsDownloadsHistoryMgrEvent | ev, | |
| int | info = 0 | |||
| ) | [protected] |
Definition at line 77 of file fsDownloadsHistoryMgr.cpp.
References m_lpEvParam, and m_pfnEventFunc.
Referenced by AddToHistory(), ApplySettings(), ClearHistory(), and DeleteRecord().
| void fsDownloadsHistoryMgr::ApplySettings | ( | ) | [protected] |
Definition at line 37 of file fsDownloadsHistoryMgr.cpp.
References ClearHistory(), fsDLHistoryRecord::dateRecordAdded, DHME_RECORDDELETED, Event(), FALSE, fsGetFTimeDaysDelta(), m_bUse, m_cDaysMax, and m_vRecords.
Referenced by ReadSettings().
Definition at line 91 of file fsDownloadsHistoryMgr.h.
Referenced by Event(), fsDownloadsHistoryMgr(), and SetEventFunc().
LPVOID fsDownloadsHistoryMgr::m_lpEvParam [protected] |
BOOL fsDownloadsHistoryMgr::m_bCompOnly [protected] |
Definition at line 95 of file fsDownloadsHistoryMgr.h.
Referenced by AddToHistory(), and ReadSettings().
UINT fsDownloadsHistoryMgr::m_cDaysMax [protected] |
Definition at line 96 of file fsDownloadsHistoryMgr.h.
Referenced by ApplySettings(), and ReadSettings().
BOOL fsDownloadsHistoryMgr::m_bUse [protected] |
Definition at line 97 of file fsDownloadsHistoryMgr.h.
Referenced by AddToHistory(), ApplySettings(), and ReadSettings().
fs::list<fsDLHistoryRecord> fsDownloadsHistoryMgr::m_vRecords [protected] |
Definition at line 98 of file fsDownloadsHistoryMgr.h.
Referenced by AddToHistory(), ApplySettings(), ClearHistory(), DeleteRecord(), FindIndex(), GetRecord(), GetRecordCount(), and LoadHistory().
1.5.6