* Downloading files */
| 2370 | * Downloading files |
| 2371 | */ |
| 2372 | ECPartFileMsgSource::ECPartFileMsgSource() |
| 2373 | { |
| 2374 | std::vector<CPartFile*> snapshot; |
| 2375 | theApp->downloadqueue->CopyFileList(snapshot); |
| 2376 | for (std::vector<CPartFile*>::const_iterator it = snapshot.begin(); |
| 2377 | it != snapshot.end(); ++it) { |
| 2378 | CPartFile *cur_file = *it; |
| 2379 | PARTFILE_STATUS status = { true, false, false, false, true, cur_file }; |
| 2380 | m_dirty_status[cur_file->GetFileHash()] = status; |
| 2381 | } |
| 2382 | } |
| 2383 | |
| 2384 | void ECPartFileMsgSource::SetDirty(const CPartFile *file) |
| 2385 | { |
nothing calls this directly
no test coverage detected