#include <fsCmdHistoryMgr.h>
Public Member Functions | |
| void | Set_MaxDaysCount (int cMax) |
| void | Set_NoHistory (BOOL b) |
| void | ClearHistory () |
| void | Set_MaxRecordCount (int iMax) |
| void | AddRecord (LPCSTR pszRecord) |
| LPCSTR | GetRecord (int iRec) |
| int | GetRecordCount () |
| BOOL | SaveToFile (HANDLE hFile) |
| BOOL | ReadFromFile (HANDLE hFile) |
| fsCmdHistoryMgr () | |
| virtual | ~fsCmdHistoryMgr () |
Protected Attributes | |
| fs::list< fs1DayRecords > | m_vRecs |
| int | m_cMaxRecords |
| SYSTEMTIME | m_curday |
| BOOL | m_bNoHistory |
| int | m_cMaxDays |
Classes | |
| struct | fs1DayRecords |
Definition at line 31 of file fsCmdHistoryMgr.h.
| fsCmdHistoryMgr::fsCmdHistoryMgr | ( | ) |
Definition at line 17 of file fsCmdHistoryMgr.cpp.
References m_cMaxDays, m_cMaxRecords, and m_curday.
| fsCmdHistoryMgr::~fsCmdHistoryMgr | ( | ) | [virtual] |
Definition at line 24 of file fsCmdHistoryMgr.cpp.
| void fsCmdHistoryMgr::Set_MaxDaysCount | ( | int | cMax | ) |
Definition at line 241 of file fsCmdHistoryMgr.cpp.
References m_cMaxDays, and m_vRecs.
Referenced by ReadFromFile(), and fsHistoriesMgr::ReadSettings().
| void fsCmdHistoryMgr::Set_NoHistory | ( | BOOL | b | ) |
Definition at line 234 of file fsCmdHistoryMgr.cpp.
References ClearHistory(), and m_bNoHistory.
Referenced by fsHistoriesMgr::ReadSettings().
| void fsCmdHistoryMgr::ClearHistory | ( | ) |
Definition at line 229 of file fsCmdHistoryMgr.cpp.
References m_vRecs.
Referenced by fsHistoriesMgr::ClearAll(), and Set_NoHistory().
| void fsCmdHistoryMgr::Set_MaxRecordCount | ( | int | iMax | ) |
Definition at line 204 of file fsCmdHistoryMgr.cpp.
References GetRecordCount(), m_cMaxRecords, and m_vRecs.
Referenced by ReadFromFile(), and fsHistoriesMgr::ReadSettings().
| void fsCmdHistoryMgr::AddRecord | ( | LPCSTR | pszRecord | ) |
Definition at line 122 of file fsCmdHistoryMgr.cpp.
References fsCmdHistoryMgr::fs1DayRecords::day, GetRecordCount(), m_bNoHistory, m_cMaxDays, m_cMaxRecords, m_curday, m_vRecs, and fsCmdHistoryMgr::fs1DayRecords::vRecs.
Referenced by CHFE_Address::HfeGo(), CSpiderAddPageDlg::OnOK(), CGroupDlg::OnOK(), CDlgFind::OnOK(), CDlg_CreateFVDownload::OnOK(), CCreateDownloadsDlg::OnOK(), CCreateDownloadListDlg::OnOK(), CCreateDownloadFromTorrentFileDlg::OnOK(), CCreateDownloadDlg::OnOK(), and CCreateBatchDownload::OnOK().
| LPCSTR fsCmdHistoryMgr::GetRecord | ( | int | iRec | ) |
Definition at line 185 of file fsCmdHistoryMgr.cpp.
Referenced by CHFE_Address::HfeGo(), CHFE_Address::OnCreate(), CSpiderAddPageDlg::OnInitDialog(), CSites_GeneralPage::OnInitDialog(), CGroupDlg::OnInitDialog(), CDlgFind::OnInitDialog(), CDlg_CreateFVDownload::OnInitDialog(), CCreateDownloadsDlg::OnInitDialog(), CCreateDownloadListDlg::OnInitDialog(), CCreateDownloadFromTorrentFileDlg::OnInitDialog(), CCreateDownloadDlg::OnInitDialog(), and CCreateBatchDownload::OnInitDialog().
| int fsCmdHistoryMgr::GetRecordCount | ( | ) |
Definition at line 114 of file fsCmdHistoryMgr.cpp.
References m_vRecs.
Referenced by AddRecord(), CHFE_Address::HfeGo(), CHFE_Address::OnCreate(), CSpiderAddPageDlg::OnInitDialog(), CSites_GeneralPage::OnInitDialog(), CGroupDlg::OnInitDialog(), CDlgFind::OnInitDialog(), CDlg_CreateFVDownload::OnInitDialog(), CCreateDownloadsDlg::OnInitDialog(), CCreateDownloadListDlg::OnInitDialog(), CCreateDownloadFromTorrentFileDlg::OnInitDialog(), CCreateDownloadDlg::OnInitDialog(), CCreateBatchDownload::OnInitDialog(), Set_MaxRecordCount(), and CPrg_HistoryPage::UpdateEnabled().
| BOOL fsCmdHistoryMgr::SaveToFile | ( | HANDLE | hFile | ) |
Definition at line 29 of file fsCmdHistoryMgr.cpp.
References FALSE, fsSaveStrToFile(), m_vRecs, NULL, and TRUE.
Referenced by CFdmApp::SaveHistory().
| BOOL fsCmdHistoryMgr::ReadFromFile | ( | HANDLE | hFile | ) |
Definition at line 62 of file fsCmdHistoryMgr.cpp.
References fsCmdHistoryMgr::fs1DayRecords::day, FALSE, fsReadStrFromFile(), HISTFILE_CURRENT_VERSION, HISTFILE_SIG, m_cMaxDays, m_cMaxRecords, m_curday, m_vRecs, NULL, Set_MaxDaysCount(), Set_MaxRecordCount(), fsHistFileHdr::szSig, TRUE, fsCmdHistoryMgr::fs1DayRecords::vRecs, and fsHistFileHdr::wVer.
Referenced by CFdmApp::LoadHistory().
fs::list<fs1DayRecords> fsCmdHistoryMgr::m_vRecs [protected] |
Definition at line 65 of file fsCmdHistoryMgr.h.
Referenced by AddRecord(), ClearHistory(), GetRecord(), GetRecordCount(), ReadFromFile(), SaveToFile(), Set_MaxDaysCount(), and Set_MaxRecordCount().
int fsCmdHistoryMgr::m_cMaxRecords [protected] |
Definition at line 66 of file fsCmdHistoryMgr.h.
Referenced by AddRecord(), fsCmdHistoryMgr(), ReadFromFile(), and Set_MaxRecordCount().
SYSTEMTIME fsCmdHistoryMgr::m_curday [protected] |
Definition at line 67 of file fsCmdHistoryMgr.h.
Referenced by AddRecord(), fsCmdHistoryMgr(), and ReadFromFile().
BOOL fsCmdHistoryMgr::m_bNoHistory [protected] |
int fsCmdHistoryMgr::m_cMaxDays [protected] |
Definition at line 69 of file fsCmdHistoryMgr.h.
Referenced by AddRecord(), fsCmdHistoryMgr(), ReadFromFile(), and Set_MaxDaysCount().
1.5.6