| 1396 | |
| 1397 | |
| 1398 | bool CSharedFileList::IsShared(const CPath& path) const |
| 1399 | { |
| 1400 | if( path.IsDir(CPath::exists) ) { |
| 1401 | // check if it's a shared folder |
| 1402 | const unsigned folderCount = theApp->glob_prefs->shareddir_list.size(); |
| 1403 | for (unsigned i = 0; i < folderCount; ++i) { |
| 1404 | if (path.IsSameDir(theApp->glob_prefs->shareddir_list[i])) { |
| 1405 | return true; |
| 1406 | } |
| 1407 | } |
| 1408 | |
| 1409 | // check if it's one of the categories folders (category 0 = incoming) |
| 1410 | for (unsigned i = 0; i < theApp->glob_prefs->GetCatCount(); ++i) { |
| 1411 | if (path.IsSameDir(theApp->glob_prefs->GetCategory(i)->path)) { |
| 1412 | return true; |
| 1413 | } |
| 1414 | } |
| 1415 | } |
| 1416 | |
| 1417 | return false; |
| 1418 | } |
| 1419 | |
| 1420 | |
| 1421 | void CSharedFileList::CheckAICHHashes(const std::list<CAICHHash>& hashes) |
no test coverage detected