| 188 | } |
| 189 | |
| 190 | bool NodeListManager::findListById(U32 id, NodeList** list, bool completeOnly) |
| 191 | { |
| 192 | *list = NULL; |
| 193 | |
| 194 | for (U32 i=0; i<mNodeLists.size(); ++i) |
| 195 | { |
| 196 | if (mNodeLists[i]->mId == id) |
| 197 | { |
| 198 | if (completeOnly && !mNodeLists[i]->mListComplete) |
| 199 | { |
| 200 | // Found the list, but it is not complete. |
| 201 | return false; |
| 202 | } |
| 203 | |
| 204 | // Return the node list (complete or not) and remove |
| 205 | // it from our list of lists |
| 206 | *list = mNodeLists[i]; |
| 207 | mNodeLists.erase(i); |
| 208 | return true; |
| 209 | } |
| 210 | } |
| 211 | |
| 212 | return false; |
| 213 | } |
| 214 | |
| 215 | void NodeListManager::clearNotification( U32 listId ) |
| 216 | { |
no test coverage detected