From 38e85dc58e174c88855c535a6af927525d85a81d Mon Sep 17 00:00:00 2001 From: Akira Ohgaki <akiraohgaki@gmail.com> Date: Thu, 25 May 2017 06:25:56 +0900 Subject: [PATCH] WebSocket messages --- app/src/websockets/websocketserver.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/websockets/websocketserver.cpp b/app/src/websockets/websocketserver.cpp index 857c9e9..2ccc371 100644 --- a/app/src/websockets/websocketserver.cpp +++ b/app/src/websockets/websocketserver.cpp @@ -266,6 +266,12 @@ void WebSocketServer::receiveMessage(const QString &id, const QString &func, con else if (func == "SystemHandler::isUnix") { resultData.append(systemHandler_->isUnix()); } + else if (func == "SystemHandler::isMobileDevice") { + resultData.append(systemHandler_->isMobileDevice()); + } + else if (func == "SystemHandler::openUrl") { + resultData.append(systemHandler_->openUrl(data.at(0).toString())); + } else if (func == "SystemHandler::desktopEnvironment") { resultData.append(systemHandler_->desktopEnvironment()); } -- GitLab