#include <UploadQueues.h>
Public Member Functions | |
CUploadQueues () | |
virtual | ~CUploadQueues () |
BOOL | Enqueue (CUploadTransfer *pUpload, BOOL bForce=FALSE) |
BOOL | Dequeue (CUploadTransfer *pUpload) |
int | GetPosition (CUploadTransfer *pUpload, BOOL bStart) |
BOOL | StealPosition (CUploadTransfer *pTarget, CUploadTransfer *pSource) |
CUploadQueue * | Create (LPCTSTR pszName=NULL, BOOL bTop=FALSE) |
void | Delete (CUploadQueue *pQueue) |
BOOL | Reorder (CUploadQueue *pQueue, CUploadQueue *pBefore) |
CUploadQueue * | SelectQueue (PROTOCOLID nProtocol, CLibraryFile *pFile) |
CUploadQueue * | SelectQueue (PROTOCOLID nProtocol, CDownload *pFile) |
CUploadQueue * | SelectQueue (PROTOCOLID nProtocol, LPCTSTR pszName, QWORD nSize, BOOL bPartial, LPCTSTR pszShareTags=NULL) |
int | GetTotalBandwidthPoints (BOOL ActiveOnly=FALSE) |
int | GetQueueCapacity () |
int | GetQueuedCount () |
int | GetQueueRemaining () |
int | GetTransferCount () |
BOOL | IsTransferAvailable () |
DWORD | GetMinimumDonkeyBandwidth () |
DWORD | GetCurrentDonkeyBandwidth () |
BOOL | CanUpload (PROTOCOLID nProtocol, CLibraryFile *pFile, BOOL bCanQueue=FALSE) |
int | QueueRank (PROTOCOLID nProtocol, CLibraryFile *pFile) |
void | Clear () |
BOOL | Load () |
BOOL | Save () |
void | CreateDefault () |
void | Validate () |
POSITION | GetIterator () const |
CUploadQueue * | GetNext (POSITION &pos) const |
int | GetCount () const |
BOOL | Check (CUploadQueue *pQueue) const |
BOOL | IsDonkeyRatioActive () const |
Public Attributes | |
CCriticalSection | m_pSection |
CUploadQueue * | m_pTorrentQueue |
CUploadQueue * | m_pHistoryQueue |
Protected Member Functions | |
void | Serialize (CArchive &ar) |
Protected Attributes | |
CPtrList | m_pList |
BOOL | m_bDonkeyLimited |
|
Definition at line 44 of file UploadQueues.cpp. References m_bDonkeyLimited, CUploadQueue::m_bExpanded, m_pHistoryQueue, and m_pTorrentQueue. |
|
Definition at line 52 of file UploadQueues.cpp. References Clear(), m_pHistoryQueue, and m_pTorrentQueue. |
|
|
|
Definition at line 433 of file UploadQueues.cpp. References GetIterator(), GetNext(), m_pList, and m_pSection. Referenced by CreateDefault(), Serialize(), and ~CUploadQueues(). |
|
Definition at line 148 of file UploadQueues.cpp. References CUploadQueue::m_bEnable, m_pList, m_pSection, CUploadQueue::m_sName, and NULL. Referenced by CreateDefault(), CUploadsSettingsPage::OnQueueNew(), Serialize(), and Validate(). |
|
|
Definition at line 164 of file UploadQueues.cpp. References Check(), m_pList, and m_pSection. Referenced by CUploadsSettingsPage::OnQueueDelete(), and CUploadsSettingsPage::OnQueueNew(). |
|
Definition at line 91 of file UploadQueues.cpp. References Check(), m_pSection, and NULL. Referenced by CUploadTransferED2K::Cleanup(), CUploadTransfer::Close(), Enqueue(), CUploadTransfer::Promote(), CUploadTransferHTTP::QueueRequest(), CUploadTransferHTTP::ReadRequest(), CUploadTransferED2K::Request(), and StealPosition(). |
|
Definition at line 62 of file UploadQueues.cpp. References CUploadQueue::CanAccept(), Dequeue(), CUploadQueue::Enqueue(), GetIterator(), GetNext(), CUploadTransfer::m_bFilePartial, CUploadTransfer::m_nFileSize, CUploadTransfer::m_nProtocol, CUploadTransfer::m_pQueue, m_pSection, CUploadTransfer::m_sFileName, CUploadTransfer::m_sFileTags, and NULL. Referenced by CUploadTransfer::Promote(), CUploadTransferHTTP::QueueRequest(), and CUploadTransferED2K::Request(). |
|
Definition at line 94 of file UploadQueues.h. References m_pList. Referenced by Load(), CUploadsSettingsPage::OnOK(), and Serialize(). |
|
Definition at line 349 of file UploadQueues.cpp. References CUploadQueue::GetBandwidthLimit(), GetIterator(), GetNext(), CUploadQueue::m_nMaxTransfers, CUploadQueue::m_nProtocols, m_pSection, and PROTOCOL_ED2K. Referenced by CDownloads::OnRun(). |
|
|
Definition at line 318 of file UploadQueues.cpp. References CSettings::Bandwidth, CSettings::Connection, GetIterator(), GetNext(), CUploadQueue::m_nBandwidthPoints, CUploadQueue::m_nProtocols, m_pSection, CSettings::sConnection::OutSpeed, PROTOCOL_ED2K, Settings, and CSettings::sBandwidth::Uploads. Referenced by CDownloads::OnRun(), and Validate(). |
|
|
Definition at line 111 of file UploadQueues.cpp. References Check(), m_pSection, and NULL. Referenced by CUploadTransferED2K::CheckRanking(), CUploadTipCtrl::OnPaint(), CUploadTransferED2K::OnQueueKick(), CUploadTransferED2K::OnReask(), CUploadTransferHTTP::QueueRequest(), CUploadTransferED2K::Request(), and CUploadTransferED2K::ServeRequests(). |
|
Definition at line 254 of file UploadQueues.cpp. References GetIterator(), GetNext(), and m_pSection. |
|
Definition at line 267 of file UploadQueues.cpp. References GetIterator(), GetNext(), and m_pSection. |
|
Definition at line 280 of file UploadQueues.cpp. References GetIterator(), GetNext(), and m_pSection. Referenced by CLocalSearch::Execute(). |
|
|
Definition at line 293 of file UploadQueues.cpp. References GetIterator(), GetNext(), and m_pSection. |
|
Definition at line 105 of file UploadQueues.h. References m_bDonkeyLimited. Referenced by CDownloads::OnRun(). |
|
Definition at line 306 of file UploadQueues.cpp. References GetIterator(), GetNext(), and m_pSection. Referenced by CLocalSearch::WriteTrailerG1(). |
|
Definition at line 448 of file UploadQueues.cpp. References CreateDefault(), CSettings::General, GetCount(), IDS_UPLOAD_QUEUE_HISTORY, IDS_UPLOAD_QUEUE_TORRENT, LoadString(), m_pHistoryQueue, m_pSection, m_pTorrentQueue, CUploadQueue::m_sName, Serialize(), Settings, CSettings::sGeneral::UserPath, and Validate(). Referenced by CShareazaApp::InitInstance(). |
|
Definition at line 397 of file UploadQueues.cpp. References CUploadQueue::CanAccept(), GetIterator(), GetNext(), CUploadQueue::GetQueuedCount(), CUploadQueue::GetQueueRemaining(), CLibraryFile::IsGhost(), CLibraryFile::m_nSize, m_pSection, CLibraryFile::m_sName, CLibraryFile::m_sShareTags, PROTOCOL_G1, PROTOCOL_G2, and PROTOCOL_HTTP. Referenced by CLocalSearch::AddHitG1(). |
|
Definition at line 172 of file UploadQueues.cpp. References m_pList, m_pSection, and NULL. Referenced by CUploadsSettingsPage::OnQueueDrop(). |
|
Definition at line 485 of file UploadQueues.cpp. References CSettings::General, m_pSection, Serialize(), Settings, and CSettings::sGeneral::UserPath. Referenced by CreateDefault(), CShareazaApp::ExitInstance(), CUploadsSettingsPage::OnQueueDelete(), CUploadsSettingsPage::OnQueueDrop(), CUploadsSettingsPage::OnQueueEdit(), and CUploadsSettingsPage::OnQueueNew(). |
|
Definition at line 208 of file UploadQueues.cpp. References CUploadQueue::CanAccept(), GetIterator(), GetNext(), CUploadQueue::m_nIndex, m_pSection, and NULL. |
|
Definition at line 203 of file UploadQueues.cpp. References CDownloadBase::m_nSize, CDownloadBase::m_sRemoteName, and SelectQueue(). |
|
Definition at line 198 of file UploadQueues.cpp. References CLibraryFile::GetSize(), CLibraryFile::m_sName, and CLibraryFile::m_sShareTags. Referenced by CLocalSearch::AddHitG2(), SelectQueue(), and Validate(). |
|
Definition at line 504 of file UploadQueues.cpp. References Clear(), Create(), GetCount(), GetIterator(), and GetNext(). |
|
Definition at line 131 of file UploadQueues.cpp. References Check(), Dequeue(), CUploadTransfer::m_pQueue, m_pSection, NULL, and CUploadQueue::StealPosition(). Referenced by CUploads::EnforcePerHostLimit(). |
|
|
Definition at line 46 of file UploadQueues.h. Referenced by CUploadQueues(), IsDonkeyRatioActive(), and Validate(). |
|
Definition at line 42 of file UploadQueues.h. Referenced by CUploadQueues(), CUploadsCtrl::DeselectAll(), CUploadsCtrl::GetFileIterator(), CUploadsCtrl::GetNextFile(), CUploadsCtrl::GetNextQueue(), CUploadsCtrl::GetQueueIterator(), Load(), CUploadsWnd::OnContextMenu(), CRemote::PageUploads(), CUploadsCtrl::PaintQueue(), and ~CUploadQueues(). |
|
Definition at line 44 of file UploadQueues.h. Referenced by Check(), Clear(), Create(), Delete(), GetCount(), GetIterator(), GetNext(), and Reorder(). |
|
|