| 828 | |
| 829 | |
| 830 | void 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 | |
| 848 | CUpDownClient* CDownloadQueue::GetDownloadClientByIP_UDP(uint32 dwIP, uint16 nUDPPort) const |
no test coverage detected