#include <DownloadWithFile.h>
Inheritance diagram for CDownloadWithFile:

Public Member Functions | |
| CDownloadWithFile () | |
| virtual | ~CDownloadWithFile () |
| float | GetProgress () const |
| QWORD | GetVolumeComplete () const |
| QWORD | GetVolumeRemaining () const |
| DWORD | GetTimeRemaining () const |
| CString | GetDisplayName () const |
| const FF::SimpleFragmentList & | GetEmptyFragmentList () const |
| FF::SimpleFragmentList | GetPossibleFragments (const FF::SimpleFragmentList &oAvailable, FF::SimpleFragment &oLargest) |
| BOOL | GetFragment (CDownloadTransfer *pTransfer) |
| BOOL | IsPositionEmpty (QWORD nOffset) |
| BOOL | AreRangesUseful (const FF::SimpleFragmentList &oAvailable) |
| BOOL | IsRangeUseful (QWORD nOffset, QWORD nLength) |
| BOOL | IsRangeUsefulEnough (CDownloadTransfer *pTransfer, QWORD nOffset, QWORD nLength) |
| virtual CString | GetAvailableRanges () const |
| BOOL | ClipUploadRange (QWORD nOffset, QWORD &nLength) const |
| BOOL | GetRandomRange (QWORD &nOffset, QWORD &nLength) const |
| BOOL | PrepareFile () |
| BOOL | SubmitData (QWORD nOffset, LPBYTE pData, QWORD nLength) |
| QWORD | EraseRange (QWORD nOffset, QWORD nLength) |
| BOOL | MakeComplete () |
Public Attributes | |
| CFragmentedFile * | m_pFile |
| DWORD | m_tReceived |
| BOOL | m_bDiskFull |
Protected Member Functions | |
| BOOL | OpenFile () |
| void | CloseFile () |
| void | DeleteFile (BOOL bForce=FALSE) |
| BOOL | RunFile (DWORD tNow) |
| BOOL | WriteMetadata (LPCTSTR pszPath) |
| BOOL | AppendMetadata () |
| BOOL | AppendMetadataID3v1 (HANDLE hFile, CXMLElement *pXML) |
| virtual void | Serialize (CArchive &ar, int nVersion) |
Friends | |
| class | CDownloadTransfer |
|
|
Definition at line 49 of file DownloadWithFile.cpp. References m_bDiskFull, m_pFile, and m_tReceived. |
|
|
Definition at line 56 of file DownloadWithFile.cpp. |
|
|
Definition at line 579 of file DownloadWithFile.cpp. References _tcsistr(), AppendMetadataID3v1(), CXMLElement::GetAttributeValue(), CXMLElement::GetFirstElement(), CSettings::Library, CDownloadWithSources::m_pXML, CDownloadBase::m_sLocalName, NULL, CXMLAttribute::schemaName, Settings, CSchema::uriAudio, and CSettings::sLibrary::VirtualFiles. Referenced by CDownload::OnDownloaded(). |
|
||||||||||||
|
Definition at line 607 of file DownloadWithFile.cpp. References CXMLElement::GetAttributeValue(), ID3_GENRES, ID3V1_TAG, ID3V2_TAG, NULL, and CLibraryBuilderInternals::pszID3Genre. Referenced by AppendMetadata(). |
|
|
Definition at line 381 of file DownloadWithFile.cpp. References CFragmentedFile::GetEmptyFragmentList(), CFragmentedFile::IsValid(), m_pFile, NULL, and detail::overlaps(). Referenced by CDownloadSource::HasUsefulRanges(). |
|
||||||||||||
|
Definition at line 444 of file DownloadWithFile.cpp. References CFragmentedFile::GetEmptyFragmentList(), CFragmentedFile::IsPositionRemaining(), CFragmentedFile::IsValid(), CDownloadBase::m_nSize, m_pFile, and NULL. Referenced by CUploadTransferHTTP::RequestPartialFile(). |
|
|
Definition at line 122 of file DownloadWithFile.cpp. References CFragmentedFile::Close(), m_pFile, and NULL. Referenced by CDownload::Remove(), and CDownload::StopTrying(). |
|
|
Definition at line 138 of file DownloadWithFile.cpp. References GetVolumeComplete(), CFragmentedFile::IsValid(), m_pFile, CDownloadBase::m_sLocalName, NULL, CUploads::OnRename(), CDownloadBase::SetModified(), theApp, and Uploads. Referenced by CDownloadWithExtras::DeletePreviews(), CDownload::OnMoved(), CDownload::Remove(), CDownload::Save(), CDownloadWithTorrent::SeedTorrent(), and CDownload::~CDownload(). |
|
||||||||||||
|
Definition at line 507 of file DownloadWithFile.cpp. References CFragmentedFile::InvalidateRange(), m_pFile, NULL, and CDownloadBase::SetModified(). Referenced by CDownloadEditDlg::OnErase(). |
|
|
Reimplemented in CDownloadWithTiger. Definition at line 414 of file DownloadWithFile.cpp. References detail::List< FragmentT, ContainerT >::begin(), detail::List< FragmentT, ContainerT >::end(), CFragmentedFile::GetEmptyFragmentList(), detail::inverse(), CFragmentedFile::IsValid(), m_pFile, and NULL. Referenced by CDownloadWithTiger::GetAvailableRanges(). |
|
|
|
Definition at line 237 of file DownloadWithFile.cpp. References CFragmentedFile::GetEmptyFragmentList(), and m_pFile. Referenced by CFragmentBar::DrawDownload(), CDownloadTransferED2K::SendFragmentRequests(), CDownloadTransferBT::SendRequests(), CFilePreviewDlg::SetDownload(), and CDownloadTransferBT::ShowInterest(). |
|
|
||||||||||||
|
|
Definition at line 178 of file DownloadWithFile.cpp. References GetVolumeComplete(), CDownloadBase::m_nSize, and SIZE_UNKNOWN. Referenced by CDownloadsCtrl::BubbleSortDownloads(), CDownloadsCtrl::GetDownloadStatus(), CDownloadsWnd::OnDownloadsHelp(), CDownloadTipCtrl::OnPaint(), CDownloadMonitorDlg::OnTimer(), and CDownloadTransferBT::SendRequests(). |
|
||||||||||||
|
Definition at line 470 of file DownloadWithFile.cpp. References CFragmentedFile::GetEmptyFragmentList(), detail::inverse(), CFragmentedFile::IsValid(), m_pFile, NULL, and detail::randomFragment(). Referenced by CUploadTransferHTTP::RequestPartialFile(). |
|
|
Definition at line 212 of file DownloadWithFile.cpp. References CDownloadWithTransfers::GetAverageSpeed(), and GetVolumeRemaining(). Referenced by CDownloadsCtrl::GetDownloadStatus(), CDownloadTipCtrl::OnPaint(), and CDownloadMonitorDlg::OnTimer(). |
|
|
|
Definition at line 199 of file DownloadWithFile.cpp. References CFragmentedFile::GetRemaining(), CFragmentedFile::IsValid(), CDownloadBase::m_nSize, m_pFile, NULL, and SIZE_UNKNOWN. Referenced by GetTimeRemaining(), and CDownloadTransferED2K::SendFragmentRequests(). |
|
|
Definition at line 372 of file DownloadWithFile.cpp. References CFragmentedFile::IsPositionRemaining(), CFragmentedFile::IsValid(), m_pFile, and NULL. Referenced by CDownloadTransferHTTP::OnHeaderLine(), and CDownloadTransferHTTP::OnHeadersComplete(). |
|
||||||||||||
|
Definition at line 387 of file DownloadWithFile.cpp. References CFragmentedFile::GetEmptyFragmentList(), CFragmentedFile::IsValid(), m_pFile, NULL, and detail::overlaps(). Referenced by CDownloadSource::HasUsefulRanges(), and CEDClient::WritePartStatus(). |
|
||||||||||||||||
|
Definition at line 396 of file DownloadWithFile.cpp. References CDownloadTransfer::GetAverageSpeed(), CFragmentedFile::GetEmptyFragmentList(), CFragmentedFile::IsValid(), CDownloadTransfer::m_bRecvBackwards, m_pFile, NULL, and detail::overlaps(). Referenced by CDownloadTransferHTTP::ReadContent(). |
|
|
Definition at line 518 of file DownloadWithFile.cpp. References m_pFile, CDownloadBase::m_sLocalName, CFragmentedFile::MakeComplete(), and PrepareFile(). Referenced by CDownloadEditDlg::OnLButtonUp(). |
|
|
|
Definition at line 130 of file DownloadWithFile.cpp. References CFragmentedFile::GetRemaining(), m_pFile, and OpenFile(). Referenced by GetFragment(), GetPossibleFragments(), MakeComplete(), CDownloadTransferBT::OnConnected(), CDownloadWithTorrent::RunTorrent(), and CDownloadTransferED2K::SendSecondaryRequest(). |
|
|
Definition at line 528 of file DownloadWithFile.cpp. References CFragmentedFile::GetRemaining(), CFragmentedFile::IsOpen(), and m_pFile. Referenced by CDownload::OnRun(). |
|
||||||||||||
|
Reimplemented from CDownloadWithSources. Reimplemented in CDownload, CDownloadWithExtras, CDownloadWithTiger, and CDownloadWithTorrent. Definition at line 656 of file DownloadWithFile.cpp. References CDownloadBase::GenerateLocalName(), m_pFile, CDownloadBase::m_sLocalName, NULL, CFragmentedFile::Serialize(), and CDownloadWithSources::Serialize(). Referenced by CDownloadWithTorrent::Serialize(). |
|
||||||||||||||||
|
|
Definition at line 541 of file DownloadWithFile.cpp. References CDownloadWithSources::m_pXML, CDownloadBase::m_sLocalName, NULL, and CXMLElement::ToString(). Referenced by CDownload::OnMoved(). |
|
|
Reimplemented from CDownloadWithTransfers. Reimplemented in CDownload. Definition at line 78 of file DownloadWithFile.h. |
|
|
Definition at line 43 of file DownloadWithFile.h. Referenced by CDownloadWithFile(), CDownloadsCtrl::GetDownloadStatus(), CDownloadsWnd::OnDownloadsHelp(), CDownload::OnMoved(), CDownload::OnRun(), OpenFile(), CDownload::Resume(), and CDownloadWithTorrent::RunTorrent(). |
|
|
|
Definition at line 42 of file DownloadWithFile.h. Referenced by CDownloadWithFile(), CDownload::OnRun(), CDownload::Resume(), CDownloadWithSearch::RunSearch(), SubmitData(), and CQuerySearch::WriteHashesToEDPacket(). |
1.4.2