Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CDownloadWithExtras Class Reference

#include <DownloadWithExtras.h>

Inheritance diagram for CDownloadWithExtras:

CDownloadWithSearch CDownloadWithTiger CDownloadWithTorrent CDownloadWithFile CDownloadWithTransfers CDownloadWithSources CDownloadBase CDownload List of all members.

Public Member Functions

 CDownloadWithExtras ()
virtual ~CDownloadWithExtras ()
BOOL Preview (CSingleLock *pLock=NULL)
BOOL IsPreviewVisible () const
BOOL CanPreview ()
void AddPreviewName (LPCTSTR pszFile)
void DeletePreviews ()
BOOL AddReview (IN_ADDR *pIP, int nUserPicture, int nRating, LPCTSTR pszUserName, LPCTSTR pszComment)
BOOL AddReview (CDownloadReview *pReview)
void DeleteReviews ()
void DeleteReview (CDownloadReview *pReview)
int GetReviewCount () const
CDownloadReviewGetFirstReview () const
CDownloadReviewFindReview (IN_ADDR *pIP) const
CDownloadReviewFindReview (LPCTSTR pszUserName) const
CDownloadReviewFindReview (int nRating, LPCTSTR pszName, LPCTSTR pszComment) const
int GetReviewAverage () const
void ShowMonitor (CSingleLock *pLock=NULL)
BOOL IsMonitorVisible () const
virtual void Serialize (CArchive &ar, int nVersion)

Protected Attributes

CStringList m_pPreviews
CDownloadMonitorDlgm_pMonitorWnd
CFilePreviewDlgm_pPreviewWnd
CDownloadReviewm_pReviewFirst
CDownloadReviewm_pReviewLast
int m_nReviewCount

Friends

class CDownloadMonitorDlg
class CFilePreviewDlg

Constructor & Destructor Documentation

CDownloadWithExtras::CDownloadWithExtras  ) 
 

Definition at line 41 of file DownloadWithExtras.cpp.

References m_nReviewCount, m_pMonitorWnd, m_pPreviewWnd, m_pReviewFirst, m_pReviewLast, and NULL.

CDownloadWithExtras::~CDownloadWithExtras  )  [virtual]
 

Definition at line 50 of file DownloadWithExtras.cpp.

References DeletePreviews(), and DeleteReviews().


Member Function Documentation

void CDownloadWithExtras::AddPreviewName LPCTSTR  pszFile  ) 
 

Definition at line 106 of file DownloadWithExtras.cpp.

References m_pPreviews, CDownloadBase::SetModified(), and theApp.

BOOL CDownloadWithExtras::AddReview CDownloadReview pReview  ) 
 

Definition at line 177 of file DownloadWithExtras.cpp.

References CSettings::Downloads, m_nReviewCount, CDownloadReview::m_pNext, m_pReviewFirst, m_pReviewLast, CSettings::sDownloads::MaxReviews, CShareazaApp::Message(), MSG_DEBUG, NULL, Settings, and theApp.

BOOL CDownloadWithExtras::AddReview IN_ADDR *  pIP,
int  nUserPicture,
int  nRating,
LPCTSTR  pszUserName,
LPCTSTR  pszComment
 

Definition at line 133 of file DownloadWithExtras.cpp.

References CSettings::Downloads, FindReview(), m_nReviewCount, CDownloadReview::m_pNext, CDownloadReview::m_pPrev, m_pReviewFirst, m_pReviewLast, CSettings::sDownloads::MaxReviews, CShareazaApp::Message(), MSG_DEBUG, NULL, Settings, and theApp.

Referenced by CDownloads::Add(), CDownloadTransferED2K::OnFileComment(), CBaseMatchWnd::OnSearchDownload(), and Serialize().

BOOL CDownloadWithExtras::CanPreview  ) 
 

Definition at line 84 of file DownloadWithExtras.cpp.

References CPlugins::LookupCLSID(), m_pPreviewWnd, CDownloadBase::m_sLocalName, CDownloadBase::m_sRemoteName, NULL, and Plugins.

Referenced by CDownloadsWnd::OnDownloadsLaunch(), CDownloadsWnd::OnDownloadsLaunchCopy(), and Preview().

void CDownloadWithExtras::DeletePreviews  ) 
 

Definition at line 113 of file DownloadWithExtras.cpp.

References CDownloadWithFile::DeleteFile(), m_pPreviews, NULL, CDownloadBase::SetModified(), and theApp.

Referenced by Preview(), CDownload::Remove(), and ~CDownloadWithExtras().

void CDownloadWithExtras::DeleteReview CDownloadReview pReview  ) 
 

Definition at line 207 of file DownloadWithExtras.cpp.

References m_nReviewCount, CDownloadReview::m_pNext, CDownloadReview::m_pPrev, m_pReviewFirst, m_pReviewLast, and NULL.

void CDownloadWithExtras::DeleteReviews  ) 
 

Definition at line 251 of file DownloadWithExtras.cpp.

References m_nReviewCount, CDownloadReview::m_pNext, m_pReviewFirst, m_pReviewLast, and NULL.

Referenced by ~CDownloadWithExtras().

CDownloadReview * CDownloadWithExtras::FindReview int  nRating,
LPCTSTR  pszName,
LPCTSTR  pszComment
const
 

Definition at line 300 of file DownloadWithExtras.cpp.

References CDownloadReview::m_nFileRating, CDownloadReview::m_pNext, m_pReviewFirst, CDownloadReview::m_sFileComments, CDownloadReview::m_sUserName, and NULL.

CDownloadReview * CDownloadWithExtras::FindReview LPCTSTR  pszUserName  )  const
 

Definition at line 284 of file DownloadWithExtras.cpp.

References CDownloadReview::m_pNext, m_pReviewFirst, CDownloadReview::m_sUserName, and NULL.

CDownloadReview * CDownloadWithExtras::FindReview IN_ADDR *  pIP  )  const
 

Definition at line 268 of file DownloadWithExtras.cpp.

References m_pReviewFirst, and NULL.

Referenced by AddReview().

CDownloadReview* CDownloadWithExtras::GetFirstReview  )  const [inline]
 

Definition at line 89 of file DownloadWithExtras.h.

References m_pReviewFirst.

Referenced by CDownloadReviewDlg::OnInitDialog().

int CDownloadWithExtras::GetReviewAverage  )  const
 

Definition at line 320 of file DownloadWithExtras.cpp.

References CDownloadReview::m_pNext, m_pReviewFirst, and NULL.

Referenced by CDownloadsCtrl::PaintDownload().

int CDownloadWithExtras::GetReviewCount  )  const [inline]
 

Definition at line 88 of file DownloadWithExtras.h.

References m_nReviewCount.

Referenced by CDownloadsWnd::OnDownloadsViewReviews(), CDownloadsCtrl::PaintDownload(), CDownloadsWnd::Prepare(), and Serialize().

BOOL CDownloadWithExtras::IsMonitorVisible  )  const
 

Definition at line 361 of file DownloadWithExtras.cpp.

References m_pMonitorWnd, and NULL.

BOOL CDownloadWithExtras::IsPreviewVisible  )  const
 

Definition at line 79 of file DownloadWithExtras.cpp.

References m_pPreviewWnd, and NULL.

Referenced by CDownloadsWnd::OnDownloadsClear(), CDownloadsWnd::OnDownloadsClearComplete(), CDownloadsWnd::OnDownloadsClearIncomplete(), CDownloadsWnd::OnTimer(), and CDownloadsWnd::Prepare().

BOOL CDownloadWithExtras::Preview CSingleLock *  pLock = NULL  ) 
 

Definition at line 59 of file DownloadWithExtras.cpp.

References CanPreview(), CFilePreviewDlg, CFilePreviewDlg::Create(), DeletePreviews(), m_pPreviewWnd, and NULL.

Referenced by CDownloadMonitorDlg::OnDownloadLaunch(), and CDownloadsWnd::OnDownloadsLaunch().

void CDownloadWithExtras::Serialize CArchive &  ar,
int  nVersion
[virtual]
 

Reimplemented from CDownloadWithTiger.

Reimplemented in CDownload.

Definition at line 369 of file DownloadWithExtras.cpp.

References AddReview(), GetReviewCount(), m_pPreviews, m_pReviewFirst, CDownloadReview::Serialize(), and CDownloadWithTiger::Serialize().

Referenced by CDownload::Serialize().

void CDownloadWithExtras::ShowMonitor CSingleLock *  pLock = NULL  ) 
 

Definition at line 346 of file DownloadWithExtras.cpp.

References CDownloadMonitorDlg, m_pMonitorWnd, and NULL.

Referenced by CTorrentSeedDlg::OnDownload(), CDownloadsWnd::OnDownloadsMonitor(), and CURLActionDlg::OnUrlDownload().


Friends And Related Function Documentation

friend class CDownloadMonitorDlg [friend]
 

Definition at line 102 of file DownloadWithExtras.h.

Referenced by ShowMonitor().

friend class CFilePreviewDlg [friend]
 

Definition at line 103 of file DownloadWithExtras.h.

Referenced by Preview().


Member Data Documentation

int CDownloadWithExtras::m_nReviewCount [protected]
 

Definition at line 75 of file DownloadWithExtras.h.

Referenced by AddReview(), CDownloadWithExtras(), DeleteReview(), DeleteReviews(), and GetReviewCount().

CDownloadMonitorDlg* CDownloadWithExtras::m_pMonitorWnd [protected]
 

Definition at line 69 of file DownloadWithExtras.h.

Referenced by CDownloadWithExtras(), IsMonitorVisible(), CDownloadMonitorDlg::OnDestroy(), and ShowMonitor().

CStringList CDownloadWithExtras::m_pPreviews [protected]
 

Definition at line 68 of file DownloadWithExtras.h.

Referenced by AddPreviewName(), DeletePreviews(), and Serialize().

CFilePreviewDlg* CDownloadWithExtras::m_pPreviewWnd [protected]
 

Definition at line 70 of file DownloadWithExtras.h.

Referenced by CanPreview(), CDownloadWithExtras(), IsPreviewVisible(), and Preview().

CDownloadReview* CDownloadWithExtras::m_pReviewFirst [protected]
 

Definition at line 73 of file DownloadWithExtras.h.

Referenced by AddReview(), CDownloadWithExtras(), DeleteReview(), DeleteReviews(), FindReview(), GetFirstReview(), GetReviewAverage(), and Serialize().

CDownloadReview* CDownloadWithExtras::m_pReviewLast [protected]
 

Definition at line 74 of file DownloadWithExtras.h.

Referenced by AddReview(), CDownloadWithExtras(), DeleteReview(), and DeleteReviews().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:06 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2