Toggle the state of a content info and check its dependencies */
| 896 | |
| 897 | /** Toggle the state of a content info and check its dependencies */ |
| 898 | void ClientNetworkContentSocketHandler::ToggleSelectedState(const ContentInfo &ci) |
| 899 | { |
| 900 | switch (ci.state) { |
| 901 | case ContentInfo::State::Selected: |
| 902 | case ContentInfo::State::Autoselected: |
| 903 | this->Unselect(ci.id); |
| 904 | break; |
| 905 | |
| 906 | case ContentInfo::State::Unselected: |
| 907 | this->Select(ci.id); |
| 908 | break; |
| 909 | |
| 910 | default: |
| 911 | break; |
| 912 | } |
| 913 | } |
| 914 | |
| 915 | /** |
| 916 | * Reverse lookup the dependencies of (direct) parents over a given child. |
no test coverage detected