#include <Downloads_History.h>

Public Member Functions | |
| fsDLHistoryRecord * | get_SelectedRecord () |
| void | SelectRecord (fsDLHistoryRecord *rec) |
| void | ApplyFilter (class fsDldHistRecFilter *) |
| void | DeleteAllRecords () |
| void | DeleteRecord (fsDLHistoryRecord *rec) |
| void | AddRecord (fsDLHistoryRecord *rec) |
| void | ApplyLanguage () |
| BOOL | Create (CWnd *pParent) |
| CDownloads_History () | |
| virtual | ~CDownloads_History () |
Static Public Member Functions | |
| static int | GetRecordImage (fsDLHistoryRecord *rec) |
Protected Member Functions | |
| void | OnKeyDown (WORD wVK) |
| void | Sort () |
| void | OnSortModeChanged () |
| void | ApplyLanguageToMenu (CMenu *menu) |
| void | OnRClick () |
| void | ApplyFilter_imp (fsDldHistRecFilter *f, int *piProgress=NULL) |
| void | OnForceUpdate () |
| int | FindRecord (fsDLHistoryRecord *rec) |
| void | UpdateRecord (int iItem) |
| afx_msg void | OnDrawItem (int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct) |
| afx_msg void | OnMeasureItem (int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct) |
| afx_msg void | OnUrltoclipboard () |
| afx_msg void | OnLaunch () |
| afx_msg void | OnOpenfolder () |
| afx_msg void | OnLButtonDblClk (UINT nFlags, CPoint point) |
| afx_msg void | OnHstitemDelete () |
Static Protected Member Functions | |
| static int CALLBACK | _sortFunc (LPARAM item1, LPARAM item2, LPARAM lp) |
| static DWORD WINAPI | _threadApplyFilter (LPVOID lp) |
Protected Attributes | |
| fsODMenu | m_odmenu |
| fsDownloadsHistoryMgr * | m_mgr |
| fsMutex | m_mxAddDel |
| CImageList | m_images |
| CImageList | m_selimages |
Definition at line 17 of file Downloads_History.h.
| CDownloads_History::CDownloads_History | ( | ) |
Definition at line 32 of file Downloads_History.cpp.
| CDownloads_History::~CDownloads_History | ( | ) | [virtual] |
Definition at line 37 of file Downloads_History.cpp.
| fsDLHistoryRecord * CDownloads_History::get_SelectedRecord | ( | ) |
Definition at line 419 of file Downloads_History.cpp.
Referenced by OnLaunch(), OnOpenfolder(), and OnUrltoclipboard().
| void CDownloads_History::SelectRecord | ( | fsDLHistoryRecord * | rec | ) |
Definition at line 252 of file Downloads_History.cpp.
References FALSE, FindRecord(), and pos().
Referenced by CDownloadsWnd::SelectHistRecord().
| int CDownloads_History::GetRecordImage | ( | fsDLHistoryRecord * | rec | ) | [static] |
Definition at line 244 of file Downloads_History.cpp.
References fsDLHistoryRecord::dateDownloaded, and _FILETIME::dwHighDateTime.
Referenced by UpdateRecord().
| void CDownloads_History::ApplyFilter | ( | class fsDldHistRecFilter * | filter | ) |
Definition at line 193 of file Downloads_History.cpp.
References _threadApplyFilter(), ApplyFilter_imp(), DeleteAllRecords(), FALSE, fsDownloadsHistoryMgr::GetRecordCount(), L_BUILDINGLISTOFHISTORY, LS, m_mgr, NULL, and CWaitDlg::StartWaiting().
Referenced by CDownloadsWnd::ApplyHistoryCurrentFilter(), CDownloads_Groups::OnClick(), and CDownloads_Groups::OnSelchanged().
| void CDownloads_History::DeleteAllRecords | ( | ) |
Definition at line 113 of file Downloads_History.cpp.
References fsMutex::Lock(), m_mxAddDel, and fsMutex::Unlock().
Referenced by CDownloadsWnd::_Events(), ApplyFilter(), and ApplyFilter_imp().
| void CDownloads_History::DeleteRecord | ( | fsDLHistoryRecord * | rec | ) |
Definition at line 104 of file Downloads_History.cpp.
References FindRecord(), fsMutex::Lock(), m_mxAddDel, and fsMutex::Unlock().
Referenced by CDownloadsWnd::_Events().
| void CDownloads_History::AddRecord | ( | fsDLHistoryRecord * | rec | ) |
Definition at line 91 of file Downloads_History.cpp.
References CListCtrlEx::AddItem(), fsMutex::Lock(), m_mxAddDel, TRUE, fsMutex::Unlock(), and UpdateRecord().
Referenced by CDownloadsWnd::_Events(), and ApplyFilter_imp().
| void CDownloads_History::ApplyLanguage | ( | ) |
Definition at line 80 of file Downloads_History.cpp.
References L_ADDED, L_COMMENT, L_DOWNLOADED, L_FILE, L_SAVEDTO, L_SIZE, LS, and CListCtrlEx::SetColumnText().
Referenced by CDownloadsWnd::Plugin_SetLanguage().
| BOOL CDownloads_History::Create | ( | CWnd * | pParent | ) |
Definition at line 42 of file Downloads_History.cpp.
References _DldsMgr, FALSE, IDB_DOWNLOADSTASKS, IDB_DOWNLOADSTASKS_SEL, fsDownloadsMgr::m_histmgr, m_images, m_mgr, m_selimages, CListCtrlEx::ReadState(), SBMP, CListCtrlEx::SetSelectedImages(), and TRUE.
Referenced by CDownloadsWnd::OnCreate().
| void CDownloads_History::OnKeyDown | ( | WORD | wVK | ) | [protected, virtual] |
Reimplemented from CListCtrlEx.
Definition at line 467 of file Downloads_History.cpp.
References OnHstitemDelete().
| int CALLBACK CDownloads_History::_sortFunc | ( | LPARAM | item1, | |
| LPARAM | item2, | |||
| LPARAM | lp | |||
| ) | [static, protected] |
Definition at line 341 of file Downloads_History.cpp.
References CompareFileTime(), fsDLHistoryRecord::dateAdded, fsDLHistoryRecord::dateDownloaded, _FILETIME::dwHighDateTime, CListCtrlEx::m_iSortCol, fsDLHistoryRecord::strFileName, fsDLHistoryRecord::strSavedTo, fsDLHistoryRecord::strURL, and fsDLHistoryRecord::uFileSize.
Referenced by Sort().
| void CDownloads_History::Sort | ( | ) | [protected] |
Definition at line 331 of file Downloads_History.cpp.
References _sortFunc(), CDownloadsWnd::ApplyHistoryCurrentFilter(), LCSM_NONE, and CListCtrlEx::m_sortMode.
Referenced by OnSortModeChanged().
| void CDownloads_History::OnSortModeChanged | ( | ) | [protected, virtual] |
Reimplemented from CListCtrlEx.
Definition at line 323 of file Downloads_History.cpp.
References LCSM_ASCENDING, CListCtrlEx::m_sortMode, and Sort().
| void CDownloads_History::ApplyLanguageToMenu | ( | CMenu * | menu | ) | [protected] |
Definition at line 297 of file Downloads_History.cpp.
References ID_HSTITEM_DELETE, ID_LAUNCH, ID_OPENFOLDER, ID_URLTOCLIPBOARD, L_DELETERECORD, L_LAUNCHFILE, L_OPENFOLDER, L_URLTOCLIPBOARD, and LS.
Referenced by OnRClick().
| void CDownloads_History::OnRClick | ( | ) | [protected, virtual] |
Reimplemented from CListCtrlEx.
Definition at line 270 of file Downloads_History.cpp.
References ApplyLanguageToMenu(), fsODMenu::Attach(), fsODMenu::Detach(), FALSE, ID_HSTITEM_DELETE, ID_LAUNCH, ID_OPENFOLDER, ID_URLTOCLIPBOARD, IDM_HISTORYITEMS, and m_odmenu.
| DWORD WINAPI CDownloads_History::_threadApplyFilter | ( | LPVOID | lp | ) | [static, protected] |
Definition at line 234 of file Downloads_History.cpp.
References ApplyFilter_imp(), ProcWaitInfo::bWaitDone, simple_client::info, ProcWaitInfo::iProgress, ProcWaitInfo::lpParam1, ProcWaitInfo::lpParam2, and TRUE.
Referenced by ApplyFilter().
| void CDownloads_History::ApplyFilter_imp | ( | fsDldHistRecFilter * | f, | |
| int * | piProgress = NULL | |||
| ) | [protected] |
Definition at line 211 of file Downloads_History.cpp.
References AddRecord(), DeleteAllRecords(), fsDownloadsHistoryMgr::GetRecord(), fsDownloadsHistoryMgr::GetRecordCount(), fsDldHistRecFilter::IsSatisfies(), and m_mgr.
Referenced by _threadApplyFilter(), and ApplyFilter().
| void CDownloads_History::OnForceUpdate | ( | ) | [protected, virtual] |
Reimplemented from CListCtrlEx.
Definition at line 185 of file Downloads_History.cpp.
References UpdateRecord().
| int CDownloads_History::FindRecord | ( | fsDLHistoryRecord * | rec | ) | [protected] |
Definition at line 175 of file Downloads_History.cpp.
Referenced by DeleteRecord(), and SelectRecord().
| void CDownloads_History::UpdateRecord | ( | int | iItem | ) | [protected] |
Definition at line 120 of file Downloads_History.cpp.
References BytesToXBytes(), fsDLHistoryRecord::dateAdded, fsDLHistoryRecord::dateDownloaded, fsDLHistoryRecord::dateRecordAdded, _FILETIME::dwHighDateTime, FALSE, FileTimeToStr(), fsBytesToStr(), GetRecordImage(), CDownloadsWnd::IsSizesInBytes(), L_UNKNOWN, L_WASDELETED_, LS, NULL, fsString::Replace(), CListCtrlEx::SetItemImage(), CListCtrlEx::SetItemText(), fsDLHistoryRecord::strComment, fsDLHistoryRecord::strFileName, fsDLHistoryRecord::strSavedTo, fsDLHistoryRecord::strURL, and fsDLHistoryRecord::uFileSize.
Referenced by AddRecord(), and OnForceUpdate().
| void CDownloads_History::OnDrawItem | ( | int | nIDCtl, | |
| LPDRAWITEMSTRUCT | lpDrawItemStruct | |||
| ) | [protected] |
Definition at line 307 of file Downloads_History.cpp.
References m_odmenu, and fsODMenu::OnDrawItem().
| void CDownloads_History::OnMeasureItem | ( | int | nIDCtl, | |
| LPMEASUREITEMSTRUCT | lpMeasureItemStruct | |||
| ) | [protected] |
Definition at line 312 of file Downloads_History.cpp.
References m_odmenu, and fsODMenu::OnMeasureItem().
| void CDownloads_History::OnUrltoclipboard | ( | ) | [protected] |
Definition at line 317 of file Downloads_History.cpp.
References _ClipbrdMgr, get_SelectedRecord(), fsDLHistoryRecord::strURL, and fsClipboardMgr::Text().
| void CDownloads_History::OnLaunch | ( | ) | [protected] |
Definition at line 394 of file Downloads_History.cpp.
References get_SelectedRecord(), NULL, ShellExecute, and fsDLHistoryRecord::strSavedTo.
Referenced by OnLButtonDblClk().
| void CDownloads_History::OnOpenfolder | ( | ) | [protected] |
Definition at line 401 of file Downloads_History.cpp.
References fsGetPath(), get_SelectedRecord(), MY_MAX_PATH, NULL, ShellExecute, and fsDLHistoryRecord::strSavedTo.
| void CDownloads_History::OnLButtonDblClk | ( | UINT | nFlags, | |
| CPoint | point | |||
| ) | [protected] |
| void CDownloads_History::OnHstitemDelete | ( | ) | [protected] |
Definition at line 436 of file Downloads_History.cpp.
References _DldsMgr, fsDownloadsHistoryMgr::DeleteRecord(), L_CONFIRMATION, L_ISOKTODELETE, LS, fsDownloadsMgr::m_histmgr, and pos().
Referenced by OnKeyDown().
fsODMenu CDownloads_History::m_odmenu [protected] |
Definition at line 44 of file Downloads_History.h.
Referenced by OnDrawItem(), OnMeasureItem(), and OnRClick().
fsDownloadsHistoryMgr* CDownloads_History::m_mgr [protected] |
Definition at line 50 of file Downloads_History.h.
Referenced by ApplyFilter(), ApplyFilter_imp(), and Create().
fsMutex CDownloads_History::m_mxAddDel [protected] |
Definition at line 51 of file Downloads_History.h.
Referenced by AddRecord(), DeleteAllRecords(), and DeleteRecord().
CImageList CDownloads_History::m_images [protected] |
CImageList CDownloads_History::m_selimages [protected] |
1.5.6