#include <Download.h>
Inheritance diagram for CDownload:
Public Member Functions | |
CDownload () | |
virtual | ~CDownload () |
virtual void | Pause () |
virtual void | Resume () |
virtual void | Remove (BOOL bDelete=FALSE) |
virtual void | Boost () |
virtual void | Share (BOOL bShared) |
virtual BOOL | Rename (LPCTSTR pszName) |
virtual void | StopTrying () |
virtual void | SetStartTimer () |
virtual DWORD | GetStartTimer () const |
virtual BOOL | IsStarted () const |
virtual BOOL | IsPaused () const |
virtual BOOL | IsDownloading () const |
virtual BOOL | IsMoving () const |
virtual BOOL | IsCompleted () const |
virtual BOOL | IsBoosted () const |
virtual BOOL | IsShared () const |
virtual BOOL | IsTrying () const |
BOOL | Load (LPCTSTR pszPath) |
BOOL | Save (BOOL bFlush=FALSE) |
virtual void | Serialize (CArchive &ar, int nVersion) |
void | OnRun () |
void | OnTaskComplete (CDownloadTask *pTask) |
BOOL | OnVerify (LPCTSTR pszPath, BOOL bVerified) |
Public Attributes | |
DWORD | m_nSerID |
BOOL | m_bExpanded |
BOOL | m_bSelected |
TRISTATE | m_bVerify |
DWORD | m_tCompleted |
int | m_nRunCookie |
int | m_nSaveCookie |
int | m_nGroupCookie |
Protected Member Functions | |
void | OnDownloaded () |
void | OnMoved (CDownloadTask *pTask) |
void | SerializeOld (CArchive &ar, int nVersion) |
Protected Attributes | |
BOOL | m_bPaused |
BOOL | m_bBoosted |
BOOL | m_bShared |
BOOL | m_bComplete |
DWORD | m_tSaved |
DWORD | m_tBegan |
BOOL | m_bDownloading |
Friends | |
class | CDownloadTask |
class | CDownloadTransfer |
class | CDownloadWithTorrent |
|
Definition at line 50 of file Download.cpp. References CSettings::sDownloads::AutoExpand, DownloadGroups, CSettings::Downloads, Downloads, CDownloads::GetFreeSID(), CDownloadGroups::Link(), m_bBoosted, m_bComplete, m_bDownloading, m_bExpanded, m_bPaused, m_bSelected, m_bShared, m_bVerify, m_nGroupCookie, m_nRunCookie, m_nSaveCookie, m_nSerID, m_tBegan, m_tCompleted, m_tSaved, Settings, CSettings::sUploads::SharePartials, TS_UNKNOWN, and CSettings::Uploads. |
|
|
Implements CDownloadBase. Definition at line 178 of file Download.cpp. References CDownloadWithFile::GetDisplayName(), CDownloadWithTransfers::GetFirstTransfer(), IDS_DOWNLOAD_BOOST, m_bBoosted, CDownloadWithFile::m_pFile, CShareazaApp::Message(), MSG_SYSTEM, NULL, CDownloadBase::SetModified(), and theApp. Referenced by CDownloadsWnd::OnDownloadsBoost(). |
|
Definition at line 241 of file Download.cpp. References m_tBegan. Referenced by OnRun(). |
|
Definition at line 274 of file Download.cpp. References m_bBoosted. Referenced by CDownloadTransferHTTP::AcceptPush(), CDownloadTransferHTTP::Initiate(), CDownloadTransferFTP::Initiate(), CDownloadsWnd::OnDownloadsBoost(), and CDownloadsWnd::Prepare(). |
|
|
Definition at line 259 of file Download.cpp. References m_bDownloading. Referenced by CDownloads::GetActiveTorrentCount(), CDownloadsCtrl::GetDownloadStatus(), and CDownloadsWnd::OnDownloadsHelp(). |
|
|
|
|
|
Implements CDownloadBase. Definition at line 279 of file Download.cpp. References m_tBegan. Referenced by CDownloadsCtrl::GetDownloadStatus(), CDownloads::GetTryingCount(), CDownloadsWnd::OnDownloadsHelp(), CBTClient::OnHandshake1(), OnRun(), CDownloadsWnd::Prepare(), and CQuerySearch::WriteHashesToEDPacket(). |
|
Definition at line 524 of file Download.cpp. References CDownloadBase::m_nCookie, m_nSaveCookie, CDownloadBase::m_sLocalName, Save(), and Serialize(). Referenced by CDownloads::Load(). |
|
|
|
|
Definition at line 429 of file Download.cpp. References CDownloadTask::dtaskAllocate, CDownloadTask::m_nTask, CDownloadBase::m_pTask, NULL, OnMoved(), and CDownloadTask::WasAborted(). Referenced by CDownloadTask::~CDownloadTask(). |
|
Definition at line 507 of file Download.cpp. References m_bVerify, CDownloadWithFile::m_pFile, CDownloadBase::m_sLocalName, NULL, CDownloadBase::SetModified(), TS_FALSE, TS_TRUE, and TS_UNKNOWN. Referenced by OnMoved(). |
|
Implements CDownloadBase. Definition at line 92 of file Download.cpp. References CDownloadWithFile::GetDisplayName(), IDS_DOWNLOAD_PAUSED, m_bComplete, m_bPaused, CShareazaApp::Message(), MSG_DOWNLOAD, StopTrying(), and theApp. Referenced by CEDPartImporter::ImportFile(), CDownloadsWnd::OnDownloadsPause(), and OnRun(). |
|
|
Definition at line 205 of file Download.cpp. References CDownloadBase::m_sRemoteName, and CDownloadBase::SetModified(). Referenced by CDownloadEditDlg::Commit(). |
|
|
Definition at line 570 of file Download.cpp. References CDownloadWithFile::DeleteFile(), CSettings::Downloads, CSettings::sDownloads::FlushSD, CDownloadBase::GenerateLocalName(), m_bComplete, CDownloadBase::m_nCookie, m_nSaveCookie, CDownloadBase::m_sLocalName, m_tSaved, Serialize(), and Settings. Referenced by CEDPartImporter::ImportFile(), Load(), OnRun(), and CDownloads::Save(). |
|
Reimplemented from CDownloadWithExtras. Definition at line 616 of file Download.cpp. References DOWNLOAD_SER_VERSION, DownloadGroups, CDownloadGroups::Link(), m_bBoosted, m_bComplete, m_bExpanded, m_bPaused, m_bShared, m_nSerID, CDownloadWithExtras::Serialize(), and SerializeOld(). Referenced by Load(), Save(), and CDownloads::SerializeCompound(). |
|
|
Definition at line 232 of file Download.cpp. References m_tBegan, and CDownloadBase::SetModified(). |
|
Definition at line 196 of file Download.cpp. References m_bShared, and CDownloadBase::SetModified(). Referenced by CDownloads::Add(), and CDownloadsWnd::OnDownloadsShare(). |
|
Definition at line 216 of file Download.cpp. References CDownloadWithFile::CloseFile(), CDownloadWithTorrent::CloseTorrent(), CDownloadWithTransfers::CloseTransfers(), CDownloadBase::m_bBTH, m_bComplete, m_bDownloading, m_tBegan, CDownloadBase::SetModified(), and CDownloadWithSearch::StopSearch(). |
|
Definition at line 90 of file Download.h. Referenced by OnDownloaded(). |
|
Reimplemented from CDownloadWithFile. Definition at line 91 of file Download.h. |
|
Definition at line 92 of file Download.h. |
|
Definition at line 49 of file Download.h. Referenced by Boost(), CDownload(), IsBoosted(), Serialize(), and SerializeOld(). |
|
Definition at line 51 of file Download.h. Referenced by CDownload(), IsCompleted(), OnDownloaded(), OnMoved(), OnRun(), Pause(), Resume(), Save(), CDownloadWithTorrent::SeedTorrent(), Serialize(), StopTrying(), and ~CDownload(). |
|
Definition at line 55 of file Download.h. Referenced by CDownload(), IsDownloading(), OnDownloaded(), OnRun(), and StopTrying(). |
|
Definition at line 40 of file Download.h. Referenced by CDownload(), CDownloadsCtrl::GetAt(), CDownloadsCtrl::GetRect(), CDownloadsCtrl::HitTest(), CDownloadsCtrl::OnKeyDown(), CDownloadsCtrl::OnLButtonDblClk(), CDownloadsCtrl::OnLButtonDown(), CDownloadsCtrl::OnPaint(), CDownloadsCtrl::OnSize(), Serialize(), and SerializeOld(). |
|
Definition at line 48 of file Download.h. Referenced by CDownload(), IsPaused(), OnRun(), Pause(), Resume(), Serialize(), and SerializeOld(). |
|
|
Definition at line 50 of file Download.h. Referenced by CDownload(), IsShared(), Serialize(), and Share(). |
|
Definition at line 42 of file Download.h. Referenced by CDownload(), CHomeDownloadsBox::ExecuteDownload(), CDownloadsWnd::OnDownloadsLaunch(), OnVerify(), and CDownloadsCtrl::PaintDownload(). |
|
Definition at line 46 of file Download.h. Referenced by CDownload(), CDownloadsCtrl::GetAt(), CDownloadsCtrl::GetRect(), CDownloadsCtrl::HitTest(), CDownloadsCtrl::OnPaint(), and CDownloadsCtrl::OnSize(). |
|
Definition at line 44 of file Download.h. Referenced by CDownload(), and CDownloads::OnRun(). |
|
Definition at line 45 of file Download.h. Referenced by CDownload(), Load(), OnRun(), CDownloads::Save(), and Save(). |
|
Definition at line 39 of file Download.h. Referenced by CDownload(), CDownloads::FindBySID(), CDownloads::GetFreeSID(), and Serialize(). |
|
Definition at line 53 of file Download.h. Referenced by CDownload(), GetStartTimer(), IsTrying(), Resume(), SetStartTimer(), and StopTrying(). |
|
Definition at line 43 of file Download.h. Referenced by CDownload(), OnDownloaded(), OnMoved(), CDownloadsWnd::OnTimer(), CUploadTransferHTTP::RequestPartialFile(), and CDownloadWithTorrent::SeedTorrent(). |
|
Definition at line 52 of file Download.h. Referenced by CDownload(), OnRun(), and Save(). |