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