CDownloads_Tasks Class Reference

#include <Downloads_Tasks.h>

Inheritance diagram for CDownloads_Tasks:

CListCtrlEx

List of all members.

Public Member Functions

 CDownloads_Tasks ()
void BeginAddDownloads ()
void EndAddDownloads ()
vmsDownloadSmartPtr GetItemData (int nItem)
void DeleteAllItems ()
void UnlockList ()
void LockList ()
void SelectDownload (vmsDownloadSmartPtr dld)
void CallSelectedDownload ()
void ApplyLanguage ()
void ApplyLanguageToMenu (CMenu *menu)
int OnUpdateToolBar (UINT nID)
void UnscheduleDownload (UINT nID)
void UpdateAllDownloads ()
void DeleteDownload (vmsDownloadSmartPtr dld)
void AddDownload (vmsDownloadSmartPtr dld, BOOL bSelThisDld=FALSE)
void UpdateMenu (CMenu *pMenu)
void WillBeDeleted (vmsDownloadSmartPtr dld)
vmsDownloadSmartPtr GetActiveDownload ()
void UpdateDownload (vmsDownloadSmartPtr dld, BOOL bRedraw=TRUE)
void AddDownloadToList (vmsDownloadSmartPtr dld, BOOL bSelThisDld=FALSE, bool bPlaceToTop=false)
int FindItem (vmsDownloadSmartPtr dld)
BOOL Create (CWnd *pParent)
virtual ~CDownloads_Tasks ()

Static Public Member Functions

static void GetFileName (vmsDownloadSmartPtr dld, LPSTR pszFile)
static int GetDownloadImage (vmsDownloadSmartPtr dld)
static CString GetDownloadText (vmsDownloadSmartPtr dld, int nSubItem)

Public Attributes

BOOL m_bSizesInBytes
class CDownloadsWndm_pDownloadsWnd

Protected Member Functions

void ScheduleProcessDownloads ()
void UpdateDownload (size_t nIndex, BOOL bRedraw)
void ScheduleSelectedDlds (BOOL bStart)
void Sort ()
void MoveSelectedDownloads (vmsMoveType)
virtual void OnItemChanged (NM_LISTVIEW *pLV)
void SortDownloads ()
afx_msg void OnGetdispinfo (NMHDR *pNMHDR, LRESULT *pResult)
void OnSortModeChanged ()
void CalcCoordsForCurSel ()
void OnForceUpdate ()
void DeleteSelected (BOOL bDontConfirmFileDeleting=FALSE)
void UpdateActiveDownload (int adjSelected)
void OnKeyDown (WORD wVK)
void OnDeleteAllItems ()
void OnDeleteItem (NM_LISTVIEW *pNM)
void OnRClick ()
void OnClick ()
afx_msg void OnRButtonDown (UINT nFlags, CPoint point)
afx_msg void OnLButtonDblClk (UINT nFlags, CPoint point)
afx_msg void OnDldcreate ()
afx_msg void OnDlddelete ()
afx_msg void OnDldproperties ()
afx_msg void OnDldstart ()
afx_msg void OnDldstop ()
afx_msg void OnDldlaunch ()
afx_msg void OnDldopenfolder ()
afx_msg void OnDldschedule ()
afx_msg void OnDldautostart ()
afx_msg void OnDrawItem (int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct)
afx_msg void OnMeasureItem (int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct)
afx_msg void OnDldaddsection ()
afx_msg void OnDlddelsection ()
afx_msg void OnDldrestart ()
afx_msg void OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags)
afx_msg void OnChar (UINT nChar, UINT nRepCnt, UINT nFlags)
afx_msg void OnDldqsize ()
afx_msg void OnDldcreatebatch ()
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnDldcheckvir ()
afx_msg void OnDldfind ()
afx_msg void OnDldfindnext ()
afx_msg void OnDldunpack ()
afx_msg void OnDldmovedown ()
afx_msg void OnDldmoveup ()
afx_msg void OnDldcheckintegrity ()
afx_msg void OnDldmovetofolder ()
afx_msg void OnDldmovebottom ()
afx_msg void OnDldmovetop ()
afx_msg void OnDldschedulestop ()
afx_msg void OnDldgrantbandwidthfordld ()
afx_msg void OnDldshowprogressdlg ()
afx_msg void OnDldconvert ()
afx_msg void OnTimer (UINT nIDEvent)
afx_msg void OnDldenableseeding ()

Static Protected Member Functions

static void _downloadsQuickSort (vmsDownloadSmartPtr *a, int N, int nCol)
static int _compareDownloads (vmsDownloadSmartPtr dld1, vmsDownloadSmartPtr dld2, int nColumn)

Protected Attributes

bool m_bHasEnableSeedingDlds
bool m_bAddingDownloads
fsMutex m_mxAddDel
CFloatingWndDropTarget m_drop
DLDS_LIST m_vDownloads
CImageList m_selimages
fsODMenu m_odmenu
CPoint m_rbPt
vmsDownloadSmartPtr m_pActiveDownload
CImageList m_images

Private Attributes

BOOL m_bAutoStart

Friends

class CDownloadsWnd
class CDownloaderProperties_ListPage

Classes

struct  _sRecordInfo


Detailed Description

Definition at line 33 of file Downloads_Tasks.h.


Constructor & Destructor Documentation

CDownloads_Tasks::CDownloads_Tasks (  ) 

CDownloads_Tasks::~CDownloads_Tasks (  )  [virtual]

Definition at line 43 of file Downloads_Tasks.cpp.


Member Function Documentation

void CDownloads_Tasks::BeginAddDownloads (  ) 

void CDownloads_Tasks::EndAddDownloads (  ) 

vmsDownloadSmartPtr CDownloads_Tasks::GetItemData ( int  nItem  ) 

void CDownloads_Tasks::DeleteAllItems (  ) 

void CDownloads_Tasks::UnlockList (  ) 

void CDownloads_Tasks::LockList (  ) 

void CDownloads_Tasks::SelectDownload ( vmsDownloadSmartPtr  dld  ) 

void CDownloads_Tasks::CallSelectedDownload (  ) 

void CDownloads_Tasks::GetFileName ( vmsDownloadSmartPtr  dld,
LPSTR  pszFile 
) [static]

void CDownloads_Tasks::ApplyLanguage (  ) 

void CDownloads_Tasks::ApplyLanguageToMenu ( CMenu *  menu  ) 

int CDownloads_Tasks::OnUpdateToolBar ( UINT  nID  ) 

void CDownloads_Tasks::UnscheduleDownload ( UINT  nID  ) 

void CDownloads_Tasks::UpdateAllDownloads (  ) 

Definition at line 706 of file Downloads_Tasks.cpp.

Referenced by CDownloadsWnd::UpdateAllDownloads().

void CDownloads_Tasks::DeleteDownload ( vmsDownloadSmartPtr  dld  ) 

void CDownloads_Tasks::AddDownload ( vmsDownloadSmartPtr  dld,
BOOL  bSelThisDld = FALSE 
)

void CDownloads_Tasks::UpdateMenu ( CMenu *  pMenu  ) 

void CDownloads_Tasks::WillBeDeleted ( vmsDownloadSmartPtr  dld  ) 

Definition at line 471 of file Downloads_Tasks.cpp.

References DeleteDownload(), and UnscheduleDownload().

Referenced by CDownloadsWnd::_Events().

vmsDownloadSmartPtr CDownloads_Tasks::GetActiveDownload (  ) 

Definition at line 222 of file Downloads_Tasks.cpp.

References m_pActiveDownload.

Referenced by CDownloadsWnd::_Events().

void CDownloads_Tasks::UpdateDownload ( vmsDownloadSmartPtr  dld,
BOOL  bRedraw = TRUE 
)

void CDownloads_Tasks::AddDownloadToList ( vmsDownloadSmartPtr  dld,
BOOL  bSelThisDld = FALSE,
bool  bPlaceToTop = false 
)

int CDownloads_Tasks::GetDownloadImage ( vmsDownloadSmartPtr  dld  )  [static]

int CDownloads_Tasks::FindItem ( vmsDownloadSmartPtr  dld  ) 

CString CDownloads_Tasks::GetDownloadText ( vmsDownloadSmartPtr  dld,
int  nSubItem 
) [static]

BOOL CDownloads_Tasks::Create ( CWnd *  pParent  ) 

void CDownloads_Tasks::ScheduleProcessDownloads (  )  [protected]

Definition at line 2092 of file Downloads_Tasks.cpp.

References NULL.

Referenced by OnDldmovebottom(), OnDldmovedown(), OnDldmovetop(), and OnDldmoveup().

void CDownloads_Tasks::UpdateDownload ( size_t  nIndex,
BOOL  bRedraw 
) [protected]

void CDownloads_Tasks::ScheduleSelectedDlds ( BOOL  bStart  )  [protected]

void CDownloads_Tasks::Sort (  )  [protected]

Definition at line 1179 of file Downloads_Tasks.cpp.

References LCSM_NONE, CListCtrlEx::m_sortMode, and SortDownloads().

Referenced by OnSortModeChanged().

void CDownloads_Tasks::MoveSelectedDownloads ( vmsMoveType  enMT  )  [protected]

void CDownloads_Tasks::OnItemChanged ( NM_LISTVIEW *  pLV  )  [protected, virtual]

Reimplemented from CListCtrlEx.

Definition at line 1693 of file Downloads_Tasks.cpp.

References UpdateActiveDownload().

void CDownloads_Tasks::_downloadsQuickSort ( vmsDownloadSmartPtr a,
int  N,
int  nCol 
) [static, protected]

Definition at line 1659 of file Downloads_Tasks.cpp.

References _compareDownloads().

Referenced by SortDownloads().

void CDownloads_Tasks::SortDownloads (  )  [protected]

int CDownloads_Tasks::_compareDownloads ( vmsDownloadSmartPtr  dld1,
vmsDownloadSmartPtr  dld2,
int  nColumn 
) [static, protected]

Definition at line 1526 of file Downloads_Tasks.cpp.

References CompareFileTime(), and GetFileName().

Referenced by _downloadsQuickSort().

void CDownloads_Tasks::OnGetdispinfo ( NMHDR *  pNMHDR,
LRESULT *  pResult 
) [protected]

void CDownloads_Tasks::OnSortModeChanged (  )  [protected, virtual]

Reimplemented from CListCtrlEx.

Definition at line 1174 of file Downloads_Tasks.cpp.

References Sort().

void CDownloads_Tasks::CalcCoordsForCurSel (  )  [protected]

Definition at line 951 of file Downloads_Tasks.cpp.

References m_rbPt, and pos().

Referenced by OnKeyDown().

void CDownloads_Tasks::OnForceUpdate (  )  [protected, virtual]

Reimplemented from CListCtrlEx.

Definition at line 738 of file Downloads_Tasks.cpp.

Referenced by CDownloaderProperties_ListPage::OnApply().

void CDownloads_Tasks::DeleteSelected ( BOOL  bDontConfirmFileDeleting = FALSE  )  [protected]

void CDownloads_Tasks::UpdateActiveDownload ( int  adjSelected  )  [protected]

void CDownloads_Tasks::OnKeyDown ( WORD  wVK  )  [protected, virtual]

void CDownloads_Tasks::OnDeleteAllItems (  )  [protected, virtual]

void CDownloads_Tasks::OnDeleteItem ( NM_LISTVIEW *  pNM  )  [protected, virtual]

Reimplemented from CListCtrlEx.

Definition at line 206 of file Downloads_Tasks.cpp.

References LONG, m_pActiveDownload, m_pDownloadsWnd, NULL, and CDownloadsWnd::SetActiveDownload().

void CDownloads_Tasks::OnRClick (  )  [protected, virtual]

void CDownloads_Tasks::OnClick (  )  [protected, virtual]

Reimplemented from CListCtrlEx.

Definition at line 169 of file Downloads_Tasks.cpp.

References UpdateActiveDownload().

void CDownloads_Tasks::OnRButtonDown ( UINT  nFlags,
CPoint  point 
) [protected]

Definition at line 368 of file Downloads_Tasks.cpp.

References m_rbPt.

void CDownloads_Tasks::OnLButtonDblClk ( UINT  nFlags,
CPoint  point 
) [protected]

Definition at line 375 of file Downloads_Tasks.cpp.

References CallSelectedDownload().

void CDownloads_Tasks::OnDldcreate (  )  [protected]

Definition at line 381 of file Downloads_Tasks.cpp.

References m_pDownloadsWnd, and CDownloadsWnd::OnDownloadCreate().

Referenced by CDownloadsWnd::OnInsert().

void CDownloads_Tasks::OnDlddelete (  )  [protected]

Definition at line 387 of file Downloads_Tasks.cpp.

References DeleteSelected().

Referenced by CDownloadsWnd::OnDlddelete().

void CDownloads_Tasks::OnDldproperties (  )  [protected]

void CDownloads_Tasks::OnDldstart (  )  [protected]

void CDownloads_Tasks::OnDldstop (  )  [protected]

void CDownloads_Tasks::OnDldlaunch (  )  [protected]

void CDownloads_Tasks::OnDldopenfolder (  )  [protected]

Definition at line 477 of file Downloads_Tasks.cpp.

References m_vDownloads, and pos().

Referenced by CDownloadsWnd::OnDldopenfolder().

void CDownloads_Tasks::OnDldschedule (  )  [protected]

Definition at line 677 of file Downloads_Tasks.cpp.

References ScheduleSelectedDlds(), and TRUE.

Referenced by CDownloadsWnd::OnDldschedule().

void CDownloads_Tasks::OnDldautostart (  )  [protected]

void CDownloads_Tasks::OnDrawItem ( int  nIDCtl,
LPDRAWITEMSTRUCT  lpDrawItemStruct 
) [protected]

Definition at line 852 of file Downloads_Tasks.cpp.

References m_odmenu, and fsODMenu::OnDrawItem().

void CDownloads_Tasks::OnMeasureItem ( int  nIDCtl,
LPMEASUREITEMSTRUCT  lpMeasureItemStruct 
) [protected]

Definition at line 857 of file Downloads_Tasks.cpp.

References m_odmenu, and fsODMenu::OnMeasureItem().

void CDownloads_Tasks::OnDldaddsection (  )  [protected]

Definition at line 974 of file Downloads_Tasks.cpp.

References m_vDownloads, and pos().

Referenced by CDownloadsWnd::OnDldaddsection(), and OnKeyDown().

void CDownloads_Tasks::OnDlddelsection (  )  [protected]

Definition at line 985 of file Downloads_Tasks.cpp.

References m_vDownloads, and pos().

Referenced by CDownloadsWnd::OnDlddelsection(), and OnKeyDown().

void CDownloads_Tasks::OnDldrestart (  )  [protected]

void CDownloads_Tasks::OnKeyDown ( UINT  nChar,
UINT  nRepCnt,
UINT  nFlags 
) [protected]

void CDownloads_Tasks::OnChar ( UINT  nChar,
UINT  nRepCnt,
UINT  nFlags 
) [protected]

Definition at line 1124 of file Downloads_Tasks.cpp.

void CDownloads_Tasks::OnDldqsize (  )  [protected]

Definition at line 1149 of file Downloads_Tasks.cpp.

References FALSE, m_vDownloads, NULL, and pos().

Referenced by CDownloadsWnd::OnDldqsize(), and OnKeyDown().

void CDownloads_Tasks::OnDldcreatebatch (  )  [protected]

int CDownloads_Tasks::OnCreate ( LPCREATESTRUCT  lpCreateStruct  )  [protected]

Definition at line 1267 of file Downloads_Tasks.cpp.

References m_drop.

void CDownloads_Tasks::OnDldcheckvir (  )  [protected]

void CDownloads_Tasks::OnDldfind (  )  [protected]

Definition at line 1339 of file Downloads_Tasks.cpp.

References ID_FIND.

Referenced by CDownloadsWnd::OnDldfind().

void CDownloads_Tasks::OnDldfindnext (  )  [protected]

Definition at line 1344 of file Downloads_Tasks.cpp.

References ID_FINDNEXT.

Referenced by CDownloadsWnd::OnDldfindnext().

void CDownloads_Tasks::OnDldunpack (  )  [protected]

void CDownloads_Tasks::OnDldmovedown (  )  [protected]

void CDownloads_Tasks::OnDldmoveup (  )  [protected]

void CDownloads_Tasks::OnDldcheckintegrity (  )  [protected]

void CDownloads_Tasks::OnDldmovetofolder (  )  [protected]

void CDownloads_Tasks::OnDldmovebottom (  )  [protected]

void CDownloads_Tasks::OnDldmovetop (  )  [protected]

void CDownloads_Tasks::OnDldschedulestop (  )  [protected]

Definition at line 1920 of file Downloads_Tasks.cpp.

References FALSE, and ScheduleSelectedDlds().

Referenced by CDownloadsWnd::OnDldschedulestop().

void CDownloads_Tasks::OnDldgrantbandwidthfordld (  )  [protected]

void CDownloads_Tasks::OnDldshowprogressdlg (  )  [protected]

Definition at line 2065 of file Downloads_Tasks.cpp.

References m_vDownloads, NULL, and pos().

Referenced by CDownloadsWnd::OnDldshowprogressdlg().

void CDownloads_Tasks::OnDldconvert (  )  [protected]

void CDownloads_Tasks::OnTimer ( UINT  nIDEvent  )  [protected]

Definition at line 2098 of file Downloads_Tasks.cpp.

References _DldsMgr, and fsDownloadsMgr::ProcessDownloads().

void CDownloads_Tasks::OnDldenableseeding (  )  [protected]


Friends And Related Function Documentation

friend class CDownloadsWnd [friend]

Definition at line 35 of file Downloads_Tasks.h.

friend class CDownloaderProperties_ListPage [friend]

Definition at line 36 of file Downloads_Tasks.h.


Member Data Documentation

Definition at line 97 of file Downloads_Tasks.h.

Referenced by OnDldenableseeding(), and UpdateMenu().

Definition at line 113 of file Downloads_Tasks.h.

Referenced by AddDownloadToList(), DeleteDownload(), LockList(), and UnlockList().

Definition at line 115 of file Downloads_Tasks.h.

Referenced by OnCreate().

CImageList CDownloads_Tasks::m_selimages [protected]

Definition at line 120 of file Downloads_Tasks.h.

Referenced by Create().

Definition at line 123 of file Downloads_Tasks.h.

Referenced by OnDrawItem(), OnMeasureItem(), and OnRClick().

CPoint CDownloads_Tasks::m_rbPt [protected]

Definition at line 126 of file Downloads_Tasks.h.

Referenced by CalcCoordsForCurSel(), OnRButtonDown(), and OnRClick().

CImageList CDownloads_Tasks::m_images [protected]

Definition at line 144 of file Downloads_Tasks.h.

Referenced by Create().

Definition at line 187 of file Downloads_Tasks.h.

Referenced by OnDldautostart(), and UpdateMenu().


The documentation for this class was generated from the following files:

Generated on Sun May 25 00:20:44 2008 by  doxygen 1.5.6