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