MCPcopy Create free account
hub / github.com/amule-project/amule / ClearCompleted

Method ClearCompleted

src/DownloadQueue.cpp:830–845  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

828
829
830void CDownloadQueue::ClearCompleted(const ListOfUInts32 & ecids)
831{
832 for (ListOfUInts32::const_iterator it1 = ecids.begin(); it1 != ecids.end(); ++it1) {
833 uint32 ecid = *it1;
834 for (FileList::iterator it = m_completedDownloads.begin(); it != m_completedDownloads.end(); ++it) {
835 CPartFile * file = *it;
836 if (file->ECID() == ecid) {
837 m_completedDownloads.erase(it);
838 // get a new EC ID so it is resent and cleared in remote gui
839 file->RenewECID();
840 Notify_DownloadCtrlRemoveFile(file);
841 break;
842 }
843 }
844 }
845}
846
847
848CUpDownClient* CDownloadQueue::GetDownloadClientByIP_UDP(uint32 dwIP, uint16 nUDPPort) const

Callers 2

OnBtnClearDownloadsMethod · 0.45
ProcessRequest2Method · 0.45

Calls 5

ECIDMethod · 0.80
eraseMethod · 0.80
RenewECIDMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected