| 594 | |
| 595 | |
| 596 | bool CDownloadQueue::IsPartFile(const CKnownFile* file) const |
| 597 | { |
| 598 | wxMutexLocker lock(m_mutex); |
| 599 | |
| 600 | for (FileQueue::size_type i = 0; i < m_filelist.size(); ++i) { |
| 601 | if (file == m_filelist[i]) { |
| 602 | return true; |
| 603 | } |
| 604 | } |
| 605 | |
| 606 | return false; |
| 607 | } |
| 608 | |
| 609 | |
| 610 | void CDownloadQueue::OnConnectionState(bool bConnected) |