| 131 | } |
| 132 | |
| 133 | void SystemComponent::sendReplacementTree(PathTree &tree) { |
| 134 | auto config = pathTreeToJson(tree); |
| 135 | Buffer<> buf; |
| 136 | messages::ReplacementTreeFromServer::MessageSerialization msg(config); |
| 137 | serialize(buf, msg); |
| 138 | m_getParent().packMessage(buf, treeOut.getMessageType()); |
| 139 | |
| 140 | m_getParent().sendPending(); // forcing this since it will cause |
| 141 | // shuffling of remotes on the client. |
| 142 | } |
| 143 | void SystemComponent::registerReplaceTreeHandler(JsonHandler cb) { |
| 144 | if (m_replaceTreeHandlers.empty()) { |
| 145 | m_registerHandler(&SystemComponent::m_handleReplaceTree, this, |
no test coverage detected