* Shared files - similar to downloading */
| 2444 | * Shared files - similar to downloading |
| 2445 | */ |
| 2446 | ECKnownFileMsgSource::ECKnownFileMsgSource() |
| 2447 | { |
| 2448 | std::vector<CKnownFile*> snapshot; |
| 2449 | theApp->sharedfiles->CopyFileList(snapshot); |
| 2450 | for (std::vector<CKnownFile*>::const_iterator it = snapshot.begin(); |
| 2451 | it != snapshot.end(); ++it) { |
| 2452 | const CKnownFile *cur_file = *it; |
| 2453 | KNOWNFILE_STATUS status = { true, false, false, true, cur_file }; |
| 2454 | m_dirty_status[cur_file->GetFileHash()] = status; |
| 2455 | } |
| 2456 | } |
| 2457 | |
| 2458 | void ECKnownFileMsgSource::SetDirty(const CKnownFile *file) |
| 2459 | { |
nothing calls this directly
no test coverage detected