| 625 | |
| 626 | |
| 627 | void 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 | |
| 644 | bool CSearchList::IsKadSearch(uint32_t searchID) const |
no test coverage detected