#include <DownloadWithSources.h>
Inheritance diagram for CDownloadWithSources:
Public Member Functions | |
CDownloadWithSources () | |
virtual | ~CDownloadWithSources () |
CString | GetSourceURLs (CStringList *pState, int nMaximum, PROTOCOLID nProtocol, CDownloadSource *pExcept) |
int | GetSourceCount (BOOL bNoPush=FALSE, BOOL bSane=FALSE) const |
int | GetBTSourceCount (BOOL bNoPush=FALSE) const |
int | GetED2KCompleteSourceCount () const |
BOOL | CheckSource (CDownloadSource *pSource) const |
void | ClearSources () |
BOOL | AddSourceHit (CQueryHit *pHit, BOOL bForce=FALSE) |
BOOL | AddSourceED2K (DWORD nClientID, WORD nClientPort, DWORD nServerIP, WORD nServerPort, GGUID *pGUID=NULL) |
BOOL | AddSourceBT (SHA1 *pGUID, IN_ADDR *pAddress, WORD nPort) |
BOOL | AddSourceURL (LPCTSTR pszURL, BOOL bURN=FALSE, FILETIME *pLastSeen=NULL) |
int | AddSourceURLs (LPCTSTR pszURLs, BOOL bURN=FALSE) |
virtual BOOL | OnQueryHits (CQueryHit *pHits) |
virtual void | Serialize (CArchive &ar, int nVersion) |
CDownloadSource * | GetFirstSource () const |
Public Attributes | |
CStringList | m_pFailedSources |
CXMLElement * | m_pXML |
Protected Member Functions | |
BOOL | AddSourceInternal (CDownloadSource *pSource) |
void | RemoveSource (CDownloadSource *pSource, BOOL bBan) |
void | SortSource (CDownloadSource *pSource, BOOL bTop) |
void | SortSource (CDownloadSource *pSource) |
void | RemoveOverlappingSources (QWORD nOffset, QWORD nLength) |
int | GetSourceColour () |
Protected Attributes | |
CDownloadSource * | m_pSourceFirst |
CDownloadSource * | m_pSourceLast |
int | m_nSourceCount |
Friends | |
class | CDownloadSource |
class | CDownloadTransfer |
|
Definition at line 50 of file DownloadWithSources.cpp. References m_nSourceCount, m_pSourceFirst, m_pSourceLast, m_pXML, and NULL. |
|
Definition at line 58 of file DownloadWithSources.cpp. References ClearSources(), m_pXML, and NULL. |
|
Definition at line 272 of file DownloadWithSources.cpp. References AddSourceInternal(), CDownloadSource, CSettings::Connection, CSettings::sConnection::IgnoreOwnIP, CNetwork::IsFirewalledAddress(), CNetwork::m_pHost, Network, and Settings. Referenced by CDownloadTransferBT::OnSourceResponse(), and CBTTrackerRequest::Process(). |
|
Definition at line 267 of file DownloadWithSources.cpp. References AddSourceInternal(), and CDownloadSource. |
|
|
Definition at line 424 of file DownloadWithSources.cpp. References CSettings::Connection, CSettings::sConnection::IgnoreOwnIP, CSettings::sConnection::InPort, m_nSourceCount, CNetwork::m_pHost, CDownloadSource::m_pNext, m_pSourceFirst, m_pSourceLast, Network, NULL, PROTOCOL_ED2K, PROTOCOL_HTTP, CDownloadBase::SetModified(), and Settings. Referenced by AddSourceBT(), AddSourceED2K(), AddSourceHit(), AddSourceURL(), CDownloadWithTorrent::CreateTorrentTransfer(), and CDownload::SerializeOld(). |
|
|
Definition at line 342 of file DownloadWithSources.cpp. References _tcsistr(), AddSourceURL(), CSHA::HashToString(), CNetwork::IsFirewalledAddress(), CDownloadBase::m_bSHA1, CDownloadBase::m_pSHA1, Network, NULL, and TimeFromString(). Referenced by CDownloads::Add(), CDownloadTransferHTTP::OnHeaderLine(), and CUploadTransferHTTP::RequestPartialFile(). |
|
Definition at line 138 of file DownloadWithSources.cpp. References CDownloadSource::m_pNext, and m_pSourceFirst. |
|
Definition at line 151 of file DownloadWithSources.cpp. References GetFirstSource(), m_nSourceCount, m_pSourceFirst, m_pSourceLast, NULL, and CDownloadBase::SetModified(). Referenced by CDownloads::Load(), CDownloadEditDlg::OnLButtonUp(), CDownload::OnMoved(), and ~CDownloadWithSources(). |
|
Definition at line 91 of file DownloadWithSources.cpp. References CDownloadSource::m_pNext, m_pSourceFirst, and PROTOCOL_BT. Referenced by CDownloadWithTorrent::RunTorrent(). |
|
Definition at line 113 of file DownloadWithSources.cpp. References CDownloadSource::m_pNext, m_pSourceFirst, and PROTOCOL_ED2K. |
|
|
Definition at line 721 of file DownloadWithSources.cpp. References GetFirstSource(), and SRC_COLOURS. Referenced by CDownloadSource::GetColour(). |
|
|
Definition at line 510 of file DownloadWithSources.cpp. References GetFirstSource(), CDownloadSource::m_bPushOnly, NULL, PROTOCOL_G1, PROTOCOL_HTTP, Replace(), and TimeToString(). Referenced by CDownload::OnMoved(), CUploadTransferHTTP::RequestPartialFile(), and CDownloadTransferHTTP::SendRequest(). |
|
Definition at line 551 of file DownloadWithSources.cpp. References AddSourceHit(), CQueryHit::m_pNext, and CQueryHit::m_sURL. Referenced by CDownloads::OnQueryHits(). |
|
Definition at line 564 of file DownloadWithSources.cpp. References GetFirstSource(), IDS_DOWNLOAD_VERIFY_DROP, CDownloadBase::m_sRemoteName, CShareazaApp::Message(), MSG_ERROR, and theApp. Referenced by CDownloadWithTiger::FinishValidation(). |
|
Definition at line 586 of file DownloadWithSources.cpp. References m_nSourceCount, m_pFailedSources, CDownloadSource::m_pNext, CDownloadSource::m_pPrev, m_pSourceFirst, m_pSourceLast, NULL, and CDownloadBase::SetModified(). Referenced by CDownloadSource::OnFailure(), and CDownloadSource::Remove(). |
|
Reimplemented from CDownloadBase. Reimplemented in CDownload, CDownloadWithExtras, CDownloadWithFile, CDownloadWithTiger, and CDownloadWithTorrent. Definition at line 759 of file DownloadWithSources.cpp. References CDownloadSource, GetFirstSource(), GetSourceCount(), CDownloadSource::m_nPort, m_nSourceCount, CDownloadSource::m_pAddress, CDownloadSource::m_pNext, CDownloadSource::m_pPrev, m_pSourceFirst, m_pSourceLast, m_pXML, CDownloadSource::m_sURL, NULL, CDownloadSource::Serialize(), and CDownloadBase::Serialize(). Referenced by CDownloadWithFile::Serialize(). |
|
Definition at line 663 of file DownloadWithSources.cpp. References CDownloadSource::m_nSortOrder, m_nSourceCount, CDownloadSource::m_pNext, CDownloadSource::m_pPrev, m_pSourceFirst, m_pSourceLast, and NULL. |
|
Definition at line 613 of file DownloadWithSources.cpp. References m_nSourceCount, CDownloadSource::m_pNext, CDownloadSource::m_pPrev, m_pSourceFirst, m_pSourceLast, and NULL. Referenced by CDownloadTransfer::SetState(). |
|
Definition at line 84 of file DownloadWithSources.h. Referenced by AddSourceBT(), AddSourceED2K(), AddSourceHit(), AddSourceURL(), CDownloadWithTorrent::CreateTorrentTransfer(), Serialize(), and CDownload::SerializeOld(). |
|
Reimplemented in CDownload, CDownloadWithFile, and CDownloadWithTransfers. Definition at line 85 of file DownloadWithSources.h. |
|
Definition at line 45 of file DownloadWithSources.h. Referenced by AddSourceInternal(), CDownloadWithSources(), ClearSources(), GetSourceCount(), CDownload::OnRun(), RemoveSource(), Serialize(), and SortSource(). |
|
Definition at line 47 of file DownloadWithSources.h. Referenced by AddSourceURL(), and RemoveSource(). |
|
Definition at line 43 of file DownloadWithSources.h. Referenced by AddSourceInternal(), CDownloadWithSources(), CheckSource(), ClearSources(), GetBTSourceCount(), GetED2KCompleteSourceCount(), GetFirstSource(), GetSourceCount(), RemoveSource(), Serialize(), SortSource(), and CDownloadWithTransfers::StartNewTransfer(). |
|
Definition at line 44 of file DownloadWithSources.h. Referenced by AddSourceInternal(), CDownloadWithSources(), ClearSources(), RemoveSource(), Serialize(), and SortSource(). |
|