| 453 | } |
| 454 | |
| 455 | bool Client::onPreservedKey(const GUID& guid) { |
| 456 | auto guidStr = uuidToString(guid); |
| 457 | if (!guidStr.empty()) { |
| 458 | Json::Value req = createRpcRequest("onPreservedKey"); |
| 459 | req["guid"] = std::move(guidStr); |
| 460 | |
| 461 | Json::Value ret; |
| 462 | callRpcMethod(req, ret); |
| 463 | if (handleRpcResponse(ret)) { |
| 464 | return ret["return"].asBool(); |
| 465 | } |
| 466 | } |
| 467 | return false; |
| 468 | } |
| 469 | |
| 470 | bool Client::onCommand(UINT id, Ime::TextService::CommandType type) { |
| 471 | Json::Value req = createRpcRequest("onCommand"); |
nothing calls this directly
no test coverage detected