void CDownloadQueue::RemoveFile(CPartFile* file) { RemoveLocalServerRequest( file ); NotifyObservers( EventType( EventType::REMOVED, file ) ); wxMutexLocker lock( m_mutex ); EraseValue( m_filelist, file ); }
void CDownloadQueue::RemoveFile(CPartFile* file, bool keepAsCompleted) { RemoveLocalServerRequest( file ); NotifyObservers( EventType( EventType::REMOVED, file ) ); wxMutexLocker lock( m_mutex ); EraseValue( m_filelist, file ); if (keepAsCompleted) { m_completedDownloads.push_back(file); } }