* Select a specific content id. * @param cid the content ID to select */
| 843 | * @param cid the content ID to select |
| 844 | */ |
| 845 | void ClientNetworkContentSocketHandler::Select(ContentID cid) |
| 846 | { |
| 847 | ContentInfo *ci = this->GetContent(cid); |
| 848 | if (ci == nullptr || ci->state != ContentInfo::State::Unselected) return; |
| 849 | |
| 850 | ci->state = ContentInfo::State::Selected; |
| 851 | this->CheckDependencyState(*ci); |
| 852 | } |
| 853 | |
| 854 | /** |
| 855 | * Unselect a specific content id. |
no test coverage detected