#include <DlgTorrentSeed.h>
Inheritance diagram for CTorrentSeedDlg:
Public Types | |
enum | { IDD = IDD_TORRENT_SEED } |
Public Member Functions | |
CTorrentSeedDlg (LPCTSTR pszTorrent, BOOL bForceSeed=FALSE, CWnd *pParent=NULL) | |
virtual | ~CTorrentSeedDlg () |
Protected Member Functions | |
void | OnRun () |
void | RunSingleFile () |
void | RunMultiFile () |
BOOL | VerifySingle () |
HANDLE | CreateTarget () |
BOOL | BuildFiles (HANDLE hTarget) |
CString | FindFile (LPVOID pVoid) |
BOOL | CopyFile (HANDLE hTarget, HANDLE hSource, QWORD nLength, LPCTSTR pszPath) |
BOOL | VerifyData (BYTE *pBuffer, DWORD nLength, LPCTSTR pszPath) |
BOOL | CreateDownload () |
virtual void | DoDataExchange (CDataExchange *pDX) |
virtual BOOL | OnInitDialog () |
afx_msg void | OnDownload () |
afx_msg void | OnSeed () |
virtual void | OnCancel () |
afx_msg void | OnDestroy () |
afx_msg void | OnTimer (UINT nIDEvent) |
Static Protected Member Functions | |
static UINT | ThreadStart (LPVOID pParam) |
Protected Attributes | |
CProgressCtrl | m_wndProgress |
CButton | m_wndDownload |
CButton | m_wndSeed |
HANDLE | m_hThread |
BOOL | m_bCancel |
CString | m_sTorrent |
BOOL | m_bForceSeed |
CString | m_sTarget |
CBTInfo | m_pInfo |
DWORD | m_nBlockNumber |
DWORD | m_nBlockLength |
CString | m_sMessage |
QWORD | m_nVolume |
QWORD | m_nTotal |
int | m_nScaled |
int | m_nOldScaled |
|
Definition at line 36 of file DlgTorrentSeed.h. |
|
Definition at line 55 of file DlgTorrentSeed.cpp. References NULL. |
|
Definition at line 62 of file DlgTorrentSeed.cpp. |
|
Definition at line 460 of file DlgTorrentSeed.cpp. References CBTInfo::BeginBlockTest(), CopyFile(), FindFile(), IDS_BT_SEED_SOURCE_LOST, IDS_BT_SEED_SOURCE_SIZE, LoadString(), m_bCancel, m_nBlockLength, m_nBlockNumber, CBTInfo::m_nBlockSize, CBTInfo::m_nFiles, m_nOldScaled, m_nScaled, CBTInfo::CBTFile::m_nSize, m_nTotal, m_nVolume, CBTInfo::m_pFiles, m_pInfo, m_sMessage, CBTInfo::CBTFile::m_sPath, NULL, Settings, CSettings::SmartVolume(), and VerifyData(). Referenced by RunMultiFile(). |
|
Definition at line 520 of file DlgTorrentSeed.cpp. References BUFFER_SIZE, IDS_BT_SEED_COPY_FAIL, LoadString(), m_bCancel, m_nOldScaled, m_nScaled, m_nTotal, m_nVolume, m_sMessage, NULL, and VerifyData(). Referenced by BuildFiles(). |
|
Definition at line 618 of file DlgTorrentSeed.cpp. References CDownloads::Add(), CBTInfo::Copy(), Downloads, CDownloads::FindByBTH(), IDS_BT_SEED_ALREADY, IDS_BT_SEED_ERROR, LoadString(), m_pInfo, CBTInfo::m_pInfoSHA1, CTransfers::m_pSection, m_sMessage, CBTInfo::m_sName, m_sTarget, NULL, CDownloadWithTorrent::SeedTorrent(), and Transfers. Referenced by RunMultiFile(), and RunSingleFile(). |
|
Definition at line 442 of file DlgTorrentSeed.cpp. References CSettings::Downloads, CSHA::HashToHexString(), IDS_BT_SEED_CREATE_FAIL, CSettings::sDownloads::IncompletePath, LoadString(), m_pInfo, CBTInfo::m_pInfoSHA1, m_sMessage, m_sTarget, NULL, and Settings. Referenced by RunMultiFile(). |
|
Reimplemented from CSkinDialog. Definition at line 67 of file DlgTorrentSeed.cpp. References IDC_DOWNLOAD, IDC_PROGRESS, IDC_SEED, m_wndDownload, m_wndProgress, and m_wndSeed. |
|
Definition at line 355 of file DlgTorrentSeed.cpp. References CSettings::sDownloads::CompletePath, CSettings::Downloads, Library, LibraryMaps, CLibraryMaps::LookupFileBySHA1(), CBTInfo::CBTFile::m_bSHA1, CLibrary::m_pSection, CBTInfo::CBTFile::m_pSHA1, CBTInfo::CBTFile::m_sPath, m_sTorrent, NULL, and Settings. Referenced by BuildFiles(), and RunSingleFile(). |
|
Definition at line 235 of file DlgTorrentSeed.cpp. References m_bCancel, and m_wndDownload. |
|
Definition at line 247 of file DlgTorrentSeed.cpp. References CHttpRequest::CloseThread(), m_bCancel, m_hThread, and NULL. |
|
|
Reimplemented from CSkinDialog. Definition at line 78 of file DlgTorrentSeed.cpp. References CSettings::sBitTorrent::AutoSeed, CSettings::BitTorrent, IDR_MAINFRAME, m_bForceSeed, CShareazaApp::m_bRTL, m_wndDownload, m_wndProgress, NULL, CSkinDialog::OnInitDialog(), Settings, CSkinDialog::SkinMe(), and theApp. |
|
Definition at line 295 of file DlgTorrentSeed.cpp. References CBTInfo::m_nFiles, m_pInfo, RunMultiFile(), and RunSingleFile(). |
|
|
Definition at line 259 of file DlgTorrentSeed.cpp. References m_bCancel, m_nOldScaled, m_nScaled, m_sMessage, m_wndProgress, and OnSeed(). |
|
Definition at line 330 of file DlgTorrentSeed.cpp. References BuildFiles(), CreateDownload(), CreateTarget(), and m_sTarget. Referenced by OnRun(). |
|
Definition at line 307 of file DlgTorrentSeed.cpp. References CreateDownload(), FindFile(), IDS_BT_SEED_SOURCE_LOST, LoadString(), CBTInfo::m_pFiles, m_pInfo, m_sMessage, m_sTarget, and VerifySingle(). Referenced by OnRun(). |
|
Definition at line 289 of file DlgTorrentSeed.cpp. Referenced by OnSeed(). |
|
Definition at line 574 of file DlgTorrentSeed.cpp. References CBTInfo::AddToTest(), CBTInfo::BeginBlockTest(), CBTInfo::FinishBlockTest(), IDS_BT_SEED_VERIFY_FAIL, LoadString(), CBTInfo::m_nBlockCount, m_nBlockLength, m_nBlockNumber, CBTInfo::m_nBlockSize, m_pInfo, m_sMessage, and NULL. Referenced by BuildFiles(), CopyFile(), and VerifySingle(). |
|
Definition at line 395 of file DlgTorrentSeed.cpp. References CBTInfo::BeginBlockTest(), BUFFER_SIZE, IDS_BT_SEED_SOURCE_LOST, LoadString(), m_bCancel, m_nBlockLength, m_nBlockNumber, CBTInfo::m_nBlockSize, m_nOldScaled, m_nScaled, m_nTotal, m_nVolume, m_pInfo, m_sMessage, m_sTarget, NULL, and VerifyData(). Referenced by RunSingleFile(). |
|
Definition at line 45 of file DlgTorrentSeed.h. Referenced by BuildFiles(), CopyFile(), OnCancel(), OnDestroy(), OnSeed(), OnTimer(), and VerifySingle(). |
|
Definition at line 47 of file DlgTorrentSeed.h. Referenced by OnInitDialog(). |
|
Definition at line 44 of file DlgTorrentSeed.h. Referenced by OnDestroy(), OnSeed(), and ~CTorrentSeedDlg(). |
|
Definition at line 51 of file DlgTorrentSeed.h. Referenced by BuildFiles(), VerifyData(), and VerifySingle(). |
|
Definition at line 50 of file DlgTorrentSeed.h. Referenced by BuildFiles(), VerifyData(), and VerifySingle(). |
|
Definition at line 57 of file DlgTorrentSeed.h. Referenced by BuildFiles(), CopyFile(), OnTimer(), and VerifySingle(). |
|
Definition at line 56 of file DlgTorrentSeed.h. Referenced by BuildFiles(), CopyFile(), OnTimer(), and VerifySingle(). |
|
Definition at line 55 of file DlgTorrentSeed.h. Referenced by BuildFiles(), CopyFile(), and VerifySingle(). |
|
Definition at line 54 of file DlgTorrentSeed.h. Referenced by BuildFiles(), CopyFile(), and VerifySingle(). |
|
Definition at line 49 of file DlgTorrentSeed.h. Referenced by BuildFiles(), CreateDownload(), CreateTarget(), OnRun(), OnSeed(), RunSingleFile(), VerifyData(), and VerifySingle(). |
|
Definition at line 53 of file DlgTorrentSeed.h. Referenced by BuildFiles(), CopyFile(), CreateDownload(), CreateTarget(), OnTimer(), RunSingleFile(), VerifyData(), and VerifySingle(). |
|
Definition at line 48 of file DlgTorrentSeed.h. Referenced by CreateDownload(), CreateTarget(), RunMultiFile(), RunSingleFile(), and VerifySingle(). |
|
Definition at line 46 of file DlgTorrentSeed.h. Referenced by FindFile(), OnDownload(), and OnSeed(). |
|
Definition at line 41 of file DlgTorrentSeed.h. Referenced by DoDataExchange(), OnCancel(), OnInitDialog(), and OnSeed(). |
|
Definition at line 40 of file DlgTorrentSeed.h. Referenced by DoDataExchange(), OnInitDialog(), and OnTimer(). |
|
Definition at line 42 of file DlgTorrentSeed.h. Referenced by DoDataExchange(), and OnSeed(). |