| 494 | } |
| 495 | |
| 496 | bool CUpDownClient::AddRequestForAnotherFile(CPartFile* file) |
| 497 | { |
| 498 | if ( m_A4AF_list.find( file ) == m_A4AF_list.end() ) { |
| 499 | // When we access a non-existing entry entry, it will be zeroed by default, |
| 500 | // so we have to set NeededParts. All in one go. |
| 501 | m_A4AF_list[file].NeededParts = true; |
| 502 | file->AddA4AFSource( this ); |
| 503 | return true; |
| 504 | } else { |
| 505 | return false; |
| 506 | } |
| 507 | } |
| 508 | |
| 509 | bool CUpDownClient::DeleteFileRequest(CPartFile* file) |
| 510 | { |
no test coverage detected