| 45 | } |
| 46 | |
| 47 | void Client::shutdown() |
| 48 | { |
| 49 | jsonrpc::Client sender(tcpSocketClient); |
| 50 | Json::Value params(Json::objectValue); |
| 51 | Json::Value orgData(Json::objectValue); |
| 52 | orgData["params"] = params; |
| 53 | qInfo() << "shutdown -->"; |
| 54 | try { |
| 55 | shutdownResult(sender.CallMethod("shutdown", orgData)); |
| 56 | } catch (jsonrpc::JsonRpcException &e) { |
| 57 | std::cerr << e.what() << std::endl; |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | void Client::exit() |
| 62 | { |
no test coverage detected