MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / shutdown

Method shutdown

src/plugins/performance/mainframe/client.cpp:47–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void 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
61void Client::exit()
62{

Callers 1

stopMethod · 0.45

Calls 2

CallMethodMethod · 0.80
whatMethod · 0.45

Tested by

no test coverage detected