| 171 | } |
| 172 | |
| 173 | void NodeListManager::addNodeList( NodeList* list ) |
| 174 | { |
| 175 | // Before we store the node list, we should check if anyone has registered |
| 176 | // an interest in it, but only if the list is complete. |
| 177 | if (list->mListComplete) |
| 178 | { |
| 179 | if (dispatchNotification( list )) |
| 180 | { |
| 181 | delete list; |
| 182 | return; |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | // Nothing is registered or the list is not complete, so store the list for later |
| 187 | mNodeLists.push_back( list ); |
| 188 | } |
| 189 | |
| 190 | bool NodeListManager::findListById(U32 id, NodeList** list, bool completeOnly) |
| 191 | { |