#include <Uploads.h>
Public Member Functions | |
CUploads () | |
virtual | ~CUploads () |
void | Clear (BOOL bMessage=TRUE) |
int | GetCount (CUploadTransfer *pExcept, int nState=-1) const |
int | GetTorrentCount (int nState) const |
BOOL | AllowMoreTo (IN_ADDR *pAddress) const |
BOOL | CanUploadFileTo (IN_ADDR *pAddress, const SHA1 *pSHA1=NULL) const |
BOOL | EnforcePerHostLimit (CUploadTransfer *pUpload, BOOL bRequest=FALSE) |
void | SetStable (DWORD nSpeed) |
DWORD | GetBandwidth () const |
void | OnRun () |
BOOL | OnAccept (CConnection *pConnection, LPCTSTR pszHandshake) |
void | OnRename (LPCTSTR pszSource, LPCTSTR pszTarget=(LPCTSTR) 1) |
void | Add (CUploadTransfer *pUpload) |
void | Remove (CUploadTransfer *pUpload) |
POSITION | GetIterator () const |
CUploadTransfer * | GetNext (POSITION &pos) const |
BOOL | Check (CUploadTransfer *pUpload) const |
int | GetTransferCount () const |
int | GetTorrentTransferCount () const |
int | GetTorrentUploadCount () const |
Public Attributes | |
DWORD | m_nCount |
DWORD | m_nBandwidth |
DWORD | m_nTorrentSpeed |
BOOL | m_bStable |
DWORD | m_nBestSpeed |
Protected Attributes | |
CPtrList | m_pList |
|
Definition at line 55 of file Uploads.cpp. References m_bStable, m_nBandwidth, m_nBestSpeed, m_nCount, and m_nTorrentSpeed. |
|
Definition at line 64 of file Uploads.cpp. References Clear(). |
|
Definition at line 447 of file Uploads.cpp. Referenced by CUploadTransfer::CUploadTransfer(). |
|
Definition at line 170 of file Uploads.cpp. References GetIterator(), GetNext(), CUploadTransfer::m_nState, CConnection::m_pHost, CSettings::sUploads::MaxPerHost, Settings, CSettings::Uploads, upsQueued, and upsUploading. Referenced by CHandshakes::PushTo(). |
|
Definition at line 189 of file Uploads.cpp. References GetIterator(), GetNext(), CUploadTransfer::m_bSHA1, CUploadTransfer::m_nState, CConnection::m_pHost, CUploadTransfer::m_pSHA1, CSettings::sUploads::MaxPerHost, Settings, CSettings::Uploads, upsQueued, and upsUploading. Referenced by CUploadTransferHTTP::QueueRequest(). |
|
Definition at line 78 of file Uploads.h. Referenced by CUploadsWnd::OnUploadsDisconnect(). |
|
Definition at line 72 of file Uploads.cpp. References GetCount(), GetIterator(), GetNext(), and NULL. Referenced by CShareazaApp::ExitInstance(), and ~CUploads(). |
|
|
Definition at line 155 of file Uploads.cpp. References GetIterator(), and GetNext(). |
|
Definition at line 85 of file Uploads.cpp. References GetIterator(), GetNext(), CUploadTransfer::m_nState, m_pList, NULL, and upsNull. Referenced by Clear(), GetTransferCount(), CUploadsWnd::OnTimer(), CUploadTransferHTTP::RequestHostBrowse(), and CUploadTransferHTTP::RequestPreview(). |
|
Definition at line 68 of file Uploads.h. References m_pList. Referenced by AllowMoreTo(), CanUploadFileTo(), Clear(), EnforcePerHostLimit(), GetBandwidth(), GetCount(), GetTorrentCount(), OnAccept(), CPrivateChatFrame::OnChatPriority(), OnRename(), OnRun(), CUploadsWnd::OnTimer(), and CUploadsWnd::OnUploadsClearCompleted(). |
|
Definition at line 73 of file Uploads.h. References m_pList. Referenced by AllowMoreTo(), CanUploadFileTo(), Clear(), EnforcePerHostLimit(), GetBandwidth(), GetCount(), GetTorrentCount(), OnAccept(), CPrivateChatFrame::OnChatPriority(), OnRename(), OnRun(), CUploadsWnd::OnTimer(), and CUploadsWnd::OnUploadsClearCompleted(). |
|
Definition at line 115 of file Uploads.cpp. References GetIterator(), GetNext(), CUploadTransfer::m_nProtocol, CUploadTransfer::m_nState, PROTOCOL_BT, upsNull, and upsUploading. Referenced by GetTorrentTransferCount(), and GetTorrentUploadCount(). |
|
Definition at line 88 of file Uploads.h. References GetTorrentCount(). |
|
Definition at line 93 of file Uploads.h. References GetTorrentCount(). Referenced by CDownloadWithTorrent::RunTorrent(). |
|
Definition at line 83 of file Uploads.h. References GetCount(), and NULL. Referenced by CTransfers::GetActiveCount(). |
|
Definition at line 369 of file Uploads.cpp. References CTransfer::AttachTo(), CSettings::sRemote::Enable, GetIterator(), GetNext(), CUploadTransfer::m_bLive, CConnection::m_pHost, CTransfers::m_pSection, CSettings::sUploads::MaxPerHost, CSettings::Remote, Settings, Transfers, and CSettings::Uploads. Referenced by CHandshake::OnRead(). |
|
Definition at line 411 of file Uploads.cpp. References GetIterator(), GetNext(), CShareazaApp::m_pSafeWnd, CShareazaApp::m_pSection, CTransfers::m_pSection, NULL, CMediaWnd::OnFileDelete(), theApp, and Transfers. Referenced by CDownloadWithFile::DeleteFile(), CFileCopyDlg::ProcessMove(), CDownloadTask::RunCopySimple(), and CDownload::~CDownload(). |
|
|
Definition at line 454 of file Uploads.cpp. Referenced by CUploadTransfer::~CUploadTransfer(). |
|
Definition at line 149 of file Uploads.cpp. References m_bStable, and m_nBestSpeed. Referenced by CUploadTransferHTTP::OnCompleted(). |
|
Definition at line 42 of file Uploads.h. Referenced by CLocalSearch::CreatePacketG1(), CLocalSearch::CreatePacketG2(), CUploads(), SetStable(), and CLocalSearch::WriteTrailerG1(). |
|
Definition at line 39 of file Uploads.h. Referenced by CUploads(), CGraphItem::GetValue(), OnRun(), CTransfers::OnRun(), and CTransfers::StopThread(). |
|
Definition at line 43 of file Uploads.h. Referenced by CLocalSearch::CreatePacketG1(), CUploads(), and SetStable(). |
|
Definition at line 38 of file Uploads.h. Referenced by CUploads(), CGraphItem::GetValue(), OnRun(), CTransfers::OnRun(), and CTransfers::StopThread(). |
|
Definition at line 40 of file Uploads.h. Referenced by CUploads(), CUploadQueue::GetBandwidthLimit(), CUploadTransferBT::OnConnected(), and OnRun(). |
|
Definition at line 45 of file Uploads.h. Referenced by Add(), Check(), GetCount(), GetIterator(), GetNext(), and Remove(). |