#include <Downloads_Deleted.h>

Public Member Functions | |
| void | SelectDownload (vmsDownloadSmartPtr dld) |
| void | RemoveAll () |
| void | RemoveDownload (vmsDownloadSmartPtr dld) |
| void | AddDownload (vmsDownloadSmartPtr dld) |
| void | ApplyLanguage () |
| BOOL | Create (CWnd *pParent) |
| CDownloads_Deleted () | |
| virtual | ~CDownloads_Deleted () |
Static Public Member Functions | |
| static int | GetDownloadImage (vmsDownloadSmartPtr dld) |
Protected Member Functions | |
| void | Sort () |
| void | OnSortModeChanged () |
| void | OnForceUpdate () |
| void | OnKeyDown (WORD wVK) |
| void | ApplyLanguageToMenu (CMenu *menu) |
| void | OnRClick () |
| int | FindDownload (vmsDownloadSmartPtr dld) |
| void | UpdateDownload (int iItem) |
| afx_msg void | OnMeasureItem (int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct) |
| afx_msg void | OnDrawItem (int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct) |
| afx_msg void | OnDeletedDelete () |
| afx_msg void | OnDeletedRestore () |
| afx_msg void | OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags) |
Static Protected Member Functions | |
| static int CALLBACK | _sortFunc (LPARAM item1, LPARAM item2, LPARAM lp) |
Protected Attributes | |
| fsODMenu | m_odmenu |
| CImageList | m_images |
| CImageList | m_selimages |
Definition at line 16 of file Downloads_Deleted.h.
| CDownloads_Deleted::CDownloads_Deleted | ( | ) |
Definition at line 29 of file Downloads_Deleted.cpp.
| CDownloads_Deleted::~CDownloads_Deleted | ( | ) | [virtual] |
Definition at line 34 of file Downloads_Deleted.cpp.
| void CDownloads_Deleted::SelectDownload | ( | vmsDownloadSmartPtr | dld | ) |
Definition at line 401 of file Downloads_Deleted.cpp.
References FALSE, FindDownload(), and pos().
Referenced by CDownloadsWnd::SelectDeletedDownload().
| int CDownloads_Deleted::GetDownloadImage | ( | vmsDownloadSmartPtr | dld | ) | [static] |
| void CDownloads_Deleted::RemoveAll | ( | ) |
Definition at line 182 of file Downloads_Deleted.cpp.
| void CDownloads_Deleted::RemoveDownload | ( | vmsDownloadSmartPtr | dld | ) |
Definition at line 91 of file Downloads_Deleted.cpp.
References FindDownload().
Referenced by CDownloadsWnd::_Events().
| void CDownloads_Deleted::AddDownload | ( | vmsDownloadSmartPtr | dld | ) |
Definition at line 81 of file Downloads_Deleted.cpp.
References CListCtrlEx::AddItem(), TRUE, and UpdateDownload().
Referenced by CDownloadsWnd::_Events(), CDownloadsWnd::LoadDownloads(), and Sort().
| void CDownloads_Deleted::ApplyLanguage | ( | ) |
Definition at line 72 of file Downloads_Deleted.cpp.
References L_COMMENT, L_DOWNLOADED, L_FILENAME, L_SECTIONS, L_SIZE, LS, and CListCtrlEx::SetColumnText().
Referenced by CDownloadsWnd::Plugin_SetLanguage().
| BOOL CDownloads_Deleted::Create | ( | CWnd * | pParent | ) |
Definition at line 39 of file Downloads_Deleted.cpp.
References FALSE, IDB_DOWNLOADSTASKS, IDB_DOWNLOADSTASKS_SEL, m_images, m_selimages, CListCtrlEx::ReadState(), SBMP, CListCtrlEx::SetSelectedImages(), and TRUE.
Referenced by CDownloadsWnd::OnCreate().
| int CALLBACK CDownloads_Deleted::_sortFunc | ( | LPARAM | item1, | |
| LPARAM | item2, | |||
| LPARAM | lp | |||
| ) | [static, protected] |
Definition at line 344 of file Downloads_Deleted.cpp.
References CDownloads_Tasks::GetFileName(), and CListCtrlEx::m_iSortCol.
Referenced by Sort().
| void CDownloads_Deleted::Sort | ( | ) | [protected] |
Definition at line 332 of file Downloads_Deleted.cpp.
References _DldsMgr, _sortFunc(), AddDownload(), fsDownloadsMgr::Get_DeletedDownload(), fsDownloadsMgr::Get_DeletedDownloadCount(), LCSM_NONE, and CListCtrlEx::m_sortMode.
Referenced by OnSortModeChanged().
| void CDownloads_Deleted::OnSortModeChanged | ( | ) | [protected, virtual] |
Reimplemented from CListCtrlEx.
Definition at line 324 of file Downloads_Deleted.cpp.
References LCSM_ASCENDING, CListCtrlEx::m_sortMode, and Sort().
| void CDownloads_Deleted::OnForceUpdate | ( | ) | [protected, virtual] |
Reimplemented from CListCtrlEx.
Definition at line 308 of file Downloads_Deleted.cpp.
References UpdateDownload().
| void CDownloads_Deleted::OnKeyDown | ( | WORD | wVK | ) | [protected, virtual] |
Reimplemented from CListCtrlEx.
Definition at line 294 of file Downloads_Deleted.cpp.
References CDownloadsWnd::m_wndGroups, and OnDeletedDelete().
| void CDownloads_Deleted::ApplyLanguageToMenu | ( | CMenu * | menu | ) | [protected] |
Definition at line 210 of file Downloads_Deleted.cpp.
References ID_DELETED_DELETE, ID_DELETED_RESTORE, L_DELETE, L_RESTORE, and LS.
Referenced by OnRClick().
| void CDownloads_Deleted::OnRClick | ( | ) | [protected, virtual] |
Reimplemented from CListCtrlEx.
Definition at line 187 of file Downloads_Deleted.cpp.
References ApplyLanguageToMenu(), fsODMenu::Attach(), fsODMenu::Detach(), FALSE, ID_DELETED_DELETE, ID_DELETED_RESTORE, IDM_DELETEDITEMS, and m_odmenu.
| int CDownloads_Deleted::FindDownload | ( | vmsDownloadSmartPtr | dld | ) | [protected] |
Definition at line 172 of file Downloads_Deleted.cpp.
Referenced by RemoveDownload(), and SelectDownload().
| void CDownloads_Deleted::UpdateDownload | ( | int | iItem | ) | [protected] |
Definition at line 98 of file Downloads_Deleted.cpp.
References BytesToXBytes(), FALSE, fsBytesToStr(), GetDownloadImage(), CDownloads_Tasks::GetFileName(), CDownloadsWnd::IsSizesInBytes(), simple_client::s, CListCtrlEx::SetItemImage(), and CListCtrlEx::SetItemText().
Referenced by AddDownload(), and OnForceUpdate().
| void CDownloads_Deleted::OnMeasureItem | ( | int | nIDCtl, | |
| LPMEASUREITEMSTRUCT | lpMeasureItemStruct | |||
| ) | [protected] |
Definition at line 216 of file Downloads_Deleted.cpp.
References m_odmenu, and fsODMenu::OnMeasureItem().
| void CDownloads_Deleted::OnDrawItem | ( | int | nIDCtl, | |
| LPDRAWITEMSTRUCT | lpDrawItemStruct | |||
| ) | [protected] |
Definition at line 221 of file Downloads_Deleted.cpp.
References m_odmenu, and fsODMenu::OnDrawItem().
| void CDownloads_Deleted::OnDeletedDelete | ( | ) | [protected] |
Definition at line 226 of file Downloads_Deleted.cpp.
References _DldsMgr, fsDownloadsMgr::DeleteDeletedDownloads(), L_AREYOUSURE, L_CONFIRMATION, LS, CDownloadsWnd::m_wndDeleted, and pos().
Referenced by OnKeyDown().
| void CDownloads_Deleted::OnDeletedRestore | ( | ) | [protected] |
Definition at line 251 of file Downloads_Deleted.cpp.
References _DldsMgr, CDownloadsWnd::m_wndDeleted, pos(), and fsDownloadsMgr::RestoreDownloads().
fsODMenu CDownloads_Deleted::m_odmenu [protected] |
Definition at line 41 of file Downloads_Deleted.h.
Referenced by OnDrawItem(), OnMeasureItem(), and OnRClick().
CImageList CDownloads_Deleted::m_images [protected] |
CImageList CDownloads_Deleted::m_selimages [protected] |
1.5.6