Skip to content
Snippets Groups Projects
Commit 36becb1c authored by akiraohgaki's avatar akiraohgaki
Browse files

slots

parent 2565cb1d
No related branches found
No related tags found
No related merge requests found
...@@ -191,6 +191,21 @@ void WebSocketServer::callFunction(const QJsonObject &request, QWebSocket *wsCli ...@@ -191,6 +191,21 @@ void WebSocketServer::callFunction(const QJsonObject &request, QWebSocket *wsCli
else if (call == "ConfigHandler::removeUsrConfigInstalledItemsItem") { else if (call == "ConfigHandler::removeUsrConfigInstalledItemsItem") {
response["result"] = configHandler_->removeUsrConfigInstalledItemsItem(arg[0].toString()); response["result"] = configHandler_->removeUsrConfigInstalledItemsItem(arg[0].toString());
} }
// SystemHandler
else if (call == "SystemHandler::isUnix") {
response["result"] = systemHandler_->isUnix();
}
else if (call == "SystemHandler::desktopEnvironment") {
response["result"] = systemHandler_->desktopEnvironment();
}
else if (call == "SystemHandler::isApplicableType") {
response["result"] = systemHandler_->isApplicableType(arg[0].toString());
}
else if (call == "SystemHandler::applyFile") {
#ifdef QTLIB_UNIX
response["result"] = systemHandler_->applyFile(arg[0].toString(), arg[1].toString());
#endif
}
wsClient->sendTextMessage(QString(qtlib::Json(response).toJson())); wsClient->sendTextMessage(QString(qtlib::Json(response).toJson()));
//wsClient->sendBinaryMessage(qtlib::Json(response).toJson()); //wsClient->sendBinaryMessage(qtlib::Json(response).toJson());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment