CDownloadWithFile Class Reference

#include <DownloadWithFile.h>

Inheritance diagram for CDownloadWithFile:

Inheritance graph
[legend]
Collaboration diagram for CDownloadWithFile:

Collaboration graph
[legend]
List of all members.

Public Member Functions

float GetProgress () const
QWORD GetVolumeComplete () const
QWORD GetVolumeRemaining () const
DWORD GetTimeRemaining () const
CString GetDisplayName () const
const Fragments::ListGetEmptyFragmentList () const
BOOL GetFragment (CDownloadTransfer *pTransfer)
BOOL IsPositionEmpty (QWORD nOffset)
BOOL AreRangesUseful (const Fragments::List &oAvailable)
BOOL IsRangeUseful (QWORD nOffset, QWORD nLength)
BOOL IsRangeUsefulEnough (CDownloadTransfer *pTransfer, QWORD nOffset, QWORD nLength)
BOOL ClipUploadRange (QWORD nOffset, QWORD &nLength) const
BOOL PrepareFile ()
BOOL GetRandomRange (QWORD &nOffset, QWORD &nLength) const
BOOL SubmitData (QWORD nOffset, LPBYTE pData, QWORD nLength)
QWORD EraseRange (QWORD nOffset, QWORD nLength)
BOOL MakeComplete ()

Public Attributes

CFragmentedFilem_pFile
BOOL m_bDiskFull
DWORD m_tReceived

Protected Member Functions

 CDownloadWithFile ()
virtual ~CDownloadWithFile ()
virtual CString GetAvailableRanges () const
BOOL OpenFile ()
void CloseFile ()
void DeleteFile (BOOL bForce=FALSE)
BOOL RunFile (DWORD tNow)
BOOL WriteMetadata (LPCTSTR pszPath)
BOOL AppendMetadata ()
virtual void Serialize (CArchive &ar, int nVersion)

Private Member Functions

Fragments::List GetPossibleFragments (const Fragments::List &oAvailable, Fragments::Fragment &oLargest)
BOOL AppendMetadataID3v1 (HANDLE hFile, CXMLElement *pXML)

Constructor & Destructor Documentation

CDownloadWithFile::CDownloadWithFile (  )  [protected]

CDownloadWithFile::~CDownloadWithFile (  )  [protected, virtual]


Member Function Documentation

float CDownloadWithFile::GetProgress (  )  const

QWORD CDownloadWithFile::GetVolumeComplete (  )  const

QWORD CDownloadWithFile::GetVolumeRemaining (  )  const

DWORD CDownloadWithFile::GetTimeRemaining (  )  const

CString CDownloadWithFile::GetDisplayName (  )  const

const Fragments::List & CDownloadWithFile::GetEmptyFragmentList (  )  const

BOOL CDownloadWithFile::GetFragment ( CDownloadTransfer pTransfer  ) 

BOOL CDownloadWithFile::IsPositionEmpty ( QWORD  nOffset  ) 

BOOL CDownloadWithFile::AreRangesUseful ( const Fragments::List oAvailable  ) 

BOOL CDownloadWithFile::IsRangeUseful ( QWORD  nOffset,
QWORD  nLength 
)

BOOL CDownloadWithFile::IsRangeUsefulEnough ( CDownloadTransfer pTransfer,
QWORD  nOffset,
QWORD  nLength 
)

BOOL CDownloadWithFile::ClipUploadRange ( QWORD  nOffset,
QWORD nLength 
) const

BOOL CDownloadWithFile::PrepareFile (  ) 

BOOL CDownloadWithFile::GetRandomRange ( QWORD nOffset,
QWORD nLength 
) const

BOOL CDownloadWithFile::SubmitData ( QWORD  nOffset,
LPBYTE  pData,
QWORD  nLength 
)

QWORD CDownloadWithFile::EraseRange ( QWORD  nOffset,
QWORD  nLength 
)

BOOL CDownloadWithFile::MakeComplete (  ) 

CString CDownloadWithFile::GetAvailableRanges (  )  const [protected, virtual]

Reimplemented in CDownloadWithTiger.

BOOL CDownloadWithFile::OpenFile (  )  [protected]

void CDownloadWithFile::CloseFile (  )  [protected]

void CDownloadWithFile::DeleteFile ( BOOL  bForce = FALSE  )  [protected]

BOOL CDownloadWithFile::RunFile ( DWORD  tNow  )  [protected]

BOOL CDownloadWithFile::WriteMetadata ( LPCTSTR  pszPath  )  [protected]

BOOL CDownloadWithFile::AppendMetadata (  )  [protected]

void CDownloadWithFile::Serialize ( CArchive &  ar,
int  nVersion 
) [protected, virtual]

Reimplemented from CDownloadWithSources.

Reimplemented in CDownload, CDownloadWithExtras, CDownloadWithTiger, and CDownloadWithTorrent.

Fragments::List CDownloadWithFile::GetPossibleFragments ( const Fragments::List oAvailable,
Fragments::Fragment oLargest 
) [private]

BOOL CDownloadWithFile::AppendMetadataID3v1 ( HANDLE  hFile,
CXMLElement pXML 
) [private]


Member Data Documentation

CFragmentedFile* CDownloadWithFile::m_pFile

BOOL CDownloadWithFile::m_bDiskFull

DWORD CDownloadWithFile::m_tReceived


The documentation for this class was generated from the following files:
Generated on Wed Aug 8 03:46:19 2007 for Shareaza by  doxygen 1.5.2