Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CDownloadSource Class Reference

#include <DownloadSource.h>

List of all members.

Public Member Functions

 CDownloadSource (CDownload *pDownload)
 CDownloadSource (CDownload *pDownload, CQueryHit *pHit)
 CDownloadSource (CDownload *pDownload, DWORD nClientID, WORD nClientPort, DWORD nServerIP, WORD nServerPort, GGUID *pGUID=NULL)
 CDownloadSource (CDownload *pDownload, SHA1 *pGUID, IN_ADDR *pAddress, WORD nPort)
 CDownloadSource (CDownload *pDownload, LPCTSTR pszURL, BOOL bSHA1=FALSE, BOOL bHashAuth=FALSE, FILETIME *pLastSeen=NULL)
virtual ~CDownloadSource ()
BOOL ResolveURL ()
void Serialize (CArchive &ar, int nVersion)
BOOL CanInitiate (BOOL bNetwork, BOOL bEstablished) const
void Remove (BOOL bCloseTransfer, BOOL bBan)
void OnFailure (BOOL bNondestructive)
void OnResume ()
void SetValid ()
void SetLastSeen ()
void SetGnutella (int nGnutella)
BOOL CheckHash (const SHA1 *pSHA1)
BOOL CheckHash (const TIGEROOT *pTiger)
BOOL CheckHash (const MD4 *pED2K)
BOOL PushRequest ()
BOOL CheckPush (GGUID *pClientID)
BOOL CheckDonkey (CEDClient *pClient)
void AddFragment (QWORD nOffset, QWORD nLength, BOOL bMerge=FALSE)
void SetAvailableRanges (LPCTSTR pszRanges)
BOOL HasUsefulRanges () const
BOOL TouchedRange (QWORD nOffset, QWORD nLength) const
int GetColour ()
CDownloadTransferCreateTransfer ()
BOOL Equals (CDownloadSource *pSource) const

Public Attributes

CDownloadm_pDownload
CDownloadSourcem_pPrev
CDownloadSourcem_pNext
CDownloadTransferm_pTransfer
BOOL m_bSelected
CString m_sURL
PROTOCOLID m_nProtocol
BOOL m_bGUID
GGUID m_pGUID
IN_ADDR m_pAddress
WORD m_nPort
IN_ADDR m_pServerAddress
WORD m_nServerPort
CString m_sName
DWORD m_nIndex
BOOL m_bHashAuth
BOOL m_bSHA1
BOOL m_bTiger
BOOL m_bED2K
CString m_sServer
CString m_sNick
DWORD m_nSpeed
BOOL m_bPushOnly
BOOL m_bCloseConn
BOOL m_bReadContent
FILETIME m_tLastSeen
int m_nGnutella
BOOL m_bClientExtended
DWORD m_nSortOrder
int m_nColour
DWORD m_tAttempt
int m_nFailures
FF::SimpleFragmentList m_oAvailable
FF::SimpleFragmentList m_oPastFragments

Private Member Functions

void Construct (CDownload *pDownload)


Constructor & Destructor Documentation

CDownloadSource::CDownloadSource CDownload pDownload  ) 
 

Definition at line 54 of file DownloadSource.cpp.

References Construct().

CDownloadSource::CDownloadSource CDownload pDownload,
CQueryHit pHit
 

Definition at line 107 of file DownloadSource.cpp.

References Construct(), m_bClientExtended, CQueryHit::m_bED2K, m_bED2K, m_bGUID, CQueryHit::m_bMeasured, CQueryHit::m_bPush, m_bPushOnly, CQueryHit::m_bSHA1, m_bSHA1, CQueryHit::m_bTiger, m_bTiger, CQueryHit::m_nIndex, m_nIndex, CQueryHit::m_nPort, m_nPort, CQueryHit::m_nProtocol, CDownloadBase::m_nSize, CQueryHit::m_nSpeed, m_nSpeed, CQueryHit::m_pAddress, m_pAddress, CQueryHit::m_pClientID, m_pGUID, CQueryHit::m_pVendor, CQueryHit::m_sName, m_sName, CVendor::m_sName, m_sServer, CQueryHit::m_sURL, m_sURL, PROTOCOL_ED2K, PROTOCOL_G1, PROTOCOL_G2, ResolveURL(), and TS_TRUE.

CDownloadSource::CDownloadSource CDownload pDownload,
DWORD  nClientID,
WORD  nClientPort,
DWORD  nServerIP,
WORD  nServerPort,
GGUID pGUID = NULL
 

Definition at line 146 of file DownloadSource.cpp.

References Construct(), CED2K::HashToString(), CEDPacket::IsLowID(), m_bED2K, m_bGUID, m_bPushOnly, CDownloadBase::m_nSize, m_pDownload, CDownloadBase::m_pED2K, m_pGUID, m_sServer, m_sURL, NULL, and ResolveURL().

CDownloadSource::CDownloadSource CDownload pDownload,
SHA1 pGUID,
IN_ADDR *  pAddress,
WORD  nPort
 

Definition at line 176 of file DownloadSource.cpp.

References Construct(), CSHA::HashToString(), m_bGUID, CDownloadBase::m_pBTH, m_sServer, m_sURL, NULL, and ResolveURL().

CDownloadSource::CDownloadSource CDownload pDownload,
LPCTSTR  pszURL,
BOOL  bSHA1 = FALSE,
BOOL  bHashAuth = FALSE,
FILETIME *  pLastSeen = NULL
 

Definition at line 204 of file DownloadSource.cpp.

References Construct(), m_bHashAuth, m_sURL, m_tLastSeen, NULL, and ResolveURL().

CDownloadSource::~CDownloadSource  )  [virtual]
 

Definition at line 98 of file DownloadSource.cpp.


Member Function Documentation

void CDownloadSource::AddFragment QWORD  nOffset,
QWORD  nLength,
BOOL  bMerge = FALSE
 

Definition at line 626 of file DownloadSource.cpp.

References detail::List< FragmentT, ContainerT >::insert(), m_bReadContent, m_oPastFragments, m_pDownload, and CDownloadBase::SetModified().

Referenced by CDownloadTransferHTTP::Close(), CDownloadTransferFTP::Close(), CDownloadTransferED2K::OnCompressedPart(), CDownloadTransferBT::OnPiece(), CDownloadTransferFTP::CFTPRETR::OnRead(), CDownloadTransferED2K::OnSendingPart(), and CDownloadTransferHTTP::ReadContent().

BOOL CDownloadSource::CanInitiate BOOL  bNetwork,
BOOL  bEstablished
const [inline]
 

Definition at line 239 of file DownloadWithTransfers.cpp.

References CDownloads::AllowMoreTransfers(), CSettings::Connection, Downloads, CSettings::eDonkey, CSettings::seDonkey::EnableToday, CSettings::sGnutella2::EnableToday, CSettings::sGnutella1::EnableToday, CSettings::Gnutella1, CSettings::Gnutella2, CSettings::sConnection::IgnoreOwnIP, m_nGnutella, m_nProtocol, m_pAddress, CNetwork::m_pHost, CShareazaApp::Message(), MSG_ERROR, Network, PROTOCOL_BT, PROTOCOL_ED2K, PROTOCOL_FTP, PROTOCOL_G1, PROTOCOL_G2, PROTOCOL_HTTP, CSettings::sConnection::RequireForTransfers, Settings, and theApp.

Referenced by CDownloadTransferHTTP::OnHeadersComplete().

BOOL CDownloadSource::CheckDonkey CEDClient pClient  ) 
 

Definition at line 606 of file DownloadSource.cpp.

References CEDClient::m_bGUID, m_bGUID, m_bPushOnly, CEDClient::m_nClientID, m_nProtocol, m_pAddress, CEDClient::m_pGUID, m_pGUID, CConnection::m_pHost, CEDClient::m_pServer, m_pServerAddress, and PROTOCOL_ED2K.

Referenced by CDownloadWithTransfers::OnDonkeyCallback().

BOOL CDownloadSource::CheckHash const MD4 pED2K  ) 
 

Definition at line 536 of file DownloadSource.cpp.

References CBTInfo::IsAvailable(), m_bED2K, CDownloadBase::m_bED2K, m_bHashAuth, m_pDownload, CDownloadBase::m_pED2K, CDownloadWithTorrent::m_pTorrent, and CDownloadBase::SetModified().

BOOL CDownloadSource::CheckHash const TIGEROOT pTiger  ) 
 

Definition at line 516 of file DownloadSource.cpp.

References CBTInfo::IsAvailable(), m_bHashAuth, m_bTiger, CDownloadBase::m_bTiger, m_pDownload, CDownloadBase::m_pTiger, CDownloadWithTorrent::m_pTorrent, and CDownloadBase::SetModified().

BOOL CDownloadSource::CheckHash const SHA1 pSHA1  ) 
 

Definition at line 496 of file DownloadSource.cpp.

References CBTInfo::IsAvailable(), m_bHashAuth, m_bSHA1, CDownloadBase::m_bSHA1, m_pDownload, CDownloadBase::m_pSHA1, CDownloadWithTorrent::m_pTorrent, and CDownloadBase::SetModified().

Referenced by CDownloadTransferHTTP::OnHeaderLine().

BOOL CDownloadSource::CheckPush GGUID pClientID  ) 
 

Definition at line 601 of file DownloadSource.cpp.

References m_bGUID, and m_pGUID.

Referenced by CDownloadWithTransfers::OnAcceptPush().

void CDownloadSource::Construct CDownload pDownload  )  [inline, private]
 

Definition at line 60 of file DownloadSource.cpp.

References m_bClientExtended, m_bCloseConn, m_bED2K, m_bGUID, m_bHashAuth, m_bPushOnly, m_bReadContent, m_bSelected, m_bSHA1, m_bTiger, m_nColour, m_nFailures, m_nGnutella, m_nIndex, m_nPort, m_nProtocol, m_nServerPort, m_nSortOrder, m_nSpeed, m_pDownload, m_pNext, m_pPrev, m_pTransfer, m_tAttempt, m_tLastSeen, NULL, and PROTOCOL_NULL.

Referenced by CDownloadSource().

CDownloadTransfer * CDownloadSource::CreateTransfer  ) 
 

Definition at line 375 of file DownloadSource.cpp.

References m_nProtocol, m_pTransfer, CShareazaApp::Message(), MSG_ERROR, NULL, PROTOCOL_BT, PROTOCOL_ED2K, PROTOCOL_FTP, PROTOCOL_G1, PROTOCOL_G2, PROTOCOL_HTTP, and theApp.

Referenced by CDownloadWithTransfers::OnAcceptPush(), CDownloadWithTransfers::OnDonkeyCallback(), and CDownloadWithTransfers::StartNewTransfer().

BOOL CDownloadSource::Equals CDownloadSource pSource  )  const [inline]
 

Definition at line 119 of file DownloadSource.h.

References m_bGUID, m_nPort, m_nServerPort, m_pAddress, m_pGUID, and m_pServerAddress.

int CDownloadSource::GetColour  ) 
 

Definition at line 704 of file DownloadSource.cpp.

References CDownloadWithSources::GetSourceColour(), m_nColour, and m_pDownload.

Referenced by CFragmentBar::DrawSourceImpl().

BOOL CDownloadSource::HasUsefulRanges  )  const
 

Definition at line 674 of file DownloadSource.cpp.

References CDownloadWithFile::AreRangesUseful(), detail::List< FragmentT, ContainerT >::empty(), CDownloadWithFile::IsRangeUseful(), CDownloadBase::m_nSize, m_oAvailable, and m_pDownload.

Referenced by CDownloadTransferED2K::SendSecondaryRequest().

void CDownloadSource::OnFailure BOOL  bNondestructive  ) 
 

Definition at line 417 of file DownloadSource.cpp.

References CSettings::Downloads, dtsNull, m_bReadContent, m_nFailures, m_pDownload, CDownloadTransfer::m_pSource, m_pTransfer, m_tAttempt, CSettings::sDownloads::NeverDrop, NULL, CDownloadWithSources::RemoveSource(), CSettings::sDownloads::RetryDelay, CDownloadBase::SetModified(), CDownloadTransfer::SetState(), and Settings.

Referenced by CDownloadTransfer::Close().

void CDownloadSource::OnResume  ) 
 

Definition at line 464 of file DownloadSource.cpp.

References m_tAttempt.

BOOL CDownloadSource::PushRequest  ) 
 

Definition at line 559 of file DownloadSource.cpp.

References CEDClients::Connect(), CSettings::Downloads, EDClients, IDS_DOWNLOAD_PUSH_SENT, CEDClients::IsFull(), CConnection::m_bConnected, m_bGUID, m_nIndex, m_nPort, m_nProtocol, m_nServerPort, m_pAddress, m_pDownload, m_pGUID, m_pServerAddress, CDownloadBase::m_sRemoteName, m_tAttempt, CShareazaApp::Message(), MSG_DEFAULT, Neighbours, Network, NULL, PROTOCOL_BT, PROTOCOL_ED2K, CNeighboursWithED2K::PushDonkey(), CSettings::sDownloads::PushTimeout, CEDClient::SeekNewDownload(), CNetwork::SendPush(), Settings, and theApp.

Referenced by CDownloadTransferHTTP::OnDropped(), CDownloadTransferFTP::OnDropped(), CDownloadTransferHTTP::OnRun(), CDownloadTransferFTP::OnRun(), and CDownloadWithTransfers::StartNewTransfer().

void CDownloadSource::Remove BOOL  bCloseTransfer,
BOOL  bBan
 

Definition at line 395 of file DownloadSource.cpp.

References CDownloadTransfer::Close(), m_pDownload, CDownloadTransfer::m_pSource, m_pTransfer, NULL, CDownloadWithSources::RemoveSource(), and TS_TRUE.

Referenced by CDownloadTransfer::Close(), and CDownloadWithTransfers::StartNewTransfer().

BOOL CDownloadSource::ResolveURL  ) 
 

Definition at line 228 of file DownloadSource.cpp.

References CSourceURL::m_bBTC, CSourceURL::m_bED2K, m_bED2K, m_bGUID, m_bPushOnly, CSourceURL::m_bSHA1, m_bSHA1, CSourceURL::m_nPort, m_nPort, CSourceURL::m_nProtocol, m_nProtocol, CSourceURL::m_nServerPort, m_nServerPort, CSourceURL::m_pAddress, m_pAddress, CSourceURL::m_pBTC, m_pGUID, CSourceURL::m_pServerAddress, m_pServerAddress, m_sURL, CShareazaApp::Message(), MSG_ERROR, CSourceURL::Parse(), PROTOCOL_BT, PROTOCOL_ED2K, and theApp.

Referenced by CDownloadSource(), and Serialize().

void CDownloadSource::Serialize CArchive &  ar,
int  nVersion
 

Definition at line 262 of file DownloadSource.cpp.

References m_bClientExtended, m_bCloseConn, m_bED2K, m_bGUID, m_bHashAuth, m_bPushOnly, m_bReadContent, m_bSHA1, m_bTiger, m_nIndex, m_nPort, m_nProtocol, m_nServerPort, m_nSpeed, m_oPastFragments, m_pAddress, m_pGUID, m_pServerAddress, m_sName, m_sNick, m_sServer, m_sURL, m_tLastSeen, ResolveURL(), detail::SerializeIn2(), and detail::SerializeOut2().

Referenced by CDownloadWithSources::Serialize(), and CDownload::SerializeOld().

void CDownloadSource::SetAvailableRanges LPCTSTR  pszRanges  ) 
 

Definition at line 636 of file DownloadSource.cpp.

References detail::List< FragmentT, ContainerT >::clear(), detail::List< FragmentT, ContainerT >::insert(), detail::List< FragmentT, ContainerT >::limit(), m_oAvailable, m_pDownload, and CDownloadBase::SetModified().

Referenced by CDownloadTransferHTTP::OnHeaderLine(), CDownloadTransferHTTP::OnHeadersComplete(), CDownloadTransferED2K::SendSecondaryRequest(), CDownloadTransferHTTP::StartNextFragment(), and CDownloadTransferFTP::StartNextFragment().

void CDownloadSource::SetGnutella int  nGnutella  ) 
 

Definition at line 487 of file DownloadSource.cpp.

References m_nGnutella, m_pDownload, and CDownloadBase::SetModified().

Referenced by CDownloadTransferHTTP::OnHeaderLine().

void CDownloadSource::SetLastSeen  ) 
 

Definition at line 479 of file DownloadSource.cpp.

References m_pDownload, m_tLastSeen, and CDownloadBase::SetModified().

Referenced by CDownloadTransferED2K::OnConnected(), CDownloadTransferBT::OnConnected(), CDownloadTransferFTP::OnHeaderLine(), and CDownloadTransferHTTP::SendRequest().

void CDownloadSource::SetValid  ) 
 

Definition at line 472 of file DownloadSource.cpp.

References m_bReadContent, m_nFailures, m_pDownload, and CDownloadBase::SetModified().

Referenced by CDownloadTransferED2K::OnCompressedPart(), CDownloadTransferBT::OnPiece(), CDownloadTransferED2K::OnSendingPart(), and CDownloadTransferHTTP::ReadContent().

BOOL CDownloadSource::TouchedRange QWORD  nOffset,
QWORD  nLength
const
 

Definition at line 686 of file DownloadSource.cpp.

References dtsDownloading, CDownloadTransfer::m_nLength, CDownloadTransfer::m_nOffset, CDownloadTransfer::m_nState, m_oPastFragments, m_pTransfer, NULL, and detail::overlaps().


Member Data Documentation

BOOL CDownloadSource::m_bClientExtended
 

Definition at line 79 of file DownloadSource.h.

Referenced by CDownloadSource(), Construct(), CEDClient::DeriveSoftwareVersion(), CEDClient::DeriveVersion(), CBTClient::DetermineUserAgent(), CBTClient::OnBeHandshake(), and Serialize().

BOOL CDownloadSource::m_bCloseConn
 

Definition at line 75 of file DownloadSource.h.

Referenced by CDownloadTransfer::ChunkifyRequest(), Construct(), CDownloadTransferHTTP::OnHeadersComplete(), and Serialize().

BOOL CDownloadSource::m_bED2K
 

Definition at line 69 of file DownloadSource.h.

Referenced by CDownloadSource(), CheckHash(), Construct(), ResolveURL(), and Serialize().

BOOL CDownloadSource::m_bGUID
 

Definition at line 57 of file DownloadSource.h.

Referenced by CDownloadSource(), CheckDonkey(), CheckPush(), Construct(), Equals(), CDownloadTransferED2K::Initiate(), CDownloadTransferED2K::OnConnected(), PushRequest(), ResolveURL(), and Serialize().

BOOL CDownloadSource::m_bHashAuth
 

Definition at line 66 of file DownloadSource.h.

Referenced by CDownloadSource(), CheckHash(), Construct(), and Serialize().

BOOL CDownloadSource::m_bPushOnly
 

Definition at line 74 of file DownloadSource.h.

Referenced by CDownloadSource(), CheckDonkey(), Construct(), CDownloadWithTorrent::CreateTorrentTransfer(), CBTClient::DetermineUserAgent(), CDownloadWithSources::GetSourceURLs(), CDownloadTipCtrl::OnCalcSize(), CDownloadsCtrl::PaintSource(), ResolveURL(), and Serialize().

BOOL CDownloadSource::m_bReadContent
 

Definition at line 76 of file DownloadSource.h.

Referenced by AddFragment(), Construct(), CFragmentBar::DrawSourceImpl(), OnFailure(), Serialize(), and SetValid().

BOOL CDownloadSource::m_bSelected
 

Definition at line 53 of file DownloadSource.h.

Referenced by Construct(), CDownloadsCtrl::OnLButtonDblClk(), CDownloadsCtrl::OnLButtonDown(), CDownloadsCtrl::PaintSource(), CDownloadsCtrl::SelectAll(), and CDownloadsCtrl::SelectTo().

BOOL CDownloadSource::m_bSHA1
 

Definition at line 67 of file DownloadSource.h.

Referenced by CDownloadSource(), CheckHash(), Construct(), ResolveURL(), CDownloadTransferHTTP::SendRequest(), and Serialize().

BOOL CDownloadSource::m_bTiger
 

Definition at line 68 of file DownloadSource.h.

Referenced by CDownloadSource(), CheckHash(), Construct(), and Serialize().

int CDownloadSource::m_nColour
 

Definition at line 82 of file DownloadSource.h.

Referenced by Construct(), and GetColour().

int CDownloadSource::m_nFailures
 

Definition at line 84 of file DownloadSource.h.

Referenced by Construct(), OnFailure(), and SetValid().

int CDownloadSource::m_nGnutella
 

Definition at line 78 of file DownloadSource.h.

Referenced by CanInitiate(), Construct(), CDownloadTransferHTTP::SendRequest(), and SetGnutella().

DWORD CDownloadSource::m_nIndex
 

Definition at line 65 of file DownloadSource.h.

Referenced by CDownloadSource(), Construct(), PushRequest(), and Serialize().

WORD CDownloadSource::m_nPort
 

Definition at line 60 of file DownloadSource.h.

Referenced by CDownloadSource(), CBTClient::Connect(), Construct(), Equals(), CDownloadTransferHTTP::Initiate(), CDownloadTransferFTP::Initiate(), CDownloadTransferED2K::Initiate(), PushRequest(), ResolveURL(), CDownloadTransferHTTP::SendRequest(), CDownloadWithSources::Serialize(), and Serialize().

PROTOCOLID CDownloadSource::m_nProtocol
 

Definition at line 56 of file DownloadSource.h.

Referenced by CanInitiate(), CheckDonkey(), Construct(), CDownloadWithTorrent::CreateTorrentTransfer(), CreateTransfer(), CDownloadWithTransfers::OnAcceptPush(), CDownloadTipCtrl::OnCalcSize(), CDownloadsCtrl::PaintSource(), PushRequest(), ResolveURL(), Serialize(), and CDownloadWithTransfers::StartNewTransfer().

WORD CDownloadSource::m_nServerPort
 

Definition at line 62 of file DownloadSource.h.

Referenced by Construct(), Equals(), CDownloadTransferED2K::Initiate(), PushRequest(), ResolveURL(), and Serialize().

DWORD CDownloadSource::m_nSortOrder
 

Definition at line 81 of file DownloadSource.h.

Referenced by Construct(), CDownloadTransfer::SetState(), and CDownloadWithSources::SortSource().

DWORD CDownloadSource::m_nSpeed
 

Definition at line 73 of file DownloadSource.h.

Referenced by CDownloadSource(), Construct(), CDownloadTransferHTTP::GetAverageSpeed(), CDownloadTransferFTP::GetAverageSpeed(), CDownloadTransferED2K::GetAverageSpeed(), CDownloadTransferBT::GetAverageSpeed(), CDownloadTransferFTP::CFTPRETR::OnRead(), and Serialize().

FF::SimpleFragmentList CDownloadSource::m_oAvailable
 

Definition at line 85 of file DownloadSource.h.

Referenced by CFragmentBar::DrawSource(), HasUsefulRanges(), CDownloadTransferBT::OnBitfield(), CDownloadTransferED2K::OnFileReqAnswer(), CDownloadTransferED2K::OnFileStatus(), CDownloadTransferBT::OnHave(), CDownloadTransferHTTP::OnHeaderLine(), SetAvailableRanges(), and VerifySelection().

FF::SimpleFragmentList CDownloadSource::m_oPastFragments
 

Definition at line 86 of file DownloadSource.h.

Referenced by AddFragment(), CFragmentBar::DrawSourceImpl(), Serialize(), and TouchedRange().

IN_ADDR CDownloadSource::m_pAddress
 

Definition at line 59 of file DownloadSource.h.

Referenced by CanInitiate(), CDownloadSource(), CheckDonkey(), CBTClient::Connect(), Equals(), CDownloadTransferHTTP::Initiate(), CDownloadTransferFTP::Initiate(), CDownloadTransferED2K::Initiate(), CDownloadTipCtrl::OnCalcSize(), CDownloadsCtrl::PaintSource(), PushRequest(), ResolveURL(), CDownloadWithSources::Serialize(), Serialize(), and CDownloadTransfer::SetState().

CDownload* CDownloadSource::m_pDownload
 

Definition at line 49 of file DownloadSource.h.

Referenced by AddFragment(), CDownloadSource(), CDownloadTransfer::CDownloadTransfer(), CheckHash(), Construct(), CFragmentBar::DrawSource(), CFragmentBar::DrawSourceImpl(), GetColour(), HasUsefulRanges(), CDownloadTipCtrl::OnCalcSize(), OnFailure(), CDownloadsCtrl::OnKeyDown(), CDownloadTipCtrl::OnPaint(), CDownloadsCtrl::PaintSource(), PushRequest(), Remove(), SetAvailableRanges(), SetGnutella(), SetLastSeen(), and SetValid().

GGUID CDownloadSource::m_pGUID
 

Definition at line 58 of file DownloadSource.h.

Referenced by CDownloadSource(), CheckDonkey(), CheckPush(), CDownloadWithTorrent::CreateTorrentTransfer(), Equals(), CDownloadTransferED2K::Initiate(), CDownloadTransferED2K::OnConnected(), CBTClient::OnHandshake2(), PushRequest(), ResolveURL(), and Serialize().

CDownloadSource* CDownloadSource::m_pNext
 

Definition at line 51 of file DownloadSource.h.

Referenced by CDownloadWithSources::AddSourceInternal(), CDownloadWithSources::CheckSource(), Construct(), CDownloadWithTorrent::CreateTorrentTransfer(), CDownloadWithSources::GetBTSourceCount(), CDownloadWithSources::GetED2KCompleteSourceCount(), CDownloadWithSources::GetSourceCount(), CDownloadWithTransfers::OnAcceptPush(), CDownloadWithTransfers::OnDonkeyCallback(), CDownloadsCtrl::OnLButtonDblClk(), CDownloadsCtrl::OnLButtonDown(), CDownloadWithSources::RemoveSource(), CDownloadsCtrl::SelectAll(), CDownloadWithSources::Serialize(), and CDownloadWithSources::SortSource().

CDownloadSource* CDownloadSource::m_pPrev
 

Definition at line 50 of file DownloadSource.h.

Referenced by Construct(), CDownloadWithSources::RemoveSource(), CDownloadWithSources::Serialize(), and CDownloadWithSources::SortSource().

IN_ADDR CDownloadSource::m_pServerAddress
 

Definition at line 61 of file DownloadSource.h.

Referenced by CheckDonkey(), Equals(), CDownloadTransferED2K::Initiate(), CDownloadTipCtrl::OnCalcSize(), CDownloadsCtrl::PaintSource(), PushRequest(), ResolveURL(), and Serialize().

CDownloadTransfer* CDownloadSource::m_pTransfer
 

Definition at line 52 of file DownloadSource.h.

Referenced by Construct(), CDownloadWithTorrent::CreateTorrentTransfer(), CreateTransfer(), CFragmentBar::DrawSource(), CFragmentBar::DrawSourceImpl(), CDownloadWithTransfers::OnAcceptPush(), CDownloadTipCtrl::OnCalcSize(), CDownloadWithTransfers::OnDonkeyCallback(), OnFailure(), CDownloadTipCtrl::OnPaint(), CDownloadTipCtrl::OnTimer(), CDownloadsCtrl::PaintSource(), Remove(), CDownloadTransfer::SetState(), and TouchedRange().

CString CDownloadSource::m_sName
 

Definition at line 64 of file DownloadSource.h.

Referenced by CDownloadSource(), and Serialize().

CString CDownloadSource::m_sNick
 

Definition at line 72 of file DownloadSource.h.

Referenced by CBTClient::DetermineUserAgent(), CBTClient::OnBeHandshake(), CDownloadTipCtrl::OnCalcSize(), CDownloadTransferED2K::OnConnected(), CDownloadTransferHTTP::OnHeaderLine(), CDownloadsCtrl::PaintSource(), and Serialize().

CString CDownloadSource::m_sServer
 

Definition at line 71 of file DownloadSource.h.

Referenced by CDownloadSource(), CBTClient::DetermineUserAgent(), CBTClient::OnBeHandshake(), CDownloadTransferED2K::OnConnected(), CDownloadTransferHTTP::OnHeaderLine(), CDownloadTransferHTTP::OnHeadersComplete(), CDownloadTipCtrl::OnPaint(), CDownloadsCtrl::PaintSource(), and Serialize().

CString CDownloadSource::m_sURL
 

Definition at line 55 of file DownloadSource.h.

Referenced by CDownloadSource(), CDownloadTipCtrl::OnCalcSize(), ResolveURL(), CDownloadTransferFTP::SendCommand(), CDownloadTransferHTTP::SendRequest(), CDownloadWithSources::Serialize(), and Serialize().

DWORD CDownloadSource::m_tAttempt
 

Definition at line 83 of file DownloadSource.h.

Referenced by Construct(), OnFailure(), CDownloadTransferHTTP::OnHeadersComplete(), CDownloadTransferED2K::OnQueueRank(), OnResume(), CEDClient::OnUdpQueueFull(), CDownloadsCtrl::PaintSource(), PushRequest(), and CDownloadTransferED2K::SendSecondaryRequest().

FILETIME CDownloadSource::m_tLastSeen
 

Definition at line 77 of file DownloadSource.h.

Referenced by CDownloadSource(), Construct(), Serialize(), and SetLastSeen().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:05 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2