#include <DownloadTask.h>
Public Types | |
enum | { dtaskAllocate, dtaskCopySimple, dtaskCopyTorrent } |
Public Member Functions | |
CDownloadTask (CDownload *pDownload, int nTask) | |
virtual | ~CDownloadTask () |
void | Abort () |
BOOL | WasAborted () |
virtual BOOL | InitInstance () |
virtual int | Run () |
Static Public Member Functions | |
static CString | SafeFilename (LPCTSTR pszName) |
Public Attributes | |
int | m_nTask |
CDownload * | m_pDownload |
BOOL | m_bSuccess |
QWORD | m_nSize |
CString | m_sName |
CString | m_sFilename |
CString | m_sPath |
CBTInfo | m_pTorrent |
Protected Member Functions | |
void | RunAllocate () |
void | RunCopySimple () |
void | RunCopyTorrent () |
BOOL | CopyFile (HANDLE hSource, LPCTSTR pszTarget, QWORD nLength) |
void | CreatePathForFile (const CString &strBase, const CString &strPath) |
Protected Attributes | |
CEvent * | m_pEvent |
Private Attributes | |
int | m_nTorrentFile |
|
Definition at line 59 of file DownloadTask.h. |
|
Definition at line 60 of file DownloadTask.cpp. References CLibraryFolders::AddFolder(), CSettings::sDownloads::CollectionPath, DownloadGroups, CSettings::Downloads, CDownloadGroups::GetCompletedPath(), LibraryFolders, NULL, Settings, and CSettings::sDownloads::TorrentPath. |
|
Definition at line 109 of file DownloadTask.cpp. References CDownloads::Check(), Downloads, m_pDownload, m_pEvent, CTransfers::m_pSection, CDownloadBase::m_pTask, NULL, CDownload::OnTaskComplete(), and Transfers. |
|
Definition at line 127 of file DownloadTask.cpp. References m_pEvent, CTransfers::m_pSection, and Transfers. Referenced by CDownload::Remove(), and CDownload::~CDownload(). |
|
Definition at line 417 of file DownloadTask.cpp. References BUFFER_SIZE, m_pEvent, and NULL. Referenced by RunCopySimple(), and RunCopyTorrent(). |
|
Definition at line 502 of file DownloadTask.cpp. References NULL. Referenced by RunCopyTorrent(). |
|
Definition at line 144 of file DownloadTask.cpp. |
|
Definition at line 149 of file DownloadTask.cpp. References CSettings::sDownloads::CompletePath, CSettings::Downloads, dtaskAllocate, dtaskCopySimple, dtaskCopyTorrent, m_bSuccess, m_nTask, m_pEvent, m_sPath, NULL, RunAllocate(), RunCopySimple(), RunCopyTorrent(), and Settings. |
|
Definition at line 186 of file DownloadTask.cpp. References FSCTL_SET_SPARSE, m_bSuccess, m_nSize, m_sFilename, and NULL. Referenced by Run(). |
|
Definition at line 221 of file DownloadTask.cpp. References CopyFile(), m_bSuccess, m_nSize, m_sFilename, m_sName, m_sPath, CShareazaApp::Message(), MSG_DEBUG, NULL, CUploads::OnRename(), SafeFilename(), theApp, and Uploads. Referenced by Run(). |
|
Definition at line 355 of file DownloadTask.cpp. References CopyFile(), CreatePathForFile(), CDownloads::dlPathComplete, Downloads, CBTInfo::IsAvailable(), CDownloads::IsSpaceAvailable(), m_bSuccess, CBTInfo::m_nFiles, CBTInfo::CBTFile::m_nSize, m_nTorrentFile, CBTInfo::m_nTotalSize, m_pEvent, CBTInfo::m_pFiles, m_pTorrent, m_sFilename, CBTInfo::CBTFile::m_sPath, m_sPath, CShareazaApp::Message(), MSG_DEBUG, NULL, and theApp. Referenced by Run(). |
|
Definition at line 456 of file DownloadTask.cpp. References CSettings::Downloads, CSettings::sDownloads::IncompletePath, IsCharacter(), CShareazaApp::m_bNT, NULL, Settings, and theApp. Referenced by CDownloadBase::GenerateLocalName(), CBTInfo::LoadTorrentTree(), RunCopySimple(), and CBTInfo::SaveTorrentFile(). |
|
Definition at line 136 of file DownloadTask.cpp. References m_pEvent, and NULL. Referenced by CDownload::OnTaskComplete(). |
|
Definition at line 45 of file DownloadTask.h. Referenced by CDownload::OnMoved(), Run(), RunAllocate(), RunCopySimple(), and RunCopyTorrent(). |
|
Definition at line 49 of file DownloadTask.h. Referenced by RunAllocate(), and RunCopySimple(). |
|
Definition at line 43 of file DownloadTask.h. Referenced by CDownload::OnTaskComplete(), and Run(). |
|
Definition at line 47 of file DownloadTask.h. Referenced by RunCopyTorrent(). |
|
Definition at line 44 of file DownloadTask.h. Referenced by ~CDownloadTask(). |
|
Definition at line 55 of file DownloadTask.h. Referenced by Abort(), CopyFile(), Run(), RunCopyTorrent(), WasAborted(), and ~CDownloadTask(). |
|
Definition at line 53 of file DownloadTask.h. Referenced by RunCopyTorrent(). |
|
Definition at line 51 of file DownloadTask.h. Referenced by CDownload::OnMoved(), RunAllocate(), RunCopySimple(), and RunCopyTorrent(). |
|
Definition at line 50 of file DownloadTask.h. Referenced by RunCopySimple(). |
|
Definition at line 52 of file DownloadTask.h. Referenced by CDownload::OnMoved(), Run(), RunCopySimple(), and RunCopyTorrent(). |