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

Method AddFileToDownloadByHash

src/SearchList.cpp:627–641  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

625
626
627void CSearchList::AddFileToDownloadByHash(const CMD4Hash& hash, uint8 cat)
628{
629 ResultMap::iterator it = m_results.begin();
630 for ( ; it != m_results.end(); ++it ) {
631 CSearchResultList& list = it->second;
632
633 for ( unsigned int i = 0; i < list.size(); ++i ) {
634 if ( list[i]->GetFileHash() == hash ) {
635 CoreNotify_Search_Add_Download( list[i], cat );
636
637 return;
638 }
639 }
640 }
641}
642
643
644bool CSearchList::IsKadSearch(uint32_t searchID) const

Calls 3

beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected