Showing the changes to interface/src/scripting/PlatformInfoScriptingInterface.cpp (1 of 2 files). Show all
Unified · Split
| @@ -0,0 +1,23 @@ | |||
| 1 | // | ||
| 2 | // Created by Nissim Hadar on 2018/12/28 | ||
| 3 | // Copyright 2013-2016 High Fidelity, Inc. | ||
| 4 | // | ||
| 5 | // Distributed under the Apache License, Version 2.0. | ||
| 6 | // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html | ||
| 7 | // | ||
| 8 | #include "PlatformInfoScriptingInterface.h" | ||
| 9 | |||
| 10 | PlatformInfoScriptingInterface* PlatformInfoScriptingInterface::getInstance() { | ||
| 11 | static PlatformInfoScriptingInterface sharedInstance; | ||
| 12 | return &sharedInstance; | ||
| 13 | } | ||
| 14 | |||
| 15 | QString PlatformInfoScriptingInterface::getOperatingSystemType() { | ||
| 16 | #ifdef Q_OS_WIN | ||
| 17 | return "WINDOWS"; | ||
| 18 | #elif defined Q_OS_MAC | ||
| 19 | return "MACOS"; | ||
| 20 | #else | ||
| 21 | return "UNKNOWN"; | ||
| 22 | #endif | ||
| 23 | } | ||